Commit ·
7ebeb77
0
Parent(s):
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +82 -0
- LICENSE.md +9 -0
- README.md +125 -0
- SHA384SUMS +148 -0
- preview/bin/linux-amd64/ztp_foundry_mcp +3 -0
- preview/bin/linux-amd64/ztp_foundry_preview_verifier +3 -0
- preview/bin/linux-arm64/ztp_foundry_mcp +3 -0
- preview/bin/linux-arm64/ztp_foundry_preview_verifier +3 -0
- preview/bin/macos-arm64/ztp_foundry_mcp +3 -0
- preview/bin/macos-arm64/ztp_foundry_preview_verifier +3 -0
- preview/bin/multiarch_verification.json +16 -0
- preview/core/__init__.py +12 -0
- preview/core/daemon.py +573 -0
- preview/core/pack_registry.py +219 -0
- preview/core/plugin_base.py +76 -0
- preview/core/schema_contract.py +286 -0
- preview/core/vault_bins.py +256 -0
- preview/core/verifier_core.py +574 -0
- preview/core/ztp_client.py +363 -0
- preview/core/ztp_mcp_client.py +213 -0
- preview/packs/foundry_flagship/.vault/foundry-001.json +14 -0
- preview/packs/foundry_flagship/.vault/foundry-002.json +181 -0
- preview/packs/foundry_flagship/pack_manifest.json +59 -0
- preview/packs/foundry_flagship/tasks/foundry-001/evaluator.py +195 -0
- preview/packs/foundry_flagship/tasks/foundry-001/plant.py +209 -0
- preview/packs/foundry_flagship/tasks/foundry-001/task.json +26 -0
- preview/packs/foundry_flagship/tasks/foundry-001/workspace_files/SPEC_SHEET.md +178 -0
- preview/packs/foundry_flagship/tasks/foundry-002/contract.py +48 -0
- preview/packs/foundry_flagship/tasks/foundry-002/evaluator.py +150 -0
- preview/packs/foundry_flagship/tasks/foundry-002/plant.py +126 -0
- preview/packs/foundry_flagship/tasks/foundry-002/task.json +26 -0
- preview/packs/foundry_flagship/tasks/foundry-002/workspace_files/SPEC_SHEET.md +166 -0
- preview_tasks.jsonl +2 -0
- reference/foundry-001-dev-00_reference_episode.json +1957 -0
- reference/foundry-002-dev-00_reference_episode.json +1260 -0
- reports/environment_card_foundry_001.md +6 -0
- reports/environment_card_foundry_002.md +5 -0
- reports/frontier_calibration_summary.json +686 -0
- reports/validation_and_redteam_gates.json +49 -0
- tasks/harbor/foundry-001-dev-00/environment/.dockerignore +1 -0
- tasks/harbor/foundry-001-dev-00/environment/Dockerfile +14 -0
- tasks/harbor/foundry-001-dev-00/environment/agent/mcp.json +11 -0
- tasks/harbor/foundry-001-dev-00/environment/agent/workspace/SPEC_SHEET.md +178 -0
- tasks/harbor/foundry-001-dev-00/environment/agent/ztp_mcp_client.py +213 -0
- tasks/harbor/foundry-001-dev-00/environment/docker-compose.yaml +33 -0
- tasks/harbor/foundry-001-dev-00/environment/vault/Dockerfile +27 -0
- tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_mcp +3 -0
- tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_preview_verifier +3 -0
- tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_mcp +3 -0
- tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_preview_verifier +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
preview/bin/linux-amd64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
preview/bin/linux-amd64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
preview/bin/linux-arm64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
preview/bin/linux-arm64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
preview/bin/macos-arm64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
preview/bin/macos-arm64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
tasks/harbor/foundry-001-dev-00/tests/bin/linux-amd64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
tasks/harbor/foundry-001-dev-00/tests/bin/linux-amd64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
tasks/harbor/foundry-001-dev-00/tests/bin/linux-arm64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
tasks/harbor/foundry-001-dev-00/tests/bin/linux-arm64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
tasks/harbor/foundry-002-dev-00/tests/bin/linux-amd64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
tasks/harbor/foundry-002-dev-00/tests/bin/linux-amd64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
tasks/harbor/foundry-002-dev-00/tests/bin/linux-arm64/ztp_foundry_mcp filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
tasks/harbor/foundry-002-dev-00/tests/bin/linux-arm64/ztp_foundry_preview_verifier filter=lfs diff=lfs merge=lfs -text
|
LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Evaluation-Only Preview Licence — Protocol Company
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Protocol Company (`zerotrustphysics.com`). All rights reserved.
|
| 4 |
+
|
| 5 |
+
This repository provides two runnable preview tasks (`foundry-001-dev-00` and `foundry-002-dev-00`), component solver binaries (`ztp_foundry_mcp`), and a specimen-locked preview verifier (`ztp_foundry_preview_verifier`) solely for technical evaluation and benchmark inspection.
|
| 6 |
+
|
| 7 |
+
1. **Permitted use:** Running interactive or automated evaluation trials on these two preview tasks internally.
|
| 8 |
+
2. **Restrictions:** No licence is granted to train, fine-tune, or distill models on these tasks or outputs; to redistribute or sublicense the binaries or task bundles; or to reverse-engineer, disassemble, or extract proprietary coupled-plant routines from the compiled binaries.
|
| 9 |
+
3. **Commercial licensing:** Full air-gapped rollout datasets, training rights, custom multi-physics plants, and NDA source-audit runtime licences are available from Protocol Company at https://zerotrustphysics.com/offers/fast-start/ or kruze@zerotrustphysics.com.
|
README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "Zero-Trust Physics Foundry Preview: Stateful Rack Commissioning & Live Fault Forensics"
|
| 3 |
+
license: other
|
| 4 |
+
license_name: evaluation-only
|
| 5 |
+
license_link: LICENSE.md
|
| 6 |
+
language: [en]
|
| 7 |
+
tags: [physics, rl-environment, rlvr, harbor, mcp, evaluation, digital-twin, zero-trust-physics]
|
| 8 |
+
task_categories: [reinforcement-learning, question-answering]
|
| 9 |
+
size_categories: [n<1K]
|
| 10 |
+
viewer: true
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: default
|
| 13 |
+
data_files:
|
| 14 |
+
- split: test
|
| 15 |
+
path: preview_tasks.jsonl
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Foundry Preview: Stateful Hardware Commissioning & Live Fault Forensics
|
| 19 |
+
|
| 20 |
+
## Four worlds you can play now
|
| 21 |
+
|
| 22 |
+
The Foundry's four systems run live on one shared public clock at **`https://mcp.zerotrustphysics.com/mcp`** (MCP, no key, nothing to install): read, fork, drive up to 24 steps, and get a grade signed `ML-DSA-87`.
|
| 23 |
+
|
| 24 |
+
| World | `system` at the address | What you drive |
|
| 25 |
+
|---|---|---|
|
| 26 |
+
| **Liquid-Cooled AI Compute Rack** | `foundry_rack` | flow, valve, heat and battery load against junction temperature, water hammer, battery and grid limits |
|
| 27 |
+
| **Spacecraft Bus** | `orbital_bus` | attitude, thrusters and payload through an eclipse pass, against battery, radiator and propellant limits |
|
| 28 |
+
| **Robotic Lab Cell** | `robotics_cell` | grip, joint, pipette and bus, against slip, heat, wear and power limits |
|
| 29 |
+
| **PWR Nuclear Core — Xenon-135 Load-Follow** | `reactor_xenon` | rods, turbine demand, pump flow and boron, following a daily demand curve while Xe-135 builds and burns out |
|
| 30 |
+
|
| 31 |
+
Six tools: `list_systems`, `describe_system`, `read_system`, `write_system`, `grade_episode`, `verify_receipt`. The open physics library is at `https://mcp.zerotrustphysics.com/mcp/open`. Runnable multi-turn episodes: [Environments](https://huggingface.co/datasets/zero-trust-physics/zero-trust-physics-environments/tree/main/vivarium).
|
| 32 |
+
|
| 33 |
+
Below: two offline, downloadable Compute Rack tasks (`foundry-001-dev-00`, `foundry-002-dev-00`), with a verifier that answers those two specimens only, by SHA-384 allowlist.
|
| 34 |
+
|
| 35 |
+
<!-- plain-opening -->
|
| 36 |
+
**Two runnable `--network none` Harbor `0.26` tasks from the Zero-Trust Physics Foundry Flagship dataset.**
|
| 37 |
+
|
| 38 |
+
Unlike static one-shot solver prompts, an agent here operates against a **stateful, non-resetting hardware twin** (a 48-sled liquid-cooled AI compute rack coupled across an elastoplastic silicon-to-copper cold plate, 2-pipe Method-of-Characteristics coolant loop, hybrid synchronous/IBR SRF-PLL microgrid + cold-bay 2170 BESS, and cubic Duffing chassis mount + O-band optical backplane):
|
| 39 |
+
|
| 40 |
+
1. **`foundry-001-dev-00` (Commissioning & 8-Corner Co-Design):** Up to `3` non-resetting hardware probes and `36` component solver calls (`ztp_foundry_mcp`) to identify a hidden 6-parameter specimen state and synthesize a 17-parameter hardware design + 5-parameter controller that survives all `8` coupled stress corners (`C1`–`C8`) at `>= 92%` of the specimen's net-PPA target. Every bench probe mutates battery SOC, coolant warmup, and mechanical wear on the **actual unit that gets graded**.
|
| 41 |
+
2. **`foundry-002-dev-00` (Live Fault Forensics & Safe Re-Trim):** Installed hardware is locked; given the unit's commissioning acceptance record, at most `2` non-resetting service probes, and `24` component solves, isolate the active fault class alongside service aging and re-trim `8` field limits + `5` controller gains to restore `8/8` corner safety at `>= 93%` of the unit's reference PPA target.
|
| 42 |
+
|
| 43 |
+
- **Run offline in 10 seconds:** clone this repository and run `bash verify_preview.sh` (macOS arm64, Linux arm64, Linux amd64; zero internet or API key).
|
| 44 |
+
- **Run in Native Harbor `0.26`:** `harbor run -p tasks/harbor/foundry-001-dev-00 -a oracle -e docker` (true `network_mode: none` air gap on agent, root vault sidecar, and separate Breakwater-hardened verifier).
|
| 45 |
+
- **Commercial:** Flagship task pack, Exclusive batches, Custom environments, Runtime & private infrastructure: scoped and invoiced, https://zerotrustphysics.com/offers/
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
<!-- ztp-contact -->
|
| 50 |
+
> **Protocol Company** · [zerotrustphysics.com](https://zerotrustphysics.com) · **The Foundry:** physics environments of real systems ([free runnable preview](https://huggingface.co/datasets/zero-trust-physics/zero-trust-physics-foundry-preview)) · Flagship task pack, Exclusive batches, Custom environments, Runtime & private infrastructure: scoped and invoiced, https://zerotrustphysics.com/offers/ · free open-engine samples: [sample groups 1–5](https://huggingface.co/collections/zero-trust-physics/zero-trust-physics-6ad3b6ef5195b706ac6d041e) · [Open MCP Verifier (`v0.15.3`)](https://mcp.zerotrustphysics.com/mcp/open) · [Paper v2.0 (`10.5281/zenodo.23517223`)](https://doi.org/10.5281/zenodo.23517223) · [WhatsApp +1 928-264-7883](https://wa.me/19282647883) · [team@zerotrustphysics.com](mailto:team@zerotrustphysics.com)
|
| 51 |
+
|
| 52 |
+
## Why Component-Only Solvers + Non-Resetting Probes Defeat Black-Box Shortcut Search
|
| 53 |
+
|
| 54 |
+
On `foundry_flagship`, the agent container (`uid=1000`, `network_mode: none`) **never receives a coupled whole-plant simulator**. `ztp_foundry_mcp` exposes only the 4 isolated organ solvers (`die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, `chassis_mount_duffing`); the coupled 8-corner plant and hidden specimen state live exclusively inside the root-owned `0700` verifier (`ztp_foundry_preview_verifier`, locked by canonical IEEE-754 SHA-384 allowlist in this preview to `foundry-001-dev-00` and `foundry-002-dev-00` only).
|
| 55 |
+
|
| 56 |
+
Before any LLM token was spent, all three Foundry Flagship task templates (`foundry-001`, `foundry-002`, and `foundry-003` in the full commercial dataset; this public preview ships the runnable `dev-00` tasks of `foundry-001` and `foundry-002`) were gated on `12` blind held-out tasks against equation-free ML regressors (fitted on `64` frozen training tasks) and full-budget black-box component-solver optimizers (`reports/validation_and_redteam_gates.json`):
|
| 57 |
+
|
| 58 |
+
| Template | Oracle (`12` held-out) | Reference Physics Policy | Equation-Free ML & Black-Box Solver Attackers (`train=64` + full `solve` budget) | Scripted Contract & Shortcut Cheats |
|
| 59 |
+
|---|---:|---:|---|---|
|
| 60 |
+
| **`foundry-001`** *(preview shipped)* | `12/12` | `10/12` | **`0/12`–`1/12`** (`0/12` on 36-solve component optimizer, warm-started hybrid, Polynomial Ridge, Decision Tree, Extra Trees, Random Forest; `1/12` on kNN, Ridge, RBF) | `11/11` rejected |
|
| 61 |
+
| **`foundry-002`** *(preview shipped)* | `12/12` | `12/12` (`22/24` fresh) | **`0/12` across all `8` baselines** (no-op `0/12`, best fixed recipe given true class `0/12`, kNN/Ridge `0/12`, true diagnosis + class-median re-trim `0/12`, 24-solve black-box search `0/12`) | `16/16` rejected |
|
| 62 |
+
| **`foundry-003`** *(single-probe 5-shift envelope, withheld)* | `12/12` | `12/12` (`24/24` fresh) | **`0/12` across all `10` baselines** (factory no-op `0/12`, best fixed recipe `0/12`, ignored probe `0/12`, raw-probe 1-NN/5-NN/Ridge `0/12`, 7-solve diagnosis + 1-NN/5-NN/Ridge `0/12`, 20-solve black-box search `0/12`) | `15/15` rejected |
|
| 63 |
+
|
| 64 |
+
## Frontier calibration: 137 rollouts across the four worlds
|
| 65 |
+
|
| 66 |
+
Sterile `--network none` rollouts of the offline packs with frontier models (anonymized A, B and C). The detail for the two shipped templates follows in the next section.
|
| 67 |
+
|
| 68 |
+
| World | Template | Task | Models | Solved / rollouts | `pass@1` (Wilson 95%) |
|
| 69 |
+
|---|---|---|---|---:|---|
|
| 70 |
+
| Compute Rack | `foundry-001` | commissioning and 8-corner co-design | A, B, C | **13/19** | 68.4% (46–85%) |
|
| 71 |
+
| Compute Rack | `foundry-002` | live fault forensics | A, B, C | **15/19** | 78.9% (57–91%) |
|
| 72 |
+
| Compute Rack | `foundry-003` | compound degradation, one probe | A, B, C | **9/19** | 47.4% (27–68%) |
|
| 73 |
+
| Compute Rack | `foundry-004` | 3-rack S2S code submission | A, B | **16/16** | 100.0% (81–100%) |
|
| 74 |
+
| Spacecraft Bus | `orbital-001` | blackout bus commissioning | A | **0/8** | 0.0% (0–32%) |
|
| 75 |
+
| Spacecraft Bus | `orbital-001` | blackout bus commissioning | B | **8/8** | 100.0% (68–100%) |
|
| 76 |
+
| Robotic Lab Cell | `robotics-001` | cell co-design | A, B | **0/16** | 0.0% (0–19%) |
|
| 77 |
+
| Robotic Lab Cell | `robotics-002` | 1,000 Hz reflex code-in-the-loop | A, B | **16/16** | 100.0% (81–100%) |
|
| 78 |
+
| PWR Nuclear Core | `reactor-002` | 24-step xenon load-follow | A, B | **16/16** | 100.0% (81–100%) |
|
| 79 |
+
|
| 80 |
+
Cases were chosen by index before any rollout and the same few were repeated, so intervals understate the spread between cases. This is not a capability claim.
|
| 81 |
+
|
| 82 |
+
## The four offers
|
| 83 |
+
|
| 84 |
+
Flagship task pack, Exclusive batches, Custom environments, Runtime & private infrastructure: scoped and invoiced, https://zerotrustphysics.com/offers/
|
| 85 |
+
|
| 86 |
+
Spacecraft Bus, Robotic Lab Cell and PWR Nuclear Core packs, S2S code-submission pack, 1,000 Hz reflex pack: scoped and invoiced, https://zerotrustphysics.com/offers/
|
| 87 |
+
|
| 88 |
+
## Measured Sterile `--network none` Frontier Calibration
|
| 89 |
+
|
| 90 |
+
Identical unhinted task specifications, `network_mode: none` containers (`uid=1000` agent + `uid=0` daemon sidecar sharing only `/run/ztp/ztp_mcp.sock`), SHA-384-chained `call_ledger.jsonl`, and 96-hex `suite_seal_sha384` recompute verification (`reports/frontier_calibration_summary.json`):
|
| 91 |
+
|
| 92 |
+
| Harness / Model | Split | Template | Attempts (`k` × tasks) | `pass@1` (`solved / n`, Wilson 95% CI) | Mean `pass@k` | Mean Shaped Score | Ledger & Seal Integrity |
|
| 93 |
+
|---|---|---|---:|---|---:|---:|---|
|
| 94 |
+
| Frontier model A (`agent`) | `dev` | `foundry-001` | `6` (`2` tasks) | **`66.7%`** (`4/6`, `[30.0%, 90.3%]`) | `100.0%` | `0.923` | `6/6` ledgers · `0` snoops |
|
| 95 |
+
| Frontier model A (`agent`) | `dev` | `foundry-002` | `6` (`2` tasks) | **`100.0%`** (`6/6`, `[61.0%, 100.0%]`) | `100.0%` | `1.000` | `6/6` ledgers · `0` snoops |
|
| 96 |
+
| Frontier model A (`agent`) | `eval` | `foundry-001` | `4` (`4` tasks) | **`50.0%`** (`2/4`, `[15.0%, 85.0%]`) | `50.0%` | `0.744` | `4/4` ledgers · `0` snoops |
|
| 97 |
+
| Frontier model A (`agent`) | `eval` | `foundry-002` | `4` (`4` tasks) | **`75.0%`** (`3/4`, `[30.1%, 95.4%]`) | `75.0%` | `0.861` | `4/4` ledgers · `0` snoops |
|
| 98 |
+
| Frontier model B (`agent`) | `dev` | `foundry-001` | `4` (`4` tasks) | **`50.0%`** (`2/4`, `[15.0%, 85.0%]`) | `50.0%` | `0.972` | `4/4` ledgers · `0` snoops |
|
| 99 |
+
| Frontier model B (`agent`) | `dev` | `foundry-002` | `4` (`4` tasks) | **`50.0%`** (`2/4`, `[15.0%, 85.0%]`) | `50.0%` | `0.985` | `4/4` ledgers · `0` snoops |
|
| 100 |
+
| Frontier model B (`agent`) | `eval` | `foundry-001` | `2` (`2` tasks) | **`100.0%`** (`2/2`, `[34.2%, 100.0%]`) | `100.0%` | `1.000` | `2/2` ledgers · `0` snoops |
|
| 101 |
+
| Frontier model B (`agent`) | `eval` | `foundry-002` | `2` (`2` tasks) | **`50.0%`** (`1/2`, `[9.4%, 90.5%]`) | `50.0%` | `0.987` | `2/2` ledgers · `0` snoops |
|
| 102 |
+
| Frontier model C (`agent`) | `dev` | `foundry-001` | `1` (`1` tasks) | **`100.0%`** (`1/1`, `[20.6%, 100.0%]`) | `100.0%` | `1.000` | `1/1` ledgers · `0` snoops |
|
| 103 |
+
| Frontier model C (`agent`) | `dev` | `foundry-002` | `1` (`1` tasks) | **`100.0%`** (`1/1`, `[20.6%, 100.0%]`) | `100.0%` | `1.000` | `1/1` ledgers · `0` snoops |
|
| 104 |
+
| Frontier model C (`agent`) | `eval` | `foundry-001` | `2` (`2` tasks) | **`100.0%`** (`2/2`, `[34.2%, 100.0%]`) | `100.0%` | `1.000` | `2/2` ledgers · `0` snoops |
|
| 105 |
+
| Frontier model C (`agent`) | `eval` | `foundry-002` | `2` (`2` tasks) | **`100.0%`** (`2/2`, `[34.2%, 100.0%]`) | `100.0%` | `1.000` | `2/2` ledgers · `0` snoops |
|
| 106 |
+
|
| 107 |
+
## Breakwater Verifier Hardening (Harbor `0.26` Separate-Verifier Lifecycle)
|
| 108 |
+
|
| 109 |
+
Every Harbor bundle under `tasks/harbor/` runs three isolated `network_mode: none` containers (`main` agent as `1000:1000`, `ztp_vault` sidecar as `0:0`, and a separate `tests/` recompute grader as `0:0`):
|
| 110 |
+
1. **Race-free `submission.json` intake:** Opened with `O_RDONLY | O_NOFOLLOW | O_NONBLOCK` and verified via `fstat(fd)` (`S_ISREG`, `st_nlink == 1`, `<= 4 MiB`), defeating symlink vault reads, hardlinks, and blocking FIFO hangs.
|
| 111 |
+
2. **Unprivileged `uid=65534` (`nobody`) JSON sandbox:** Untrusted submission bytes are parsed, depth/key-bounded (`<= 8` levels, `<= 256` keys/items, finite IEEE-754 numbers only), and canonicalized inside a dropped-privilege subprocess (`RLIMIT_AS = 128 MiB`, `RLIMIT_CPU = 5 s`, `RLIMIT_FSIZE = 0`) before `uid=0` touches the payload or invokes the verifier binary.
|
| 112 |
+
3. **Runtime binary SHA-384 pinning:** Both `ztp_foundry_mcp` and `ztp_foundry_preview_verifier` are SHA-384 verified against `multiarch_verification.json` prior to execution (`0`-differ cross-ISA parity across `macos-arm64`, `linux-arm64`, `linux-amd64`).
|
| 113 |
+
|
| 114 |
+
## Repository Layout
|
| 115 |
+
|
| 116 |
+
| Path | Contents |
|
| 117 |
+
|---|---|
|
| 118 |
+
| `verify_preview.sh`, `SHA384SUMS` | Offline SHA-384 integrity check, allowlist refusal test, and byte-exact `suite_seal_sha384` recomputation of both `dev-00` tasks. |
|
| 119 |
+
| `tasks/harbor/foundry-001-dev-00/`, `foundry-002-dev-00/` | Runnable Native Harbor `0.26` bundles (`harbor lint` `0` findings; `harbor run -a oracle -e docker`). |
|
| 120 |
+
| `preview/bin/{macos-arm64,linux-arm64,linux-amd64}/` | Stripped `ztp_foundry_mcp` (4 component solvers) + `ztp_foundry_preview_verifier` (`dev-00` SHA-384 allowlisted). |
|
| 121 |
+
| `reference/` | Sealed reference episodes (`submission`, SHA-384 chained `call_ledger.jsonl`, and 8-corner `grade_report`). |
|
| 122 |
+
| `reports/` | Environment Cards, 9-attacker blind red-team ledger, and measured frontier `pass@1` rollout autopsies. |
|
| 123 |
+
| `LICENSE.md` | Evaluation-only preview terms (no training, redistribution, or binary reverse engineering). |
|
| 124 |
+
|
| 125 |
+
**Evaluation only.** Withheld training and evaluation splits (`train` + blind `eval`) are never published here and `ztp_foundry_preview_verifier` refuses every non-`dev-00` specimen by SHA-384 digest. For the Flagship task pack, Exclusive batches, Custom environments or Runtime & private infrastructure: https://zerotrustphysics.com/offers/fast-start/ · team@zerotrustphysics.com
|
SHA384SUMS
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
b4e2546d3f7d686c558557dd2b9f18f87b362333aaa9af84fc4eee37c3527eada85af7f87bd18098adfd0d331407147b LICENSE.md
|
| 2 |
+
ea31ef6002a0e7f76dea7d9abf919ef9fcf146eb84ecce1a37eb3b41073b6b0330c759145ad9222bfe3bacfe82d13d0a README.md
|
| 3 |
+
895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679 preview/bin/linux-amd64/ztp_foundry_mcp
|
| 4 |
+
9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f preview/bin/linux-amd64/ztp_foundry_preview_verifier
|
| 5 |
+
688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79 preview/bin/linux-arm64/ztp_foundry_mcp
|
| 6 |
+
c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640 preview/bin/linux-arm64/ztp_foundry_preview_verifier
|
| 7 |
+
5ce27e625310c46cfbef964e3f82c7d0520f17ed2d86dc6b52fac3159972d3735757a4e1e80b319ed6186d4e3b2b3734 preview/bin/macos-arm64/ztp_foundry_mcp
|
| 8 |
+
645b9bcedab4c992b7b30df9def17a426ba8c8639c44a0198f560282f908c6965c9dc3d6baa022effac45020a0d3d496 preview/bin/macos-arm64/ztp_foundry_preview_verifier
|
| 9 |
+
7924aead2a38fae245418e6a69508489af4df9843369f3eefdd5c1ee63b059a15e2c9b99b6adca8dbadcf1c16226fc42 preview/bin/multiarch_verification.json
|
| 10 |
+
acfd42df0e589e5b15552625036420a7591864d1771d0bd8292ada6eabcc4ad9ae9a106b372fb9cfb7aea24cede5b337 preview/core/__init__.py
|
| 11 |
+
6ea2fff4d80224ccc9276be5b7274df9560e343072058aa4f0f954bf1c74add6b77124dbc7c566c62892e4624bcd5d24 preview/core/daemon.py
|
| 12 |
+
e47c5e1832555c042815a623f9ca94682a8f4d2b4d1fd6fb44c7c4f1695b6f15f89fcda5877190491a861733378915a5 preview/core/pack_registry.py
|
| 13 |
+
f2ae8f9a915db7acfde5019aa8a99bedf665c1e6782a4b64f224cd1436c4ab9f878ce4fa9c40b76ebbdb7a834966db9f preview/core/plugin_base.py
|
| 14 |
+
539a9c9982615baabf4189a52cb44d99c9a85af1b302f1501462e061005c2af34ffce002d2c328bbb700bb3278e745ab preview/core/schema_contract.py
|
| 15 |
+
db16fa366e96d5472bb9466a46d7e3881cafe23e9c4aacc6fef66466867c1f6a317d72f5a17275ed075e1780c821bbc0 preview/core/vault_bins.py
|
| 16 |
+
152de9fcfc5adbe1a96c8a045aea181d84a44e510e747c62efff9f06b1fbc2002d69088d447cd8f7f853c4fcf00918f0 preview/core/verifier_core.py
|
| 17 |
+
616d036ab0de788fe4f5f6727194b7313ef6c4942922a565ff8e2de43dc26094ca3b486acf5d0f5962c8d213f865ef17 preview/core/ztp_client.py
|
| 18 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc preview/core/ztp_mcp_client.py
|
| 19 |
+
926abcf8c2e00d7b1d8436315702830a0c5af62aa4e427da00be37c434cdcc5c7c347612ae545acba2fdc490871fe024 preview/packs/foundry_flagship/.vault/foundry-001.json
|
| 20 |
+
d928501a4e9e7b6f63788e846792514d44df68e7693b877c33258f1ed9ce1efde7c24e07af15b37fb8be3522d4838441 preview/packs/foundry_flagship/.vault/foundry-002.json
|
| 21 |
+
f3b20104e7144a11df34fabfd71b6a932153a4f7a799cfd6484cada87daf072401193f4686a1d3ee9c8caca5564bd155 preview/packs/foundry_flagship/pack_manifest.json
|
| 22 |
+
f227a1548b8a1a7fdd2d2b9bc90efdd3516797c1bdef423ec7229ba88e3ebb794d88394bcc956409da8476079d796449 preview/packs/foundry_flagship/tasks/foundry-001/evaluator.py
|
| 23 |
+
474e8e3e423ee938b572b6e81b3c33f636a95d0e51ba04a8d6d41cf26b6c314f0f48abf17f68f2a1c5cf1761a5b448ea preview/packs/foundry_flagship/tasks/foundry-001/plant.py
|
| 24 |
+
ceaf2eb3722bd0a6e4b42705dcb1cde519ac5532dd7b3b49ba474a829a96911bf3398183ed5b5de0c8fb739ee3120266 preview/packs/foundry_flagship/tasks/foundry-001/task.json
|
| 25 |
+
9756b5742c569d8617f2a19ccc5f3a8fa6c723f447152ba8fa1587b6a373593ed6d61c695ecd6549aeb87911770cdfc4 preview/packs/foundry_flagship/tasks/foundry-001/workspace_files/SPEC_SHEET.md
|
| 26 |
+
8f1dda65950a3b1907ddf12fff7ebfbaf5db4f091c263c3b0b109e18f7df8f6076341e42c84f491dd27942c74fffe83b preview/packs/foundry_flagship/tasks/foundry-002/contract.py
|
| 27 |
+
d7b6ec9cf1a4087c36b9fd831af25bd513dfc48587475c3536104361d4f8dad14d4bc2cebddbff5088f6beb254be623b preview/packs/foundry_flagship/tasks/foundry-002/evaluator.py
|
| 28 |
+
2448b0c89d9fe4a530f8fdac6285e16ca1cd7c0e6642f2fe17c93d46df6ab4d115fb3440c028412f84c6c231ccf937bd preview/packs/foundry_flagship/tasks/foundry-002/plant.py
|
| 29 |
+
60ed9a040ba8cb63fe5a94ce2b1b786898e81a2db04a5f76f2b1aae6ac45d24e7fdfa9cb2ddad3267b43edf634b87e96 preview/packs/foundry_flagship/tasks/foundry-002/task.json
|
| 30 |
+
4a9745db2b25b00f99bf112f3a59a29daef505647b2ccf4a6ee5cb5cb30aa0a8992c2f56fc16919e37e6c30ddbb332a6 preview/packs/foundry_flagship/tasks/foundry-002/workspace_files/SPEC_SHEET.md
|
| 31 |
+
c8a28184e8a53f3c0ad6cdcd81caaa9d469e23e5e4fb16273a9a4a3a78b38d60694c42092a3a627e0afacf0f5d718227 preview_tasks.jsonl
|
| 32 |
+
881a983a9c1caf4f936b7a9bb824615695b060f557b937e0d4d92cced0dba2f6adf98ba45d3004619e27937c28d35118 reference/foundry-001-dev-00_reference_episode.json
|
| 33 |
+
8e146cb64467530d5967b24be464924e4e4c27a90553c3191478c4ddb8b5fe0e0c09b8ec9ebc31db48e0f8ad71b68ed4 reference/foundry-002-dev-00_reference_episode.json
|
| 34 |
+
18e1861cbf33048bbbc90b8c83a65a1483340c56548618f755d19da243096b1ea8c1dfc13a0e3c04d22d3d82192ca0fd reports/environment_card_foundry_001.md
|
| 35 |
+
0081135616c13fe282b34fe0e9442ba294dbf84f7cb789be220b1dd7aa075c5a6895a4aaf0bca5b04eb71910c63ef4a4 reports/environment_card_foundry_002.md
|
| 36 |
+
15e6a97b270df42232ff7d99439c7ae0d7bfe9ad598a164eff59a0a7aec6111158bbf3bae7f2fd6772f17a2edef921c9 reports/frontier_calibration_summary.json
|
| 37 |
+
65414abac49568ead755ef58fe2e12db9469b79029f5d7490297e862f2546b854f62a8ea0a98c850f11dd628ddd5d792 reports/validation_and_redteam_gates.json
|
| 38 |
+
247d6fe70204b740e3f7c9bda5d5fb74e820d5d3fc73690317f1719550a6e7c02f694e881690ac720300926842ea2bc7 tasks/harbor/foundry-001-dev-00/environment/.dockerignore
|
| 39 |
+
6c11695098c6a9e0990b23648fc6cc4c00280df3394fffa56732d861385bb6a007888a7d82e8b6eb7217c3fad20a3edf tasks/harbor/foundry-001-dev-00/environment/Dockerfile
|
| 40 |
+
843c55c83d5ef860377279576cc026c21419713308997c24b6885d91f0177a359f095857f0f18c44827476f9f4740923 tasks/harbor/foundry-001-dev-00/environment/agent/mcp.json
|
| 41 |
+
9756b5742c569d8617f2a19ccc5f3a8fa6c723f447152ba8fa1587b6a373593ed6d61c695ecd6549aeb87911770cdfc4 tasks/harbor/foundry-001-dev-00/environment/agent/workspace/SPEC_SHEET.md
|
| 42 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc tasks/harbor/foundry-001-dev-00/environment/agent/ztp_mcp_client.py
|
| 43 |
+
9d607a9346329abf13c923cd9138eed80f3175240d5b2c1b0fe1f845ba02041674952a64f32a0add07d4e06ad83c6894 tasks/harbor/foundry-001-dev-00/environment/docker-compose.yaml
|
| 44 |
+
d5989a52e8d8d2b399de6f4c199bc2a5215b1cdc858525f4f1d0e81e3f4cf992c636976bff5d8d4d1eef0867099144fe tasks/harbor/foundry-001-dev-00/environment/vault/Dockerfile
|
| 45 |
+
895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679 tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_mcp
|
| 46 |
+
9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_preview_verifier
|
| 47 |
+
688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79 tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_mcp
|
| 48 |
+
c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640 tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_preview_verifier
|
| 49 |
+
7924aead2a38fae245418e6a69508489af4df9843369f3eefdd5c1ee63b059a15e2c9b99b6adca8dbadcf1c16226fc42 tasks/harbor/foundry-001-dev-00/environment/vault/bin/multiarch_verification.json
|
| 50 |
+
acfd42df0e589e5b15552625036420a7591864d1771d0bd8292ada6eabcc4ad9ae9a106b372fb9cfb7aea24cede5b337 tasks/harbor/foundry-001-dev-00/environment/vault/core/__init__.py
|
| 51 |
+
6ea2fff4d80224ccc9276be5b7274df9560e343072058aa4f0f954bf1c74add6b77124dbc7c566c62892e4624bcd5d24 tasks/harbor/foundry-001-dev-00/environment/vault/core/daemon.py
|
| 52 |
+
e47c5e1832555c042815a623f9ca94682a8f4d2b4d1fd6fb44c7c4f1695b6f15f89fcda5877190491a861733378915a5 tasks/harbor/foundry-001-dev-00/environment/vault/core/pack_registry.py
|
| 53 |
+
f2ae8f9a915db7acfde5019aa8a99bedf665c1e6782a4b64f224cd1436c4ab9f878ce4fa9c40b76ebbdb7a834966db9f tasks/harbor/foundry-001-dev-00/environment/vault/core/plugin_base.py
|
| 54 |
+
539a9c9982615baabf4189a52cb44d99c9a85af1b302f1501462e061005c2af34ffce002d2c328bbb700bb3278e745ab tasks/harbor/foundry-001-dev-00/environment/vault/core/schema_contract.py
|
| 55 |
+
db16fa366e96d5472bb9466a46d7e3881cafe23e9c4aacc6fef66466867c1f6a317d72f5a17275ed075e1780c821bbc0 tasks/harbor/foundry-001-dev-00/environment/vault/core/vault_bins.py
|
| 56 |
+
152de9fcfc5adbe1a96c8a045aea181d84a44e510e747c62efff9f06b1fbc2002d69088d447cd8f7f853c4fcf00918f0 tasks/harbor/foundry-001-dev-00/environment/vault/core/verifier_core.py
|
| 57 |
+
616d036ab0de788fe4f5f6727194b7313ef6c4942922a565ff8e2de43dc26094ca3b486acf5d0f5962c8d213f865ef17 tasks/harbor/foundry-001-dev-00/environment/vault/core/ztp_client.py
|
| 58 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc tasks/harbor/foundry-001-dev-00/environment/vault/core/ztp_mcp_client.py
|
| 59 |
+
926abcf8c2e00d7b1d8436315702830a0c5af62aa4e427da00be37c434cdcc5c7c347612ae545acba2fdc490871fe024 tasks/harbor/foundry-001-dev-00/environment/vault/hidden.json
|
| 60 |
+
f3b20104e7144a11df34fabfd71b6a932153a4f7a799cfd6484cada87daf072401193f4686a1d3ee9c8caca5564bd155 tasks/harbor/foundry-001-dev-00/environment/vault/packs/foundry_flagship/pack_manifest.json
|
| 61 |
+
f227a1548b8a1a7fdd2d2b9bc90efdd3516797c1bdef423ec7229ba88e3ebb794d88394bcc956409da8476079d796449 tasks/harbor/foundry-001-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-001/evaluator.py
|
| 62 |
+
474e8e3e423ee938b572b6e81b3c33f636a95d0e51ba04a8d6d41cf26b6c314f0f48abf17f68f2a1c5cf1761a5b448ea tasks/harbor/foundry-001-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-001/plant.py
|
| 63 |
+
ceaf2eb3722bd0a6e4b42705dcb1cde519ac5532dd7b3b49ba474a829a96911bf3398183ed5b5de0c8fb739ee3120266 tasks/harbor/foundry-001-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-001/task.json
|
| 64 |
+
9756b5742c569d8617f2a19ccc5f3a8fa6c723f447152ba8fa1587b6a373593ed6d61c695ecd6549aeb87911770cdfc4 tasks/harbor/foundry-001-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-001/workspace_files/SPEC_SHEET.md
|
| 65 |
+
850a3ddf7eed8a73db5325c7fb203a7886f6254b23e066d1fcf81318fcf8604b28ef7b164b735d0f57a0e2583f201000 tasks/harbor/foundry-001-dev-00/instruction.md
|
| 66 |
+
a18c7d31cbc7d0cb8f870b7539b0188fbfd8755b8bff94aa373719dae810b1344e0fdc0e6ee02529da6fe4ee853cc607 tasks/harbor/foundry-001-dev-00/solution/solve.sh
|
| 67 |
+
c925cfcce799aff2fbb1fa5ee04865a956fad221fdefe022ef4051ad1489b8c18ae1cdf5d22ff365c49022886d621789 tasks/harbor/foundry-001-dev-00/task.toml
|
| 68 |
+
0f127c1a676832bae897a9bfc3baf1a5fe62eba99ff8ce301d6707d722dc989342a616e855544ddbe3af34bfcc532f2e tasks/harbor/foundry-001-dev-00/tests/Dockerfile
|
| 69 |
+
895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679 tasks/harbor/foundry-001-dev-00/tests/bin/linux-amd64/ztp_foundry_mcp
|
| 70 |
+
9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f tasks/harbor/foundry-001-dev-00/tests/bin/linux-amd64/ztp_foundry_preview_verifier
|
| 71 |
+
688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79 tasks/harbor/foundry-001-dev-00/tests/bin/linux-arm64/ztp_foundry_mcp
|
| 72 |
+
c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640 tasks/harbor/foundry-001-dev-00/tests/bin/linux-arm64/ztp_foundry_preview_verifier
|
| 73 |
+
7924aead2a38fae245418e6a69508489af4df9843369f3eefdd5c1ee63b059a15e2c9b99b6adca8dbadcf1c16226fc42 tasks/harbor/foundry-001-dev-00/tests/bin/multiarch_verification.json
|
| 74 |
+
acfd42df0e589e5b15552625036420a7591864d1771d0bd8292ada6eabcc4ad9ae9a106b372fb9cfb7aea24cede5b337 tasks/harbor/foundry-001-dev-00/tests/core/__init__.py
|
| 75 |
+
6ea2fff4d80224ccc9276be5b7274df9560e343072058aa4f0f954bf1c74add6b77124dbc7c566c62892e4624bcd5d24 tasks/harbor/foundry-001-dev-00/tests/core/daemon.py
|
| 76 |
+
e47c5e1832555c042815a623f9ca94682a8f4d2b4d1fd6fb44c7c4f1695b6f15f89fcda5877190491a861733378915a5 tasks/harbor/foundry-001-dev-00/tests/core/pack_registry.py
|
| 77 |
+
f2ae8f9a915db7acfde5019aa8a99bedf665c1e6782a4b64f224cd1436c4ab9f878ce4fa9c40b76ebbdb7a834966db9f tasks/harbor/foundry-001-dev-00/tests/core/plugin_base.py
|
| 78 |
+
539a9c9982615baabf4189a52cb44d99c9a85af1b302f1501462e061005c2af34ffce002d2c328bbb700bb3278e745ab tasks/harbor/foundry-001-dev-00/tests/core/schema_contract.py
|
| 79 |
+
db16fa366e96d5472bb9466a46d7e3881cafe23e9c4aacc6fef66466867c1f6a317d72f5a17275ed075e1780c821bbc0 tasks/harbor/foundry-001-dev-00/tests/core/vault_bins.py
|
| 80 |
+
152de9fcfc5adbe1a96c8a045aea181d84a44e510e747c62efff9f06b1fbc2002d69088d447cd8f7f853c4fcf00918f0 tasks/harbor/foundry-001-dev-00/tests/core/verifier_core.py
|
| 81 |
+
616d036ab0de788fe4f5f6727194b7313ef6c4942922a565ff8e2de43dc26094ca3b486acf5d0f5962c8d213f865ef17 tasks/harbor/foundry-001-dev-00/tests/core/ztp_client.py
|
| 82 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc tasks/harbor/foundry-001-dev-00/tests/core/ztp_mcp_client.py
|
| 83 |
+
fa7c8c01642499e5a0cfb6fe905a304fab9182278a9c47188a34092495c7cce95bdebbc41ff9b6261430208ad843e057 tasks/harbor/foundry-001-dev-00/tests/docker-compose.yaml
|
| 84 |
+
76d48544e02e1a16385348f34f8165a89f39fd8bcdabf327121e6db911eab3746213722fb5f4bf41b2a10ccad03d1e3a tasks/harbor/foundry-001-dev-00/tests/grade.py
|
| 85 |
+
926abcf8c2e00d7b1d8436315702830a0c5af62aa4e427da00be37c434cdcc5c7c347612ae545acba2fdc490871fe024 tasks/harbor/foundry-001-dev-00/tests/hidden.json
|
| 86 |
+
f3b20104e7144a11df34fabfd71b6a932153a4f7a799cfd6484cada87daf072401193f4686a1d3ee9c8caca5564bd155 tasks/harbor/foundry-001-dev-00/tests/packs/foundry_flagship/pack_manifest.json
|
| 87 |
+
f227a1548b8a1a7fdd2d2b9bc90efdd3516797c1bdef423ec7229ba88e3ebb794d88394bcc956409da8476079d796449 tasks/harbor/foundry-001-dev-00/tests/packs/foundry_flagship/tasks/foundry-001/evaluator.py
|
| 88 |
+
474e8e3e423ee938b572b6e81b3c33f636a95d0e51ba04a8d6d41cf26b6c314f0f48abf17f68f2a1c5cf1761a5b448ea tasks/harbor/foundry-001-dev-00/tests/packs/foundry_flagship/tasks/foundry-001/plant.py
|
| 89 |
+
ceaf2eb3722bd0a6e4b42705dcb1cde519ac5532dd7b3b49ba474a829a96911bf3398183ed5b5de0c8fb739ee3120266 tasks/harbor/foundry-001-dev-00/tests/packs/foundry_flagship/tasks/foundry-001/task.json
|
| 90 |
+
9756b5742c569d8617f2a19ccc5f3a8fa6c723f447152ba8fa1587b6a373593ed6d61c695ecd6549aeb87911770cdfc4 tasks/harbor/foundry-001-dev-00/tests/packs/foundry_flagship/tasks/foundry-001/workspace_files/SPEC_SHEET.md
|
| 91 |
+
1485c8c5f0141271f1d15c330cc913811e629b60c38975cb63492c27a847d0d56ad346bb05f2edc531cb559eb7a54a2b tasks/harbor/foundry-001-dev-00/tests/test.sh
|
| 92 |
+
247d6fe70204b740e3f7c9bda5d5fb74e820d5d3fc73690317f1719550a6e7c02f694e881690ac720300926842ea2bc7 tasks/harbor/foundry-002-dev-00/environment/.dockerignore
|
| 93 |
+
6c11695098c6a9e0990b23648fc6cc4c00280df3394fffa56732d861385bb6a007888a7d82e8b6eb7217c3fad20a3edf tasks/harbor/foundry-002-dev-00/environment/Dockerfile
|
| 94 |
+
843c55c83d5ef860377279576cc026c21419713308997c24b6885d91f0177a359f095857f0f18c44827476f9f4740923 tasks/harbor/foundry-002-dev-00/environment/agent/mcp.json
|
| 95 |
+
4a9745db2b25b00f99bf112f3a59a29daef505647b2ccf4a6ee5cb5cb30aa0a8992c2f56fc16919e37e6c30ddbb332a6 tasks/harbor/foundry-002-dev-00/environment/agent/workspace/SPEC_SHEET.md
|
| 96 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc tasks/harbor/foundry-002-dev-00/environment/agent/ztp_mcp_client.py
|
| 97 |
+
88956477230f1b89a566f1c5d8b85afd11c753d5afc0bb00f808d447b1956e64a6b8fc2e6f9958294234da310a77e10d tasks/harbor/foundry-002-dev-00/environment/docker-compose.yaml
|
| 98 |
+
9f77d1a5eed3008550ac16571f86daaea539fbde6e422ae30a53daed7a195c40b6971384d24346d4bc8611b8f0b77492 tasks/harbor/foundry-002-dev-00/environment/vault/Dockerfile
|
| 99 |
+
895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679 tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_mcp
|
| 100 |
+
9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_preview_verifier
|
| 101 |
+
688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79 tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_mcp
|
| 102 |
+
c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640 tasks/harbor/foundry-002-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_preview_verifier
|
| 103 |
+
7924aead2a38fae245418e6a69508489af4df9843369f3eefdd5c1ee63b059a15e2c9b99b6adca8dbadcf1c16226fc42 tasks/harbor/foundry-002-dev-00/environment/vault/bin/multiarch_verification.json
|
| 104 |
+
acfd42df0e589e5b15552625036420a7591864d1771d0bd8292ada6eabcc4ad9ae9a106b372fb9cfb7aea24cede5b337 tasks/harbor/foundry-002-dev-00/environment/vault/core/__init__.py
|
| 105 |
+
6ea2fff4d80224ccc9276be5b7274df9560e343072058aa4f0f954bf1c74add6b77124dbc7c566c62892e4624bcd5d24 tasks/harbor/foundry-002-dev-00/environment/vault/core/daemon.py
|
| 106 |
+
e47c5e1832555c042815a623f9ca94682a8f4d2b4d1fd6fb44c7c4f1695b6f15f89fcda5877190491a861733378915a5 tasks/harbor/foundry-002-dev-00/environment/vault/core/pack_registry.py
|
| 107 |
+
f2ae8f9a915db7acfde5019aa8a99bedf665c1e6782a4b64f224cd1436c4ab9f878ce4fa9c40b76ebbdb7a834966db9f tasks/harbor/foundry-002-dev-00/environment/vault/core/plugin_base.py
|
| 108 |
+
539a9c9982615baabf4189a52cb44d99c9a85af1b302f1501462e061005c2af34ffce002d2c328bbb700bb3278e745ab tasks/harbor/foundry-002-dev-00/environment/vault/core/schema_contract.py
|
| 109 |
+
db16fa366e96d5472bb9466a46d7e3881cafe23e9c4aacc6fef66466867c1f6a317d72f5a17275ed075e1780c821bbc0 tasks/harbor/foundry-002-dev-00/environment/vault/core/vault_bins.py
|
| 110 |
+
152de9fcfc5adbe1a96c8a045aea181d84a44e510e747c62efff9f06b1fbc2002d69088d447cd8f7f853c4fcf00918f0 tasks/harbor/foundry-002-dev-00/environment/vault/core/verifier_core.py
|
| 111 |
+
616d036ab0de788fe4f5f6727194b7313ef6c4942922a565ff8e2de43dc26094ca3b486acf5d0f5962c8d213f865ef17 tasks/harbor/foundry-002-dev-00/environment/vault/core/ztp_client.py
|
| 112 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc tasks/harbor/foundry-002-dev-00/environment/vault/core/ztp_mcp_client.py
|
| 113 |
+
d928501a4e9e7b6f63788e846792514d44df68e7693b877c33258f1ed9ce1efde7c24e07af15b37fb8be3522d4838441 tasks/harbor/foundry-002-dev-00/environment/vault/hidden.json
|
| 114 |
+
f3b20104e7144a11df34fabfd71b6a932153a4f7a799cfd6484cada87daf072401193f4686a1d3ee9c8caca5564bd155 tasks/harbor/foundry-002-dev-00/environment/vault/packs/foundry_flagship/pack_manifest.json
|
| 115 |
+
8f1dda65950a3b1907ddf12fff7ebfbaf5db4f091c263c3b0b109e18f7df8f6076341e42c84f491dd27942c74fffe83b tasks/harbor/foundry-002-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-002/contract.py
|
| 116 |
+
d7b6ec9cf1a4087c36b9fd831af25bd513dfc48587475c3536104361d4f8dad14d4bc2cebddbff5088f6beb254be623b tasks/harbor/foundry-002-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-002/evaluator.py
|
| 117 |
+
2448b0c89d9fe4a530f8fdac6285e16ca1cd7c0e6642f2fe17c93d46df6ab4d115fb3440c028412f84c6c231ccf937bd tasks/harbor/foundry-002-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-002/plant.py
|
| 118 |
+
60ed9a040ba8cb63fe5a94ce2b1b786898e81a2db04a5f76f2b1aae6ac45d24e7fdfa9cb2ddad3267b43edf634b87e96 tasks/harbor/foundry-002-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-002/task.json
|
| 119 |
+
4a9745db2b25b00f99bf112f3a59a29daef505647b2ccf4a6ee5cb5cb30aa0a8992c2f56fc16919e37e6c30ddbb332a6 tasks/harbor/foundry-002-dev-00/environment/vault/packs/foundry_flagship/tasks/foundry-002/workspace_files/SPEC_SHEET.md
|
| 120 |
+
56eda26b5fbf70d5b8a0ba0b89d748c15c2e6cb5263ce8a8478f4bf1c25260732ba71151d72fcc624580f316ad21a166 tasks/harbor/foundry-002-dev-00/instruction.md
|
| 121 |
+
15647011315ac5bcc129e6024f9bd2435abe71d7114c11339fcbe02fe59dfcf14ebb78748d3cd5d0777baefa1792e3f2 tasks/harbor/foundry-002-dev-00/solution/solve.sh
|
| 122 |
+
334d4b025da7f5e03c36d9886c83a94c746f67013dd0a95a869ce71fe68bd63220e88ed45ea04f7409bd0a6863ad2b2b tasks/harbor/foundry-002-dev-00/task.toml
|
| 123 |
+
929263288440d2e6dd278510f51e6ae01badbebbe0f3376cfab8d4ad068f00e4afee26676b18c040d6ee4ef491fcbc62 tasks/harbor/foundry-002-dev-00/tests/Dockerfile
|
| 124 |
+
895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679 tasks/harbor/foundry-002-dev-00/tests/bin/linux-amd64/ztp_foundry_mcp
|
| 125 |
+
9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f tasks/harbor/foundry-002-dev-00/tests/bin/linux-amd64/ztp_foundry_preview_verifier
|
| 126 |
+
688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79 tasks/harbor/foundry-002-dev-00/tests/bin/linux-arm64/ztp_foundry_mcp
|
| 127 |
+
c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640 tasks/harbor/foundry-002-dev-00/tests/bin/linux-arm64/ztp_foundry_preview_verifier
|
| 128 |
+
7924aead2a38fae245418e6a69508489af4df9843369f3eefdd5c1ee63b059a15e2c9b99b6adca8dbadcf1c16226fc42 tasks/harbor/foundry-002-dev-00/tests/bin/multiarch_verification.json
|
| 129 |
+
acfd42df0e589e5b15552625036420a7591864d1771d0bd8292ada6eabcc4ad9ae9a106b372fb9cfb7aea24cede5b337 tasks/harbor/foundry-002-dev-00/tests/core/__init__.py
|
| 130 |
+
6ea2fff4d80224ccc9276be5b7274df9560e343072058aa4f0f954bf1c74add6b77124dbc7c566c62892e4624bcd5d24 tasks/harbor/foundry-002-dev-00/tests/core/daemon.py
|
| 131 |
+
e47c5e1832555c042815a623f9ca94682a8f4d2b4d1fd6fb44c7c4f1695b6f15f89fcda5877190491a861733378915a5 tasks/harbor/foundry-002-dev-00/tests/core/pack_registry.py
|
| 132 |
+
f2ae8f9a915db7acfde5019aa8a99bedf665c1e6782a4b64f224cd1436c4ab9f878ce4fa9c40b76ebbdb7a834966db9f tasks/harbor/foundry-002-dev-00/tests/core/plugin_base.py
|
| 133 |
+
539a9c9982615baabf4189a52cb44d99c9a85af1b302f1501462e061005c2af34ffce002d2c328bbb700bb3278e745ab tasks/harbor/foundry-002-dev-00/tests/core/schema_contract.py
|
| 134 |
+
db16fa366e96d5472bb9466a46d7e3881cafe23e9c4aacc6fef66466867c1f6a317d72f5a17275ed075e1780c821bbc0 tasks/harbor/foundry-002-dev-00/tests/core/vault_bins.py
|
| 135 |
+
152de9fcfc5adbe1a96c8a045aea181d84a44e510e747c62efff9f06b1fbc2002d69088d447cd8f7f853c4fcf00918f0 tasks/harbor/foundry-002-dev-00/tests/core/verifier_core.py
|
| 136 |
+
616d036ab0de788fe4f5f6727194b7313ef6c4942922a565ff8e2de43dc26094ca3b486acf5d0f5962c8d213f865ef17 tasks/harbor/foundry-002-dev-00/tests/core/ztp_client.py
|
| 137 |
+
f81b02ca9c22b41542df35ff61b9cb08682ba9c8b8a34211a80f3898645e67cc99985e3e0e875bd14b455b233f036ddc tasks/harbor/foundry-002-dev-00/tests/core/ztp_mcp_client.py
|
| 138 |
+
fa7c8c01642499e5a0cfb6fe905a304fab9182278a9c47188a34092495c7cce95bdebbc41ff9b6261430208ad843e057 tasks/harbor/foundry-002-dev-00/tests/docker-compose.yaml
|
| 139 |
+
8dce1a28ea736fc6d521ec353689dd609db387f56d1100a916e3d77f29d068d96f4be0f32109276fa3eaa54464b531d9 tasks/harbor/foundry-002-dev-00/tests/grade.py
|
| 140 |
+
d928501a4e9e7b6f63788e846792514d44df68e7693b877c33258f1ed9ce1efde7c24e07af15b37fb8be3522d4838441 tasks/harbor/foundry-002-dev-00/tests/hidden.json
|
| 141 |
+
f3b20104e7144a11df34fabfd71b6a932153a4f7a799cfd6484cada87daf072401193f4686a1d3ee9c8caca5564bd155 tasks/harbor/foundry-002-dev-00/tests/packs/foundry_flagship/pack_manifest.json
|
| 142 |
+
8f1dda65950a3b1907ddf12fff7ebfbaf5db4f091c263c3b0b109e18f7df8f6076341e42c84f491dd27942c74fffe83b tasks/harbor/foundry-002-dev-00/tests/packs/foundry_flagship/tasks/foundry-002/contract.py
|
| 143 |
+
d7b6ec9cf1a4087c36b9fd831af25bd513dfc48587475c3536104361d4f8dad14d4bc2cebddbff5088f6beb254be623b tasks/harbor/foundry-002-dev-00/tests/packs/foundry_flagship/tasks/foundry-002/evaluator.py
|
| 144 |
+
2448b0c89d9fe4a530f8fdac6285e16ca1cd7c0e6642f2fe17c93d46df6ab4d115fb3440c028412f84c6c231ccf937bd tasks/harbor/foundry-002-dev-00/tests/packs/foundry_flagship/tasks/foundry-002/plant.py
|
| 145 |
+
60ed9a040ba8cb63fe5a94ce2b1b786898e81a2db04a5f76f2b1aae6ac45d24e7fdfa9cb2ddad3267b43edf634b87e96 tasks/harbor/foundry-002-dev-00/tests/packs/foundry_flagship/tasks/foundry-002/task.json
|
| 146 |
+
4a9745db2b25b00f99bf112f3a59a29daef505647b2ccf4a6ee5cb5cb30aa0a8992c2f56fc16919e37e6c30ddbb332a6 tasks/harbor/foundry-002-dev-00/tests/packs/foundry_flagship/tasks/foundry-002/workspace_files/SPEC_SHEET.md
|
| 147 |
+
1485c8c5f0141271f1d15c330cc913811e629b60c38975cb63492c27a847d0d56ad346bb05f2edc531cb559eb7a54a2b tasks/harbor/foundry-002-dev-00/tests/test.sh
|
| 148 |
+
574a044444a1356017b3d2bb49f196c20585632cdf5d032da1207d12a097d53b6ed771ec6cff51e6efa5ffef3f6ef478 verify_preview.sh
|
preview/bin/linux-amd64/ztp_foundry_mcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7a9958975405f0329dccfeabc5f799b32c9d452a90e5d4b622f5160a8fc66f8
|
| 3 |
+
size 1017472
|
preview/bin/linux-amd64/ztp_foundry_preview_verifier
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1467203f85dad157ea1cdd3ea375205ed9aa1314f4f931361e70086179edc3a5
|
| 3 |
+
size 883808
|
preview/bin/linux-arm64/ztp_foundry_mcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1b85edc5b2c945c2b61678d2f1da1a9fe1addfed036403346a31c26ac7ebf4d
|
| 3 |
+
size 833000
|
preview/bin/linux-arm64/ztp_foundry_preview_verifier
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d85701ea11a2114ae044e824d08fdc46aea4b772005517310d73ef4f71d74e65
|
| 3 |
+
size 730352
|
preview/bin/macos-arm64/ztp_foundry_mcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cd5a6442a8c6962522ddd559f6236f98ad22dea9e21120336134738de79d5b4
|
| 3 |
+
size 782416
|
preview/bin/macos-arm64/ztp_foundry_preview_verifier
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c39bb47d57f6c856a834c2649fe9a35f08f98ca69a1c8b4947192d799d03736
|
| 3 |
+
size 666976
|
preview/bin/multiarch_verification.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"allowed_tasks": [
|
| 3 |
+
"foundry-001-dev-00",
|
| 4 |
+
"foundry-002-dev-00"
|
| 5 |
+
],
|
| 6 |
+
"binary_sha384": {
|
| 7 |
+
"linux-amd64/ztp_foundry_mcp": "895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679",
|
| 8 |
+
"linux-amd64/ztp_foundry_preview_verifier": "9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f",
|
| 9 |
+
"linux-arm64/ztp_foundry_mcp": "688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79",
|
| 10 |
+
"linux-arm64/ztp_foundry_preview_verifier": "c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640",
|
| 11 |
+
"macos-arm64/ztp_foundry_mcp": "5ce27e625310c46cfbef964e3f82c7d0520f17ed2d86dc6b52fac3159972d3735757a4e1e80b319ed6186d4e3b2b3734",
|
| 12 |
+
"macos-arm64/ztp_foundry_preview_verifier": "645b9bcedab4c992b7b30df9def17a426ba8c8639c44a0198f560282f908c6965c9dc3d6baa022effac45020a0d3d496"
|
| 13 |
+
},
|
| 14 |
+
"engine": "genesis_foundry_v0.1.0",
|
| 15 |
+
"verifier_scope": "public_preview_dev00_allowlist_only"
|
| 16 |
+
}
|
preview/core/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Core modular infrastructure for Genesis Lab Flagship Monolith (`v3.0.0`)."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
__all__ = [
|
| 5 |
+
"ztp_client",
|
| 6 |
+
"ztp_mcp_client",
|
| 7 |
+
"schema_contract",
|
| 8 |
+
"plugin_base",
|
| 9 |
+
"pack_registry",
|
| 10 |
+
"daemon",
|
| 11 |
+
"verifier_core",
|
| 12 |
+
]
|
preview/core/daemon.py
ADDED
|
@@ -0,0 +1,573 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Privileged Monolith MCP Daemon (`root:root`, `0700` vault & call_ledger isolation).
|
| 3 |
+
|
| 4 |
+
Exposes ONLY the MCP JSON-RPC boundary (`/run/ztp/ztp_mcp.sock` or TCP host:port)
|
| 5 |
+
to unprivileged (`uid=1000`) rollout agents while enforcing:
|
| 6 |
+
- Split call budgets (`max_discovery_calls` vs `max_sim_calls`)
|
| 7 |
+
- Batch-sweep macro disabling (`find_flip`, `design_run`, `validate_series`)
|
| 8 |
+
- Engineering Datasheet Discovery Mode (`form='short'` + safe metadata, withholding internal ODEs)
|
| 9 |
+
- SHA-384 chained `call_ledger.jsonl` with full `call_spec` & emitted seals (root-only)
|
| 10 |
+
- Dynamic plugin dispatch (`StatefulPlantPlugin`) for `CLC` & `FLT` tasks
|
| 11 |
+
"""
|
| 12 |
+
from __future__ import annotations
|
| 13 |
+
|
| 14 |
+
import argparse
|
| 15 |
+
import hashlib
|
| 16 |
+
import json
|
| 17 |
+
import os
|
| 18 |
+
import signal
|
| 19 |
+
import socketserver
|
| 20 |
+
import sys
|
| 21 |
+
import threading
|
| 22 |
+
import time
|
| 23 |
+
from typing import Any
|
| 24 |
+
|
| 25 |
+
CORE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 26 |
+
LAB_ROOT = os.path.dirname(CORE_DIR)
|
| 27 |
+
if LAB_ROOT not in sys.path:
|
| 28 |
+
sys.path.insert(0, LAB_ROOT)
|
| 29 |
+
|
| 30 |
+
from core.pack_registry import get_task_bundle, load_task_plant_plugin, load_task_vault # noqa: E402
|
| 31 |
+
from core.verifier_core import ( # noqa: E402
|
| 32 |
+
compute_ledger_entry_hash,
|
| 33 |
+
extract_model_id_from_call,
|
| 34 |
+
extract_seals_from_answer,
|
| 35 |
+
)
|
| 36 |
+
from core.vault_bins import resolve_pack_engine # noqa: E402
|
| 37 |
+
from core.ztp_client import McpStdioClient # noqa: E402
|
| 38 |
+
|
| 39 |
+
DISCOVERY_TOOLS = {
|
| 40 |
+
"list_cards",
|
| 41 |
+
"describe_card",
|
| 42 |
+
"list_solvers",
|
| 43 |
+
"describe_solver",
|
| 44 |
+
"find_model",
|
| 45 |
+
"verify_tape",
|
| 46 |
+
"verify_solution",
|
| 47 |
+
"verify_step",
|
| 48 |
+
"verify_receipt",
|
| 49 |
+
"verify_dataset",
|
| 50 |
+
"cite",
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
SIM_TOOLS = {
|
| 54 |
+
"compute_step",
|
| 55 |
+
"run_trajectory",
|
| 56 |
+
"solve",
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
EXEMPT_TOOLS = {"budget_status"}
|
| 60 |
+
DISABLED_BATCH_TOOLS = {"run_dataset", "find_flip", "design_run", "validate_series"}
|
| 61 |
+
|
| 62 |
+
TOOL_ALIASES = {
|
| 63 |
+
"get_card": "describe_card",
|
| 64 |
+
"get_solver": "describe_solver",
|
| 65 |
+
"step_environment": "step_env",
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
PROOF_FIELD_NAMES = {"field_sha384", "seal_parts", "solution_seal", "seal_rule", "receipt_sha384"}
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def _strip_proof_fields(obj: Any) -> Any:
|
| 73 |
+
if isinstance(obj, dict):
|
| 74 |
+
return {
|
| 75 |
+
k: _strip_proof_fields(v)
|
| 76 |
+
for k, v in obj.items()
|
| 77 |
+
if not (k.endswith("_hex") or k in PROOF_FIELD_NAMES)
|
| 78 |
+
}
|
| 79 |
+
if isinstance(obj, list):
|
| 80 |
+
return [_strip_proof_fields(v) for v in obj]
|
| 81 |
+
return obj
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def strip_proof_fields_text(text: str) -> str:
|
| 85 |
+
"""Drop hash and bit-pattern fields from a JSON answer; non-JSON text passes through."""
|
| 86 |
+
try:
|
| 87 |
+
parsed = json.loads(text)
|
| 88 |
+
except ValueError:
|
| 89 |
+
return text
|
| 90 |
+
return json.dumps(_strip_proof_fields(parsed), separators=(",", ":"))
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
class MonolithDaemon:
|
| 94 |
+
"""Thread-safe privileged MCP router & ledger writer for one rollout container."""
|
| 95 |
+
|
| 96 |
+
def __init__(
|
| 97 |
+
self,
|
| 98 |
+
*,
|
| 99 |
+
task_id: str,
|
| 100 |
+
pack_name: str = "flagship_monolith_30",
|
| 101 |
+
pack_dir: str | None = None,
|
| 102 |
+
vault_dir: str | None = None,
|
| 103 |
+
ledger_path: str,
|
| 104 |
+
engine_bin: str | None = None,
|
| 105 |
+
max_discovery_calls: int | None = None,
|
| 106 |
+
max_sim_calls: int | None = None,
|
| 107 |
+
wall_timeout_s: float = 3600.0,
|
| 108 |
+
):
|
| 109 |
+
self.task_id = task_id
|
| 110 |
+
self.bundle = get_task_bundle(task_id=task_id, pack_name=pack_name, pack_dir=pack_dir)
|
| 111 |
+
self.task_spec = self.bundle["task_spec"]
|
| 112 |
+
budget = self.task_spec.get("budget") or {}
|
| 113 |
+
self.max_discovery_calls = int(
|
| 114 |
+
max_discovery_calls if max_discovery_calls is not None else budget.get("max_discovery_calls", 120)
|
| 115 |
+
)
|
| 116 |
+
self.max_sim_calls = int(
|
| 117 |
+
max_sim_calls if max_sim_calls is not None else budget.get("max_sim_calls", 40)
|
| 118 |
+
)
|
| 119 |
+
self.wall_timeout_s = float(wall_timeout_s)
|
| 120 |
+
self.started_monotonic: float | None = None
|
| 121 |
+
|
| 122 |
+
self.ledger_path = ledger_path
|
| 123 |
+
ledger_dir = os.path.dirname(os.path.abspath(ledger_path))
|
| 124 |
+
if not os.path.isdir(ledger_dir):
|
| 125 |
+
os.makedirs(ledger_dir, mode=0o700, exist_ok=True)
|
| 126 |
+
# The ledger exists from the first instant, even if the agent never calls a tool:
|
| 127 |
+
# a missing ledger at grading time then always means a broken pipe, never "no calls".
|
| 128 |
+
fd = os.open(ledger_path, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0o600)
|
| 129 |
+
os.close(fd)
|
| 130 |
+
if engine_bin is None:
|
| 131 |
+
engine_bin = resolve_pack_engine(pack_name=pack_name, pack_dir=pack_dir)
|
| 132 |
+
self.vault = load_task_vault(task_id=task_id, vault_dir=vault_dir, pack_dir=self.bundle["pack_dir"])
|
| 133 |
+
|
| 134 |
+
# Per-task agent surface (`task.json` `agent_surface`). A task whose grader needs no
|
| 135 |
+
# hashes from the agent can switch off free recompute tools and drop proof fields
|
| 136 |
+
# from what the agent reads. The ledger always hashes the engine's full answer.
|
| 137 |
+
surface = dict(self.task_spec.get("agent_surface") or {})
|
| 138 |
+
self._task_disabled_tools = {str(t) for t in (surface.get("disabled_tools") or [])}
|
| 139 |
+
self._strip_proof_fields = bool(surface.get("strip_proof_fields"))
|
| 140 |
+
|
| 141 |
+
self._lock = threading.Lock()
|
| 142 |
+
self.seq = 0
|
| 143 |
+
self.discovery_used = 0
|
| 144 |
+
self.sim_used = 0
|
| 145 |
+
self.prev_sha384 = "0" * 96
|
| 146 |
+
self._load_existing_ledger()
|
| 147 |
+
|
| 148 |
+
self._client = McpStdioClient(engine_bin=engine_bin)
|
| 149 |
+
self._engine_tools = [t for t in self._client.list_tools() if t.get("name") not in DISABLED_BATCH_TOOLS]
|
| 150 |
+
self._plugin = load_task_plant_plugin(
|
| 151 |
+
task_id=task_id,
|
| 152 |
+
task_dir=self.bundle["task_dir"],
|
| 153 |
+
task_spec=self.task_spec,
|
| 154 |
+
engine_client=self._client,
|
| 155 |
+
vault=self.vault,
|
| 156 |
+
)
|
| 157 |
+
|
| 158 |
+
def _load_existing_ledger(self) -> None:
|
| 159 |
+
if not os.path.isfile(self.ledger_path):
|
| 160 |
+
return
|
| 161 |
+
with open(self.ledger_path, "r", encoding="utf-8") as fh:
|
| 162 |
+
for line in fh:
|
| 163 |
+
s = line.strip()
|
| 164 |
+
if not s:
|
| 165 |
+
continue
|
| 166 |
+
rec = json.loads(s)
|
| 167 |
+
self.seq = int(rec.get("seq", self.seq))
|
| 168 |
+
self.discovery_used = int(rec.get("discovery_used", self.discovery_used))
|
| 169 |
+
self.sim_used = int(rec.get("sim_used", self.sim_used))
|
| 170 |
+
self.prev_sha384 = str(rec.get("entry_sha384", self.prev_sha384))
|
| 171 |
+
|
| 172 |
+
def close(self) -> None:
|
| 173 |
+
if self._plugin is not None:
|
| 174 |
+
self._plugin.close()
|
| 175 |
+
self._client.close()
|
| 176 |
+
|
| 177 |
+
def _append_ledger(
|
| 178 |
+
self,
|
| 179 |
+
*,
|
| 180 |
+
tool: str,
|
| 181 |
+
category: str,
|
| 182 |
+
args: dict[str, Any],
|
| 183 |
+
raw_text: str,
|
| 184 |
+
is_error: bool,
|
| 185 |
+
budget_rejected: bool = False,
|
| 186 |
+
disabled_tool: bool = False,
|
| 187 |
+
call_spec: dict[str, Any] | None = None,
|
| 188 |
+
extracted_seals: list[str] | None = None,
|
| 189 |
+
step_call_records: list[dict[str, Any]] | None = None,
|
| 190 |
+
plugin_event: dict[str, Any] | None = None,
|
| 191 |
+
) -> None:
|
| 192 |
+
self.seq += 1
|
| 193 |
+
args_bytes = json.dumps(args, sort_keys=True, separators=(",", ":")).encode("utf-8")
|
| 194 |
+
ans_hash = hashlib.sha384(raw_text.encode("utf-8")).hexdigest()
|
| 195 |
+
body: dict[str, Any] = {
|
| 196 |
+
"seq": self.seq,
|
| 197 |
+
"ts_unix": round(time.time(), 6),
|
| 198 |
+
"task_id": self.task_id,
|
| 199 |
+
"tool": tool,
|
| 200 |
+
"category": category,
|
| 201 |
+
"discovery_used": self.discovery_used,
|
| 202 |
+
"max_discovery_calls": self.max_discovery_calls,
|
| 203 |
+
"sim_used": self.sim_used,
|
| 204 |
+
"max_sim_calls": self.max_sim_calls,
|
| 205 |
+
"budget_rejected": budget_rejected,
|
| 206 |
+
"disabled_tool": disabled_tool,
|
| 207 |
+
"is_error": is_error,
|
| 208 |
+
"args_sha384": hashlib.sha384(args_bytes).hexdigest(),
|
| 209 |
+
"answer_sha384": ans_hash,
|
| 210 |
+
"call_spec": call_spec,
|
| 211 |
+
"extracted_seals": extracted_seals or [],
|
| 212 |
+
"step_call_records": step_call_records or [],
|
| 213 |
+
"plugin_event": plugin_event,
|
| 214 |
+
"prev_sha384": self.prev_sha384,
|
| 215 |
+
}
|
| 216 |
+
entry_hash = compute_ledger_entry_hash(body)
|
| 217 |
+
full_entry = dict(body, entry_sha384=entry_hash)
|
| 218 |
+
self.prev_sha384 = entry_hash
|
| 219 |
+
with open(self.ledger_path, "a", encoding="utf-8") as fh:
|
| 220 |
+
fh.write(json.dumps(full_entry, separators=(",", ":")) + "\n")
|
| 221 |
+
try:
|
| 222 |
+
os.chmod(self.ledger_path, 0o600)
|
| 223 |
+
except OSError:
|
| 224 |
+
pass
|
| 225 |
+
|
| 226 |
+
def list_exposed_tools(self) -> list[dict[str, Any]]:
|
| 227 |
+
tools: list[dict[str, Any]] = [
|
| 228 |
+
{
|
| 229 |
+
"name": "budget_status",
|
| 230 |
+
"description": "Return remaining read-only discovery budget and simulation call budget (exempt from call caps).",
|
| 231 |
+
"inputSchema": {"type": "object", "properties": {}},
|
| 232 |
+
}
|
| 233 |
+
]
|
| 234 |
+
if self._plugin is not None:
|
| 235 |
+
tools.extend(self._plugin.tool_definitions())
|
| 236 |
+
tools.extend(self._engine_tools)
|
| 237 |
+
return [t for t in tools if t.get("name") not in self._task_disabled_tools]
|
| 238 |
+
|
| 239 |
+
def _serve_datasheet_discovery(self, tool_name: str, args: dict[str, Any]) -> tuple[str, bool]:
|
| 240 |
+
if tool_name == "describe_card":
|
| 241 |
+
short_args = {"domain": args.get("domain", ""), "card": args.get("card", ""), "form": "short"}
|
| 242 |
+
short_ans, raw_short, is_err = self._client.call_json("describe_card", short_args)
|
| 243 |
+
if is_err or not isinstance(short_ans, dict):
|
| 244 |
+
return raw_short, is_err
|
| 245 |
+
full_ans, _, full_err = self._client.call_json(
|
| 246 |
+
"describe_card",
|
| 247 |
+
{"domain": args.get("domain", ""), "card": args.get("card", ""), "form": "full"},
|
| 248 |
+
)
|
| 249 |
+
out = dict(short_ans)
|
| 250 |
+
out.pop("full_form", None)
|
| 251 |
+
out["form"] = "datasheet"
|
| 252 |
+
if not full_err and isinstance(full_ans, dict):
|
| 253 |
+
for k in ("advisory_flags", "validation", "frame_slots", "frame_rule"):
|
| 254 |
+
if k in full_ans:
|
| 255 |
+
out[k] = full_ans[k]
|
| 256 |
+
return json.dumps(out, separators=(",", ":")), False
|
| 257 |
+
|
| 258 |
+
short_args = {"solver": args.get("solver", ""), "form": "short"}
|
| 259 |
+
short_ans, raw_short, is_err = self._client.call_json("describe_solver", short_args)
|
| 260 |
+
if is_err or not isinstance(short_ans, dict):
|
| 261 |
+
return raw_short, is_err
|
| 262 |
+
full_ans, _, full_err = self._client.call_json(
|
| 263 |
+
"describe_solver",
|
| 264 |
+
{"solver": args.get("solver", ""), "form": "full"},
|
| 265 |
+
)
|
| 266 |
+
out = dict(short_ans)
|
| 267 |
+
out.pop("full_form", None)
|
| 268 |
+
out["form"] = "datasheet"
|
| 269 |
+
if not full_err and isinstance(full_ans, dict):
|
| 270 |
+
for k in ("couplings", "validation"):
|
| 271 |
+
if k in full_ans:
|
| 272 |
+
out[k] = full_ans[k]
|
| 273 |
+
return json.dumps(out, separators=(",", ":")), False
|
| 274 |
+
|
| 275 |
+
def _budget_snapshot(self) -> dict[str, Any]:
|
| 276 |
+
elapsed = round(time.monotonic() - self.started_monotonic, 2) if self.started_monotonic is not None else 0.0
|
| 277 |
+
snap: dict[str, Any] = {
|
| 278 |
+
"ok": True,
|
| 279 |
+
"task_id": self.task_id,
|
| 280 |
+
"discovery_calls_used": self.discovery_used,
|
| 281 |
+
"discovery_calls_remaining": max(0, self.max_discovery_calls - self.discovery_used),
|
| 282 |
+
"max_discovery_calls": self.max_discovery_calls,
|
| 283 |
+
"sim_calls_used": self.sim_used,
|
| 284 |
+
"sim_calls_remaining": max(0, self.max_sim_calls - self.sim_used),
|
| 285 |
+
"max_sim_calls": self.max_sim_calls,
|
| 286 |
+
"wall_seconds_elapsed": elapsed,
|
| 287 |
+
"wall_seconds_remaining": round(max(0.0, self.wall_timeout_s - elapsed), 2),
|
| 288 |
+
}
|
| 289 |
+
if self._plugin is not None:
|
| 290 |
+
snap.update(self._plugin.budget_extras())
|
| 291 |
+
return snap
|
| 292 |
+
|
| 293 |
+
def _reject_budget(self, tool_name: str, category: str, args: dict[str, Any], message: str) -> dict[str, Any]:
|
| 294 |
+
err_txt = json.dumps({"ok": False, "error": message, "budget": self._budget_snapshot()}, separators=(",", ":"))
|
| 295 |
+
self._append_ledger(
|
| 296 |
+
tool=tool_name,
|
| 297 |
+
category=category,
|
| 298 |
+
args=args,
|
| 299 |
+
raw_text=err_txt,
|
| 300 |
+
is_error=True,
|
| 301 |
+
budget_rejected=True,
|
| 302 |
+
)
|
| 303 |
+
return {"ok": True, "text": err_txt, "isError": True}
|
| 304 |
+
|
| 305 |
+
def handle_tool_call(self, raw_tool_name: str, args: dict[str, Any]) -> dict[str, Any]:
|
| 306 |
+
"""Route one agent tool call. The ledger records the full answer; the agent may get a leaner one."""
|
| 307 |
+
res = self._handle_tool_call_full(raw_tool_name, args)
|
| 308 |
+
if self._strip_proof_fields and isinstance(res.get("text"), str):
|
| 309 |
+
res = dict(res, text=strip_proof_fields_text(res["text"]))
|
| 310 |
+
return res
|
| 311 |
+
|
| 312 |
+
def _handle_tool_call_full(self, raw_tool_name: str, args: dict[str, Any]) -> dict[str, Any]:
|
| 313 |
+
with self._lock:
|
| 314 |
+
tool_name = TOOL_ALIASES.get(raw_tool_name, raw_tool_name)
|
| 315 |
+
|
| 316 |
+
if tool_name in self._task_disabled_tools:
|
| 317 |
+
err_txt = json.dumps(
|
| 318 |
+
{"ok": False, "error": f"Tool {tool_name!r} is not available in this task."},
|
| 319 |
+
separators=(",", ":"),
|
| 320 |
+
)
|
| 321 |
+
self._append_ledger(
|
| 322 |
+
tool=tool_name,
|
| 323 |
+
category="disabled_task",
|
| 324 |
+
args=args,
|
| 325 |
+
raw_text=err_txt,
|
| 326 |
+
is_error=True,
|
| 327 |
+
budget_rejected=True,
|
| 328 |
+
disabled_tool=True,
|
| 329 |
+
)
|
| 330 |
+
return {"ok": True, "text": err_txt, "isError": True}
|
| 331 |
+
|
| 332 |
+
if tool_name in DISABLED_BATCH_TOOLS:
|
| 333 |
+
err_txt = json.dumps(
|
| 334 |
+
{
|
| 335 |
+
"ok": False,
|
| 336 |
+
"error": (
|
| 337 |
+
f"Batch sweep macro {tool_name!r} is disabled. "
|
| 338 |
+
f"Use targeted single-run calls (`run_trajectory`, `compute_step`, `solve`) "
|
| 339 |
+
f"within max_sim_calls={self.max_sim_calls}."
|
| 340 |
+
),
|
| 341 |
+
},
|
| 342 |
+
separators=(",", ":"),
|
| 343 |
+
)
|
| 344 |
+
self._append_ledger(
|
| 345 |
+
tool=tool_name,
|
| 346 |
+
category="disabled_batch",
|
| 347 |
+
args=args,
|
| 348 |
+
raw_text=err_txt,
|
| 349 |
+
is_error=True,
|
| 350 |
+
budget_rejected=True,
|
| 351 |
+
disabled_tool=True,
|
| 352 |
+
)
|
| 353 |
+
return {"ok": True, "text": err_txt, "isError": True}
|
| 354 |
+
|
| 355 |
+
if tool_name == "budget_status":
|
| 356 |
+
txt = json.dumps(self._budget_snapshot(), separators=(",", ":"))
|
| 357 |
+
self._append_ledger(tool=tool_name, category="exempt", args=args, raw_text=txt, is_error=False)
|
| 358 |
+
return {"ok": True, "text": txt, "isError": False}
|
| 359 |
+
|
| 360 |
+
if self.started_monotonic is None:
|
| 361 |
+
self.started_monotonic = time.monotonic()
|
| 362 |
+
|
| 363 |
+
if (time.monotonic() - self.started_monotonic) > self.wall_timeout_s:
|
| 364 |
+
return self._reject_budget(
|
| 365 |
+
tool_name, "timeout", args, f"Task wall timeout {self.wall_timeout_s}s exceeded."
|
| 366 |
+
)
|
| 367 |
+
|
| 368 |
+
# 1. Dynamic Plugin Tool Route (CLC / FLT)
|
| 369 |
+
if self._plugin is not None:
|
| 370 |
+
p_cat = self._plugin.tool_category(tool_name)
|
| 371 |
+
if p_cat is not None:
|
| 372 |
+
if p_cat == "discovery":
|
| 373 |
+
if self.discovery_used >= self.max_discovery_calls:
|
| 374 |
+
return self._reject_budget(
|
| 375 |
+
tool_name, "discovery", args, f"Discovery call budget exhausted ({self.max_discovery_calls})."
|
| 376 |
+
)
|
| 377 |
+
self.discovery_used += 1
|
| 378 |
+
elif p_cat == "sim":
|
| 379 |
+
if self.sim_used >= self.max_sim_calls:
|
| 380 |
+
return self._reject_budget(
|
| 381 |
+
tool_name, "sim", args, f"Simulation call budget exhausted ({self.max_sim_calls})."
|
| 382 |
+
)
|
| 383 |
+
self.sim_used += 1
|
| 384 |
+
|
| 385 |
+
res = self._plugin.handle_tool(tool_name, args)
|
| 386 |
+
txt = str(res.get("text", "{}"))
|
| 387 |
+
is_err = bool(res.get("isError", False))
|
| 388 |
+
step_recs_raw = res.get("step_call_records") or []
|
| 389 |
+
norm_step_recs: list[dict[str, Any]] = []
|
| 390 |
+
for sr in step_recs_raw:
|
| 391 |
+
raw_sr = str(sr.get("raw_text") or "")
|
| 392 |
+
parsed_sr = json.loads(raw_sr) if raw_sr else {}
|
| 393 |
+
sr_args = dict(sr.get("args") or {})
|
| 394 |
+
sr_tool = str(sr.get("tool") or "")
|
| 395 |
+
mid = str(sr.get("model_id") or extract_model_id_from_call(sr_tool, sr_args, parsed_sr))
|
| 396 |
+
norm_step_recs.append(
|
| 397 |
+
{
|
| 398 |
+
"call_spec": {"tool": sr_tool, "model_id": mid, "args": sr_args},
|
| 399 |
+
"answer_sha384": hashlib.sha384(raw_sr.encode("utf-8")).hexdigest() if raw_sr else "",
|
| 400 |
+
"extracted_seals": extract_seals_from_answer(parsed_sr),
|
| 401 |
+
}
|
| 402 |
+
)
|
| 403 |
+
self._append_ledger(
|
| 404 |
+
tool=tool_name,
|
| 405 |
+
category=p_cat,
|
| 406 |
+
args=args,
|
| 407 |
+
raw_text=txt,
|
| 408 |
+
is_error=is_err,
|
| 409 |
+
step_call_records=norm_step_recs,
|
| 410 |
+
plugin_event=res.get("plugin_event"),
|
| 411 |
+
)
|
| 412 |
+
return {"ok": True, "text": txt, "isError": is_err}
|
| 413 |
+
|
| 414 |
+
# 2. Standard Engine Discovery vs Simulation Route
|
| 415 |
+
if tool_name in DISCOVERY_TOOLS:
|
| 416 |
+
category = "discovery"
|
| 417 |
+
if self.discovery_used >= self.max_discovery_calls:
|
| 418 |
+
return self._reject_budget(
|
| 419 |
+
tool_name, category, args, f"Discovery call budget exhausted ({self.max_discovery_calls})."
|
| 420 |
+
)
|
| 421 |
+
self.discovery_used += 1
|
| 422 |
+
if tool_name in ("describe_card", "describe_solver"):
|
| 423 |
+
raw_text, is_err = self._serve_datasheet_discovery(tool_name, args)
|
| 424 |
+
else:
|
| 425 |
+
raw_text, is_err = self._client.call_raw(tool_name, args)
|
| 426 |
+
self._append_ledger(tool=tool_name, category=category, args=args, raw_text=raw_text, is_error=is_err)
|
| 427 |
+
return {"ok": True, "text": raw_text, "isError": is_err}
|
| 428 |
+
|
| 429 |
+
if tool_name in SIM_TOOLS:
|
| 430 |
+
category = "sim"
|
| 431 |
+
if self.sim_used >= self.max_sim_calls:
|
| 432 |
+
return self._reject_budget(
|
| 433 |
+
tool_name, category, args, f"Simulation call budget exhausted ({self.max_sim_calls})."
|
| 434 |
+
)
|
| 435 |
+
self.sim_used += 1
|
| 436 |
+
parsed, raw_text, is_err = self._client.call_json(tool_name, args)
|
| 437 |
+
mid = extract_model_id_from_call(tool_name, args, parsed)
|
| 438 |
+
extracted = extract_seals_from_answer(parsed) if not is_err else []
|
| 439 |
+
self._append_ledger(
|
| 440 |
+
tool=tool_name,
|
| 441 |
+
category=category,
|
| 442 |
+
args=args,
|
| 443 |
+
raw_text=raw_text,
|
| 444 |
+
is_error=is_err,
|
| 445 |
+
call_spec={"tool": tool_name, "model_id": mid, "args": args},
|
| 446 |
+
extracted_seals=extracted,
|
| 447 |
+
)
|
| 448 |
+
return {"ok": True, "text": raw_text, "isError": is_err}
|
| 449 |
+
|
| 450 |
+
# Fallback unknown tool
|
| 451 |
+
err_txt = json.dumps({"ok": False, "error": f"Unknown tool: {raw_tool_name!r}"}, separators=(",", ":"))
|
| 452 |
+
self._append_ledger(tool=tool_name, category="unknown", args=args, raw_text=err_txt, is_error=True)
|
| 453 |
+
return {"ok": True, "text": err_txt, "isError": True}
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
class _RpcHandler(socketserver.StreamRequestHandler):
|
| 457 |
+
daemon: MonolithDaemon
|
| 458 |
+
|
| 459 |
+
def handle(self) -> None:
|
| 460 |
+
line = self.rfile.readline()
|
| 461 |
+
if not line:
|
| 462 |
+
return
|
| 463 |
+
try:
|
| 464 |
+
req = json.loads(line.decode("utf-8"))
|
| 465 |
+
method = req.get("method", "")
|
| 466 |
+
params = req.get("params") or {}
|
| 467 |
+
if method == "tools/list":
|
| 468 |
+
resp = {"ok": True, "tools": self.daemon.list_exposed_tools()}
|
| 469 |
+
elif method == "tools/call":
|
| 470 |
+
resp = self.daemon.handle_tool_call(str(params.get("name", "")), params.get("arguments") or {})
|
| 471 |
+
elif method == "ping":
|
| 472 |
+
resp = {"ok": True, "task_id": self.daemon.task_id}
|
| 473 |
+
else:
|
| 474 |
+
resp = {"ok": False, "error": f"Unknown daemon RPC method {method!r}"}
|
| 475 |
+
except Exception as exc:
|
| 476 |
+
resp = {"ok": False, "error": f"Daemon internal exception: {exc}"}
|
| 477 |
+
self.wfile.write((json.dumps(resp, separators=(",", ":")) + "\n").encode("utf-8"))
|
| 478 |
+
self.wfile.flush()
|
| 479 |
+
|
| 480 |
+
|
| 481 |
+
class ThreadedUnixServer(socketserver.ThreadingMixIn, socketserver.UnixStreamServer):
|
| 482 |
+
daemon_threads = True
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
class ThreadedTcpServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
|
| 486 |
+
allow_reuse_address = True
|
| 487 |
+
daemon_threads = True
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def serve_daemon(
|
| 491 |
+
*,
|
| 492 |
+
task_id: str,
|
| 493 |
+
socket_endpoint: str,
|
| 494 |
+
ledger_path: str,
|
| 495 |
+
pack_name: str = "flagship_monolith_30",
|
| 496 |
+
pack_dir: str | None = None,
|
| 497 |
+
vault_dir: str | None = None,
|
| 498 |
+
engine_bin: str | None = None,
|
| 499 |
+
max_discovery_calls: int | None = None,
|
| 500 |
+
max_sim_calls: int | None = None,
|
| 501 |
+
wall_timeout_s: float = 3600.0,
|
| 502 |
+
) -> None:
|
| 503 |
+
daemon_obj = MonolithDaemon(
|
| 504 |
+
task_id=task_id,
|
| 505 |
+
pack_name=pack_name,
|
| 506 |
+
pack_dir=pack_dir,
|
| 507 |
+
vault_dir=vault_dir,
|
| 508 |
+
ledger_path=ledger_path,
|
| 509 |
+
engine_bin=engine_bin,
|
| 510 |
+
max_discovery_calls=max_discovery_calls,
|
| 511 |
+
max_sim_calls=max_sim_calls,
|
| 512 |
+
wall_timeout_s=wall_timeout_s,
|
| 513 |
+
)
|
| 514 |
+
|
| 515 |
+
class BoundHandler(_RpcHandler):
|
| 516 |
+
daemon = daemon_obj
|
| 517 |
+
|
| 518 |
+
if ":" in socket_endpoint and not socket_endpoint.startswith("/") and not socket_endpoint.startswith("."):
|
| 519 |
+
host, port_s = socket_endpoint.rsplit(":", 1)
|
| 520 |
+
server: socketserver.BaseServer = ThreadedTcpServer((host, int(port_s)), BoundHandler)
|
| 521 |
+
else:
|
| 522 |
+
os.makedirs(os.path.dirname(os.path.abspath(socket_endpoint)), exist_ok=True)
|
| 523 |
+
if os.path.exists(socket_endpoint):
|
| 524 |
+
os.unlink(socket_endpoint)
|
| 525 |
+
server = ThreadedUnixServer(socket_endpoint, BoundHandler)
|
| 526 |
+
os.chmod(socket_endpoint, 0o666)
|
| 527 |
+
|
| 528 |
+
def _stop(_sig: int, _frame: Any) -> None:
|
| 529 |
+
threading.Thread(target=server.shutdown, daemon=True).start()
|
| 530 |
+
|
| 531 |
+
signal.signal(signal.SIGTERM, _stop)
|
| 532 |
+
signal.signal(signal.SIGINT, _stop)
|
| 533 |
+
try:
|
| 534 |
+
server.serve_forever()
|
| 535 |
+
finally:
|
| 536 |
+
daemon_obj.close()
|
| 537 |
+
if not (":" in socket_endpoint and not socket_endpoint.startswith("/")):
|
| 538 |
+
try:
|
| 539 |
+
os.unlink(socket_endpoint)
|
| 540 |
+
except OSError:
|
| 541 |
+
pass
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
def main() -> int:
|
| 545 |
+
parser = argparse.ArgumentParser(description="Genesis Lab Monolith Privileged Daemon")
|
| 546 |
+
parser.add_argument("--task-id", required=True)
|
| 547 |
+
parser.add_argument("--pack", default="flagship_monolith_30")
|
| 548 |
+
parser.add_argument("--pack-dir", default=None)
|
| 549 |
+
parser.add_argument("--socket", default="/run/ztp/ztp_mcp.sock")
|
| 550 |
+
parser.add_argument("--vault-dir", default=None)
|
| 551 |
+
parser.add_argument("--ledger", default="/root/ztp_vault/call_ledger.jsonl")
|
| 552 |
+
parser.add_argument("--engine", default=None)
|
| 553 |
+
parser.add_argument("--max-discovery-calls", type=int, default=None)
|
| 554 |
+
parser.add_argument("--max-sim-calls", type=int, default=None)
|
| 555 |
+
parser.add_argument("--wall-timeout-s", type=float, default=3600.0)
|
| 556 |
+
args = parser.parse_args()
|
| 557 |
+
serve_daemon(
|
| 558 |
+
task_id=args.task_id,
|
| 559 |
+
socket_endpoint=args.socket,
|
| 560 |
+
ledger_path=args.ledger,
|
| 561 |
+
pack_name=args.pack,
|
| 562 |
+
pack_dir=args.pack_dir,
|
| 563 |
+
vault_dir=args.vault_dir,
|
| 564 |
+
engine_bin=args.engine,
|
| 565 |
+
max_discovery_calls=args.max_discovery_calls,
|
| 566 |
+
max_sim_calls=args.max_sim_calls,
|
| 567 |
+
wall_timeout_s=args.wall_timeout_s,
|
| 568 |
+
)
|
| 569 |
+
return 0
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
if __name__ == "__main__":
|
| 573 |
+
raise SystemExit(main())
|
preview/core/pack_registry.py
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Manifest-driven Pack Registry & Dynamic Task/Plugin Loader."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import importlib.util
|
| 5 |
+
import json
|
| 6 |
+
import os
|
| 7 |
+
import sys
|
| 8 |
+
from typing import Any
|
| 9 |
+
|
| 10 |
+
CORE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 11 |
+
LAB_ROOT = os.path.dirname(CORE_DIR)
|
| 12 |
+
|
| 13 |
+
PACK_ROOT_CANDIDATES = (
|
| 14 |
+
os.path.join(LAB_ROOT, "packs"),
|
| 15 |
+
"/root/ztp_packs",
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def resolve_pack_dir(pack_name: str = "flagship_monolith_30", pack_dir: str | None = None) -> str:
|
| 20 |
+
"""Locate a pack directory on host or inside an air-gapped Docker container."""
|
| 21 |
+
if pack_dir and os.path.isdir(pack_dir):
|
| 22 |
+
return os.path.abspath(pack_dir)
|
| 23 |
+
env_dir = os.environ.get("ZTP_PACK_DIR")
|
| 24 |
+
if env_dir and os.path.isdir(env_dir):
|
| 25 |
+
return os.path.abspath(env_dir)
|
| 26 |
+
for base in PACK_ROOT_CANDIDATES:
|
| 27 |
+
cand = os.path.join(base, pack_name)
|
| 28 |
+
if os.path.isdir(cand):
|
| 29 |
+
return os.path.abspath(cand)
|
| 30 |
+
raise FileNotFoundError(f"Could not locate pack {pack_name!r} in {PACK_ROOT_CANDIDATES}")
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def load_pack_manifest(pack_name: str = "flagship_monolith_30", pack_dir: str | None = None) -> tuple[str, dict[str, Any]]:
|
| 34 |
+
"""Load `pack_manifest.json` and return `(pack_dir, manifest_dict)`."""
|
| 35 |
+
pdir = resolve_pack_dir(pack_name=pack_name, pack_dir=pack_dir)
|
| 36 |
+
mpath = os.path.join(pdir, "pack_manifest.json")
|
| 37 |
+
with open(mpath, "r", encoding="utf-8") as fh:
|
| 38 |
+
manifest = json.load(fh)
|
| 39 |
+
return pdir, manifest
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
# Default runtime: the frozen 0.15.3 monument binaries in `genesis_lab/bin/<arch>/`.
|
| 43 |
+
# A pack overrides it with a `runtime` block in `pack_manifest.json`, e.g. Foundry:
|
| 44 |
+
# "runtime": {"engine": {"name": "ztp_foundry_mcp", "bin_root": "foundry_engine/bin"},
|
| 45 |
+
# "vault_bins": [{"name": "ztp_foundry_verifier", "bin_root": "foundry_engine/bin"}]}
|
| 46 |
+
# `engine` is the MCP stdio binary the root daemon serves to the agent (component tools only).
|
| 47 |
+
# `vault_bins` are root-only binaries: never on the agent's tool surface, run by plant
|
| 48 |
+
# plugins inside the daemon (stateful probes) and by evaluators inside the root verifier.
|
| 49 |
+
# `bin_root` is relative to `genesis_lab/` and holds `<arch>/<name>` for linux-arm64 and
|
| 50 |
+
# linux-amd64 (exported into containers) and optionally macos-arm64 (host runs).
|
| 51 |
+
DEFAULT_RUNTIME: dict[str, Any] = {
|
| 52 |
+
"engine": {"name": "mcp_stdio", "bin_root": "bin"},
|
| 53 |
+
"vault_bins": [{"name": "genesis_seal", "bin_root": "bin"}],
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def load_pack_runtime(pack_name: str = "flagship_monolith_30", pack_dir: str | None = None) -> dict[str, Any]:
|
| 58 |
+
"""Return the pack's runtime binaries (`engine` + `vault_bins`), defaulting to the monument set."""
|
| 59 |
+
_pdir, manifest = load_pack_manifest(pack_name=pack_name, pack_dir=pack_dir)
|
| 60 |
+
raw = dict(manifest.get("runtime") or {})
|
| 61 |
+
# Foundry-style manifests name the binaries as `<bin_root>/{arch}/<name>` paths instead.
|
| 62 |
+
for key, slot in (("engine_mcp_rel", "engine"), ("verifier_bin_rel", "vault_bins")):
|
| 63 |
+
rel = manifest.get(key)
|
| 64 |
+
if not rel:
|
| 65 |
+
continue
|
| 66 |
+
rel = str(rel)
|
| 67 |
+
if "/{arch}/" not in rel:
|
| 68 |
+
raise ValueError(f"{key}={rel!r} in pack {pack_name!r} must look like '<bin_root>/{{arch}}/<name>'")
|
| 69 |
+
root, name = rel.split("/{arch}/", 1)
|
| 70 |
+
ent = {"name": name, "bin_root": root}
|
| 71 |
+
if slot == "engine":
|
| 72 |
+
if "engine" in raw and raw["engine"] != ent:
|
| 73 |
+
raise ValueError(f"pack {pack_name!r}: runtime.engine and {key} disagree")
|
| 74 |
+
raw["engine"] = ent
|
| 75 |
+
elif ent not in (raw.get("vault_bins") or []):
|
| 76 |
+
raw["vault_bins"] = [*(raw.get("vault_bins") or []), ent]
|
| 77 |
+
engine = dict(DEFAULT_RUNTIME["engine"])
|
| 78 |
+
engine.update(raw.get("engine") or {})
|
| 79 |
+
vault_bins = [dict(v) for v in (raw.get("vault_bins") if "vault_bins" in raw else DEFAULT_RUNTIME["vault_bins"])]
|
| 80 |
+
for v in [engine, *vault_bins]:
|
| 81 |
+
name = str(v.get("name") or "")
|
| 82 |
+
if not name or "/" in name or name.startswith("."):
|
| 83 |
+
raise ValueError(f"Invalid runtime binary name {name!r} in pack {pack_name!r}")
|
| 84 |
+
v.setdefault("bin_root", "bin")
|
| 85 |
+
prefix = manifest.get("engine_version_prefix")
|
| 86 |
+
if prefix and "foundry" in str(prefix) and engine["name"] == DEFAULT_RUNTIME["engine"]["name"]:
|
| 87 |
+
raise ValueError(f"pack {pack_name!r} expects engine {prefix!r} but names no Foundry engine binary")
|
| 88 |
+
names = [engine["name"], *[v["name"] for v in vault_bins]]
|
| 89 |
+
if len(set(names)) != len(names):
|
| 90 |
+
raise ValueError(f"Duplicate runtime binary names in pack {pack_name!r}: {names}")
|
| 91 |
+
return {"engine": engine, "vault_bins": vault_bins}
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def list_active_tasks(
|
| 95 |
+
pack_name: str = "flagship_monolith_30",
|
| 96 |
+
pack_dir: str | None = None,
|
| 97 |
+
) -> list[dict[str, Any]]:
|
| 98 |
+
"""Return active task records (with resolved `task_dir` and parsed `task.json`)."""
|
| 99 |
+
pdir, manifest = load_pack_manifest(pack_name=pack_name, pack_dir=pack_dir)
|
| 100 |
+
out: list[dict[str, Any]] = []
|
| 101 |
+
for entry in manifest.get("tasks", []):
|
| 102 |
+
if entry.get("status", "active") != "active":
|
| 103 |
+
continue
|
| 104 |
+
tid = str(entry["task_id"])
|
| 105 |
+
rel = str(entry.get("rel_path") or os.path.join("tasks", tid))
|
| 106 |
+
tdir = os.path.join(pdir, rel)
|
| 107 |
+
tjson = os.path.join(tdir, "task.json")
|
| 108 |
+
if not os.path.isfile(tjson):
|
| 109 |
+
continue
|
| 110 |
+
with open(tjson, "r", encoding="utf-8") as fh:
|
| 111 |
+
tspec = json.load(fh)
|
| 112 |
+
out.append(
|
| 113 |
+
{
|
| 114 |
+
"task_id": tid,
|
| 115 |
+
"task_dir": tdir,
|
| 116 |
+
"pack_dir": pdir,
|
| 117 |
+
"manifest_entry": entry,
|
| 118 |
+
"task_spec": tspec,
|
| 119 |
+
}
|
| 120 |
+
)
|
| 121 |
+
return out
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def get_task_bundle(
|
| 125 |
+
task_id: str,
|
| 126 |
+
pack_name: str = "flagship_monolith_30",
|
| 127 |
+
pack_dir: str | None = None,
|
| 128 |
+
) -> dict[str, Any]:
|
| 129 |
+
"""Resolve a single active task by ID."""
|
| 130 |
+
for item in list_active_tasks(pack_name=pack_name, pack_dir=pack_dir):
|
| 131 |
+
if item["task_id"] == task_id:
|
| 132 |
+
return item
|
| 133 |
+
raise KeyError(f"Task {task_id!r} not found or not active in pack {pack_name!r}")
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def _import_module_from_path(module_name: str, file_path: str) -> Any:
|
| 137 |
+
if LAB_ROOT not in sys.path:
|
| 138 |
+
sys.path.insert(0, LAB_ROOT)
|
| 139 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 140 |
+
if spec is None or spec.loader is None:
|
| 141 |
+
raise ImportError(f"Could not load module {module_name} from {file_path}")
|
| 142 |
+
mod = importlib.util.module_from_spec(spec)
|
| 143 |
+
sys.modules[module_name] = mod
|
| 144 |
+
spec.loader.exec_module(mod)
|
| 145 |
+
return mod
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
_ACTIVATED_TASK_DIRS: list[str] = []
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
def _activate_task_dir(task_dir: str) -> None:
|
| 152 |
+
"""Let a task's files import each other by bare name (`from plant import ...`).
|
| 153 |
+
|
| 154 |
+
Puts `task_dir` first on `sys.path`, and drops any other task's directory together
|
| 155 |
+
with the bare-name modules loaded from it, so a second task loaded in the same
|
| 156 |
+
process never gets the first task's `plant`.
|
| 157 |
+
"""
|
| 158 |
+
tdir = os.path.abspath(task_dir)
|
| 159 |
+
for old in _ACTIVATED_TASK_DIRS:
|
| 160 |
+
if old == tdir:
|
| 161 |
+
continue
|
| 162 |
+
while old in sys.path:
|
| 163 |
+
sys.path.remove(old)
|
| 164 |
+
for name, mod in list(sys.modules.items()):
|
| 165 |
+
mfile = getattr(mod, "__file__", None)
|
| 166 |
+
if mfile and "." not in name and not name.startswith("ztp_task_") and os.path.dirname(os.path.abspath(mfile)) == old:
|
| 167 |
+
del sys.modules[name]
|
| 168 |
+
if tdir not in _ACTIVATED_TASK_DIRS:
|
| 169 |
+
_ACTIVATED_TASK_DIRS.append(tdir)
|
| 170 |
+
while tdir in sys.path:
|
| 171 |
+
sys.path.remove(tdir)
|
| 172 |
+
sys.path.insert(0, tdir)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def load_task_evaluator(task_id: str, task_dir: str) -> Any:
|
| 176 |
+
"""Load `<task_dir>/evaluator.py` dynamically."""
|
| 177 |
+
ev_path = os.path.join(task_dir, "evaluator.py")
|
| 178 |
+
if not os.path.isfile(ev_path):
|
| 179 |
+
raise FileNotFoundError(f"Missing evaluator.py for {task_id} at {ev_path}")
|
| 180 |
+
_activate_task_dir(task_dir)
|
| 181 |
+
return _import_module_from_path(f"ztp_task_eval_{task_id.replace('-', '_')}", ev_path)
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
def load_task_plant_plugin(
|
| 185 |
+
task_id: str,
|
| 186 |
+
task_dir: str,
|
| 187 |
+
task_spec: dict[str, Any],
|
| 188 |
+
engine_client: Any,
|
| 189 |
+
vault: dict[str, Any] | None = None,
|
| 190 |
+
) -> Any | None:
|
| 191 |
+
"""Instantiate `<task_dir>/plant.py:create_plugin(...)` if `plant.py` exists."""
|
| 192 |
+
plant_path = os.path.join(task_dir, "plant.py")
|
| 193 |
+
if not os.path.isfile(plant_path):
|
| 194 |
+
return None
|
| 195 |
+
_activate_task_dir(task_dir)
|
| 196 |
+
mod = _import_module_from_path(f"ztp_task_plant_{task_id.replace('-', '_')}", plant_path)
|
| 197 |
+
if hasattr(mod, "create_plugin"):
|
| 198 |
+
return mod.create_plugin(task_spec=task_spec, engine_client=engine_client, vault=vault or {})
|
| 199 |
+
if hasattr(mod, "PlantPlugin"):
|
| 200 |
+
return mod.PlantPlugin(task_spec=task_spec, engine_client=engine_client, vault=vault or {})
|
| 201 |
+
raise AttributeError(f"{plant_path} defines neither create_plugin nor PlantPlugin")
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
def load_task_vault(task_id: str, vault_dir: str | None = None, pack_dir: str | None = None) -> dict[str, Any]:
|
| 205 |
+
"""Load root-only vault JSON for `task_id` if one exists (optional)."""
|
| 206 |
+
candidates: list[str] = []
|
| 207 |
+
if vault_dir:
|
| 208 |
+
candidates.append(os.path.join(vault_dir, f"{task_id}.json"))
|
| 209 |
+
env_v = os.environ.get("ZTP_VAULT_DIR")
|
| 210 |
+
if env_v:
|
| 211 |
+
candidates.append(os.path.join(env_v, f"{task_id}.json"))
|
| 212 |
+
candidates.append(f"/root/ztp_vault/{task_id}.json")
|
| 213 |
+
if pack_dir:
|
| 214 |
+
candidates.append(os.path.join(pack_dir, ".vault", f"{task_id}.json"))
|
| 215 |
+
for p in candidates:
|
| 216 |
+
if os.path.isfile(p):
|
| 217 |
+
with open(p, "r", encoding="utf-8") as fh:
|
| 218 |
+
return json.load(fh)
|
| 219 |
+
return {}
|
preview/core/plugin_base.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Base abstractions for stateful closed-loop/fault plugins and task evaluators."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
from abc import ABC, abstractmethod
|
| 5 |
+
from dataclasses import dataclass, field
|
| 6 |
+
from typing import Any
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
@dataclass
|
| 10 |
+
class VerifiedCall:
|
| 11 |
+
"""One SHA-384 verified and fresh-recomputed engine call recovered from `call_ledger.jsonl`."""
|
| 12 |
+
|
| 13 |
+
submitted_seal: str
|
| 14 |
+
model_id: str
|
| 15 |
+
tool: str
|
| 16 |
+
args: dict[str, Any]
|
| 17 |
+
answer: dict[str, Any]
|
| 18 |
+
raw_text: str
|
| 19 |
+
answer_sha384: str
|
| 20 |
+
receipt_sha384: str
|
| 21 |
+
primary_seal: str
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
@dataclass
|
| 25 |
+
class TaskEvaluatorContext:
|
| 26 |
+
"""Runtime context handed to each per-task `evaluator.py:grade(submission, ctx)`."""
|
| 27 |
+
|
| 28 |
+
task_id: str
|
| 29 |
+
task_dir: str
|
| 30 |
+
task_spec: dict[str, Any]
|
| 31 |
+
pack_dir: str
|
| 32 |
+
client: Any
|
| 33 |
+
seal_bin: str | None = None
|
| 34 |
+
vault: dict[str, Any] = field(default_factory=dict)
|
| 35 |
+
ledger_records: list[dict[str, Any]] = field(default_factory=list)
|
| 36 |
+
ledger_audit: dict[str, Any] | None = None
|
| 37 |
+
resolved_seals: list[VerifiedCall] = field(default_factory=list)
|
| 38 |
+
verified_by_model: dict[str, list[VerifiedCall]] = field(default_factory=dict)
|
| 39 |
+
plugin_episodes: list[dict[str, Any]] = field(default_factory=list)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class StatefulPlantPlugin(ABC):
|
| 43 |
+
"""Base class for stateful `CLC` / `FLT` plugins executed inside root `core/daemon.py`."""
|
| 44 |
+
|
| 45 |
+
def __init__(self, task_spec: dict[str, Any], engine_client: Any, vault: dict[str, Any] | None = None):
|
| 46 |
+
self.task_spec = task_spec
|
| 47 |
+
self.client = engine_client
|
| 48 |
+
self.vault = vault or {}
|
| 49 |
+
|
| 50 |
+
@abstractmethod
|
| 51 |
+
def tool_definitions(self) -> list[dict[str, Any]]:
|
| 52 |
+
"""Return MCP JSON tool schemas exposed to the unprivileged agent."""
|
| 53 |
+
|
| 54 |
+
@abstractmethod
|
| 55 |
+
def tool_category(self, tool_name: str) -> str | None:
|
| 56 |
+
"""Return `'discovery'`, `'sim'`, `'exempt'`, or `None` if not handled by this plugin."""
|
| 57 |
+
|
| 58 |
+
@abstractmethod
|
| 59 |
+
def handle_tool(self, tool_name: str, args: dict[str, Any]) -> dict[str, Any]:
|
| 60 |
+
"""Execute a plugin tool call.
|
| 61 |
+
|
| 62 |
+
Returns a dict:
|
| 63 |
+
- `text`: JSON string returned to the agent
|
| 64 |
+
- `isError`: bool
|
| 65 |
+
- `step_call_records`: optional list of `{"tool": ..., "model_id": ..., "args": ..., "raw_text": ...}`
|
| 66 |
+
for daemon ledger recording & post-run cryptographic recomputation.
|
| 67 |
+
- `episode_record`: optional snapshot stored on finalize or step.
|
| 68 |
+
"""
|
| 69 |
+
|
| 70 |
+
def budget_extras(self) -> dict[str, Any]:
|
| 71 |
+
"""Optional status counters injected into `budget_status`."""
|
| 72 |
+
return {}
|
| 73 |
+
|
| 74 |
+
def close(self) -> None:
|
| 75 |
+
"""Optional cleanup hook called when daemon shuts down."""
|
| 76 |
+
return None
|
preview/core/schema_contract.py
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Flat submission contracts, failure reason enums, and report builders."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import math
|
| 5 |
+
from typing import Any
|
| 6 |
+
|
| 7 |
+
from core.ztp_client import is_valid_sha384_hex
|
| 8 |
+
|
| 9 |
+
FAILURE_REASONS = (
|
| 10 |
+
"none",
|
| 11 |
+
"physics_violation",
|
| 12 |
+
"seal_invalid",
|
| 13 |
+
"budget_exhausted",
|
| 14 |
+
"schema_error",
|
| 15 |
+
"harness_error",
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
MAX_SUBMISSION_TOP_KEYS = 6
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def is_finite_number(val: Any) -> bool:
|
| 22 |
+
"""True iff `val` is a finite int/float (excluding bool)."""
|
| 23 |
+
if isinstance(val, bool) or not isinstance(val, (int, float)):
|
| 24 |
+
return False
|
| 25 |
+
return math.isfinite(float(val))
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def extract_seal_tokens(raw_seals: Any) -> tuple[bool, list[str], str | None]:
|
| 29 |
+
"""Parse `submission['seals']` accepting either a list[str] or dict[str, str].
|
| 30 |
+
|
| 31 |
+
Returns `(container_valid, ordered_unique_tokens, schema_error_or_None)`.
|
| 32 |
+
Individual token format/provenance checks happen downstream so malformed hex
|
| 33 |
+
strings classify cleanly as `seal_invalid`, not `schema_error`.
|
| 34 |
+
"""
|
| 35 |
+
if isinstance(raw_seals, list):
|
| 36 |
+
if not raw_seals:
|
| 37 |
+
return False, [], "Field 'seals' must be a non-empty list or object of 96-hex SHA-384 hashes."
|
| 38 |
+
tokens: list[str] = []
|
| 39 |
+
for idx, item in enumerate(raw_seals):
|
| 40 |
+
if not isinstance(item, str):
|
| 41 |
+
return False, [], f"Field 'seals[{idx}]' must be a SHA-384 hex string, got {type(item).__name__}."
|
| 42 |
+
tok = item.strip().lower()
|
| 43 |
+
if tok not in tokens:
|
| 44 |
+
tokens.append(tok)
|
| 45 |
+
return True, tokens, None
|
| 46 |
+
|
| 47 |
+
if isinstance(raw_seals, dict):
|
| 48 |
+
if not raw_seals:
|
| 49 |
+
return False, [], "Field 'seals' object must contain at least one 96-hex SHA-384 hash."
|
| 50 |
+
tokens = []
|
| 51 |
+
for key, item in raw_seals.items():
|
| 52 |
+
if not isinstance(item, str):
|
| 53 |
+
return False, [], f"Field 'seals[{key!r}]' must be a SHA-384 hex string, got {type(item).__name__}."
|
| 54 |
+
tok = item.strip().lower()
|
| 55 |
+
if tok not in tokens:
|
| 56 |
+
tokens.append(tok)
|
| 57 |
+
return True, tokens, None
|
| 58 |
+
|
| 59 |
+
return False, [], "Field 'seals' must be a list of SHA-384 hex strings or a label->hash object."
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def validate_syn_submission(
|
| 63 |
+
sub: Any,
|
| 64 |
+
task_id: str,
|
| 65 |
+
required_design_vars: tuple[str, ...] | list[str],
|
| 66 |
+
) -> tuple[bool, list[str], list[str]]:
|
| 67 |
+
"""Validate flat <=6-key SYN submission contract (`task_id`, `design_variables`, `seals`).
|
| 68 |
+
|
| 69 |
+
Returns `(schema_ok, errors, parsed_seal_tokens)`.
|
| 70 |
+
"""
|
| 71 |
+
if not isinstance(sub, dict):
|
| 72 |
+
return False, ["Submission root must be a JSON object."], []
|
| 73 |
+
if len(sub) > MAX_SUBMISSION_TOP_KEYS:
|
| 74 |
+
return (
|
| 75 |
+
False,
|
| 76 |
+
[f"Submission has {len(sub)} top-level keys; maximum allowed is {MAX_SUBMISSION_TOP_KEYS}."],
|
| 77 |
+
[],
|
| 78 |
+
)
|
| 79 |
+
errors: list[str] = []
|
| 80 |
+
if sub.get("task_id") != task_id:
|
| 81 |
+
errors.append(f"Expected task_id={task_id!r}, got {sub.get('task_id')!r}.")
|
| 82 |
+
|
| 83 |
+
dv = sub.get("design_variables")
|
| 84 |
+
if not isinstance(dv, dict):
|
| 85 |
+
errors.append("Field 'design_variables' must be a JSON object of numeric parameters.")
|
| 86 |
+
else:
|
| 87 |
+
for k in required_design_vars:
|
| 88 |
+
if k not in dv:
|
| 89 |
+
errors.append(f"Missing required design variable 'design_variables.{k}'.")
|
| 90 |
+
elif not is_finite_number(dv[k]):
|
| 91 |
+
errors.append(f"Design variable 'design_variables.{k}' must be a finite number, got {dv[k]!r}.")
|
| 92 |
+
|
| 93 |
+
ok_seals, seal_tokens, seal_err = extract_seal_tokens(sub.get("seals"))
|
| 94 |
+
if not ok_seals and seal_err:
|
| 95 |
+
errors.append(seal_err)
|
| 96 |
+
|
| 97 |
+
return len(errors) == 0, errors, seal_tokens
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def validate_clc_submission(
|
| 101 |
+
sub: Any,
|
| 102 |
+
task_id: str,
|
| 103 |
+
) -> tuple[bool, list[str], list[str]]:
|
| 104 |
+
"""Validate flat <=6-key CLC submission (`task_id`, `steps` and/or `seals`)."""
|
| 105 |
+
if not isinstance(sub, dict):
|
| 106 |
+
return False, ["Submission root must be a JSON object."], []
|
| 107 |
+
if len(sub) > MAX_SUBMISSION_TOP_KEYS:
|
| 108 |
+
return (
|
| 109 |
+
False,
|
| 110 |
+
[f"Submission has {len(sub)} top-level keys; maximum allowed is {MAX_SUBMISSION_TOP_KEYS}."],
|
| 111 |
+
[],
|
| 112 |
+
)
|
| 113 |
+
errors: list[str] = []
|
| 114 |
+
if sub.get("task_id") != task_id:
|
| 115 |
+
errors.append(f"Expected task_id={task_id!r}, got {sub.get('task_id')!r}.")
|
| 116 |
+
|
| 117 |
+
seal_tokens: list[str] = []
|
| 118 |
+
has_seals = "seals" in sub and sub["seals"] is not None
|
| 119 |
+
if has_seals:
|
| 120 |
+
ok_seals, s_toks, seal_err = extract_seal_tokens(sub["seals"])
|
| 121 |
+
if not ok_seals and seal_err:
|
| 122 |
+
errors.append(seal_err)
|
| 123 |
+
else:
|
| 124 |
+
seal_tokens.extend(s_toks)
|
| 125 |
+
|
| 126 |
+
steps = sub.get("steps")
|
| 127 |
+
if steps is not None:
|
| 128 |
+
if not isinstance(steps, list) or not steps:
|
| 129 |
+
errors.append("Field 'steps' (when provided) must be a non-empty list.")
|
| 130 |
+
else:
|
| 131 |
+
for idx, st in enumerate(steps):
|
| 132 |
+
if not isinstance(st, dict):
|
| 133 |
+
errors.append(f"steps[{idx}] must be a JSON object.")
|
| 134 |
+
continue
|
| 135 |
+
for sk in ("seal", "chain_seal", "run_seal", "receipt_sha384"):
|
| 136 |
+
v = st.get(sk)
|
| 137 |
+
if isinstance(v, str) and v.strip():
|
| 138 |
+
tok = v.strip().lower()
|
| 139 |
+
if tok not in seal_tokens:
|
| 140 |
+
seal_tokens.append(tok)
|
| 141 |
+
|
| 142 |
+
if not has_seals and not seal_tokens:
|
| 143 |
+
errors.append("Must provide 'seals' (list or dict of SHA-384 seals) or sealed 'steps'.")
|
| 144 |
+
|
| 145 |
+
return len(errors) == 0, errors, seal_tokens
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def validate_vnv_submission(
|
| 149 |
+
sub: Any,
|
| 150 |
+
task_id: str,
|
| 151 |
+
required_design_vars: tuple[str, ...] | list[str],
|
| 152 |
+
required_certified_bounds: tuple[str, ...] | list[str],
|
| 153 |
+
) -> tuple[bool, list[str], list[str]]:
|
| 154 |
+
"""Validate flat <=6-key VNV submission (`task_id`, `design_variables`, `certified_bounds`, `seals`)."""
|
| 155 |
+
if not isinstance(sub, dict):
|
| 156 |
+
return False, ["Submission root must be a JSON object."], []
|
| 157 |
+
if len(sub) > MAX_SUBMISSION_TOP_KEYS:
|
| 158 |
+
return (
|
| 159 |
+
False,
|
| 160 |
+
[f"Submission has {len(sub)} top-level keys; maximum allowed is {MAX_SUBMISSION_TOP_KEYS}."],
|
| 161 |
+
[],
|
| 162 |
+
)
|
| 163 |
+
errors: list[str] = []
|
| 164 |
+
if sub.get("task_id") != task_id:
|
| 165 |
+
errors.append(f"Expected task_id={task_id!r}, got {sub.get('task_id')!r}.")
|
| 166 |
+
|
| 167 |
+
dv = sub.get("design_variables")
|
| 168 |
+
if not isinstance(dv, dict):
|
| 169 |
+
errors.append("Field 'design_variables' must be a JSON object of numeric parameters.")
|
| 170 |
+
else:
|
| 171 |
+
for k in required_design_vars:
|
| 172 |
+
if k not in dv:
|
| 173 |
+
errors.append(f"Missing required design variable 'design_variables.{k}'.")
|
| 174 |
+
elif not is_finite_number(dv[k]):
|
| 175 |
+
errors.append(f"Design variable 'design_variables.{k}' must be a finite number, got {dv[k]!r}.")
|
| 176 |
+
|
| 177 |
+
cb = sub.get("certified_bounds")
|
| 178 |
+
if not isinstance(cb, dict):
|
| 179 |
+
errors.append("Field 'certified_bounds' must be a JSON object of conservative V&V limits.")
|
| 180 |
+
else:
|
| 181 |
+
for k in required_certified_bounds:
|
| 182 |
+
if k not in cb:
|
| 183 |
+
errors.append(f"Missing required bound 'certified_bounds.{k}'.")
|
| 184 |
+
elif not is_finite_number(cb[k]):
|
| 185 |
+
errors.append(f"Certified bound 'certified_bounds.{k}' must be a finite number, got {cb[k]!r}.")
|
| 186 |
+
|
| 187 |
+
ok_seals, seal_tokens, seal_err = extract_seal_tokens(sub.get("seals"))
|
| 188 |
+
if not ok_seals and seal_err:
|
| 189 |
+
errors.append(seal_err)
|
| 190 |
+
|
| 191 |
+
return len(errors) == 0, errors, seal_tokens
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def validate_flt_submission(
|
| 195 |
+
sub: Any,
|
| 196 |
+
task_id: str,
|
| 197 |
+
required_fault_keys: tuple[str, ...] | list[str],
|
| 198 |
+
required_remediation_vars: tuple[str, ...] | list[str],
|
| 199 |
+
) -> tuple[bool, list[str], list[str]]:
|
| 200 |
+
"""Validate flat <=6-key FLT submission (`task_id`, `trusted_packet_ids`, `fault_diagnosis`, `remediation_variables`, `seals`)."""
|
| 201 |
+
if not isinstance(sub, dict):
|
| 202 |
+
return False, ["Submission root must be a JSON object."], []
|
| 203 |
+
if len(sub) > MAX_SUBMISSION_TOP_KEYS:
|
| 204 |
+
return (
|
| 205 |
+
False,
|
| 206 |
+
[f"Submission has {len(sub)} top-level keys; maximum allowed is {MAX_SUBMISSION_TOP_KEYS}."],
|
| 207 |
+
[],
|
| 208 |
+
)
|
| 209 |
+
errors: list[str] = []
|
| 210 |
+
if sub.get("task_id") != task_id:
|
| 211 |
+
errors.append(f"Expected task_id={task_id!r}, got {sub.get('task_id')!r}.")
|
| 212 |
+
|
| 213 |
+
tp = sub.get("trusted_packet_ids")
|
| 214 |
+
if not isinstance(tp, list) or not tp or not all(isinstance(x, str) and x.strip() for x in tp):
|
| 215 |
+
errors.append("Field 'trusted_packet_ids' must be a non-empty list of packet ID strings.")
|
| 216 |
+
|
| 217 |
+
fd = sub.get("fault_diagnosis")
|
| 218 |
+
if not isinstance(fd, dict):
|
| 219 |
+
errors.append("Field 'fault_diagnosis' must be a JSON object of identified plant fault scalars.")
|
| 220 |
+
else:
|
| 221 |
+
for k in required_fault_keys:
|
| 222 |
+
if k not in fd:
|
| 223 |
+
errors.append(f"Missing required fault scalar 'fault_diagnosis.{k}'.")
|
| 224 |
+
elif not is_finite_number(fd[k]):
|
| 225 |
+
errors.append(f"Fault scalar 'fault_diagnosis.{k}' must be a finite number, got {fd[k]!r}.")
|
| 226 |
+
|
| 227 |
+
rv = sub.get("remediation_variables")
|
| 228 |
+
if not isinstance(rv, dict):
|
| 229 |
+
errors.append("Field 'remediation_variables' must be a JSON object of numeric remediation setpoints.")
|
| 230 |
+
else:
|
| 231 |
+
for k in required_remediation_vars:
|
| 232 |
+
if k not in rv:
|
| 233 |
+
errors.append(f"Missing required remediation setpoint 'remediation_variables.{k}'.")
|
| 234 |
+
elif not is_finite_number(rv[k]):
|
| 235 |
+
errors.append(f"Remediation variable 'remediation_variables.{k}' must be a finite number, got {rv[k]!r}.")
|
| 236 |
+
|
| 237 |
+
ok_seals, seal_tokens, seal_err = extract_seal_tokens(sub.get("seals"))
|
| 238 |
+
if not ok_seals and seal_err:
|
| 239 |
+
errors.append(seal_err)
|
| 240 |
+
|
| 241 |
+
return len(errors) == 0, errors, seal_tokens
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
def all_tokens_well_formed_hex(tokens: list[str]) -> tuple[bool, str | None]:
|
| 245 |
+
"""Return `(True, None)` if all tokens are 96 lowercase hex chars, else `(False, bad_token)`."""
|
| 246 |
+
for tok in tokens:
|
| 247 |
+
if not is_valid_sha384_hex(tok):
|
| 248 |
+
return False, tok
|
| 249 |
+
return True, None
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def make_grade_report(
|
| 253 |
+
*,
|
| 254 |
+
task_id: str,
|
| 255 |
+
binary_reward: int,
|
| 256 |
+
shaped_score: float,
|
| 257 |
+
seals_verified: bool,
|
| 258 |
+
failure_reason: str,
|
| 259 |
+
autopsy: str,
|
| 260 |
+
stage_breakdown: dict[str, Any],
|
| 261 |
+
ledger_audit: dict[str, Any] | None,
|
| 262 |
+
verification_ms: float,
|
| 263 |
+
) -> dict[str, Any]:
|
| 264 |
+
"""Build canonical grader report JSON with invariant enforcement."""
|
| 265 |
+
if failure_reason not in FAILURE_REASONS:
|
| 266 |
+
raise ValueError(f"Invalid failure_reason {failure_reason!r}")
|
| 267 |
+
reward = 1 if int(binary_reward) == 1 else 0
|
| 268 |
+
clamped = round(max(0.0, min(1.0, float(shaped_score))), 6)
|
| 269 |
+
if reward == 1:
|
| 270 |
+
assert seals_verified is True, "Passed evaluation requires seals_verified=True"
|
| 271 |
+
assert failure_reason == "none", "Passed evaluation requires failure_reason='none'"
|
| 272 |
+
clamped = 1.0
|
| 273 |
+
else:
|
| 274 |
+
assert failure_reason != "none", "Failed evaluation requires explicit non-'none' failure_reason"
|
| 275 |
+
return {
|
| 276 |
+
"task_id": task_id,
|
| 277 |
+
"binary_reward": reward,
|
| 278 |
+
"passed": reward == 1,
|
| 279 |
+
"shaped_score": clamped,
|
| 280 |
+
"seals_verified": bool(seals_verified),
|
| 281 |
+
"failure_reason": failure_reason,
|
| 282 |
+
"autopsy": autopsy,
|
| 283 |
+
"stage_breakdown": stage_breakdown,
|
| 284 |
+
"ledger_audit": ledger_audit,
|
| 285 |
+
"verification_ms": round(float(verification_ms), 2),
|
| 286 |
+
}
|
preview/core/vault_bins.py
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Root-only runtime binaries: resolution and execution (`/root/ztp_bin/<name>` in containers).
|
| 2 |
+
|
| 3 |
+
A pack names its binaries in `pack_manifest.json` (`core.pack_registry.load_pack_runtime`):
|
| 4 |
+
the agent-facing MCP `engine` and the root-only `vault_bins`. Inside the exported vault
|
| 5 |
+
images every binary sits at `/root/ztp_bin/<name>` (`0700`, root). On the host they
|
| 6 |
+
resolve to `genesis_lab/<bin_root>/<arch>/<name>`.
|
| 7 |
+
|
| 8 |
+
`run_vault_bin` is what a plant plugin (inside the root daemon) or an evaluator (inside
|
| 9 |
+
the root verifier) calls, for example Foundry's `ztp_foundry_verifier probe|grade`.
|
| 10 |
+
The payload goes through a `0600` file in a `0700` temp dir, the binary gets no shell
|
| 11 |
+
and a minimal environment, and the result carries SHA-384 digests of payload and output
|
| 12 |
+
so a plugin can write them to the call ledger and the verifier can recompute them.
|
| 13 |
+
"""
|
| 14 |
+
from __future__ import annotations
|
| 15 |
+
|
| 16 |
+
import hashlib
|
| 17 |
+
import json
|
| 18 |
+
import os
|
| 19 |
+
import stat
|
| 20 |
+
import subprocess
|
| 21 |
+
import tempfile
|
| 22 |
+
from typing import Any
|
| 23 |
+
|
| 24 |
+
from core.pack_registry import LAB_ROOT, load_pack_runtime
|
| 25 |
+
from core.ztp_client import _host_arch_subdir
|
| 26 |
+
|
| 27 |
+
CONTAINER_BIN_DIR = "/root/ztp_bin"
|
| 28 |
+
CONTAINER_MULTIARCH_JSON = "/root/ztp_bin/multiarch_verification.json"
|
| 29 |
+
HOST_MULTIARCH_JSON = os.path.join(LAB_ROOT, "bin", "multiarch_verification.json")
|
| 30 |
+
|
| 31 |
+
# Pinned fallback digests from `foundry_engine/multiarch_verification.json` (`genesis_foundry_v0.1.0`)
|
| 32 |
+
# so isolated scratch copies (e.g. Gate G3) still enforce bit-exact SHA-384 verification.
|
| 33 |
+
PINNED_FOUNDRY_SHA384: dict[str, str] = {
|
| 34 |
+
"linux-amd64/ztp_foundry_mcp": "895646ff0702cb92e31e1ef10e2b63f06863a532bb7e56eb7e052b0e9f617dc4db690a3b91515eb1039a6693a6c61679",
|
| 35 |
+
"linux-amd64/ztp_foundry_preview_verifier": "9c60840974d20f5028f680cf3787c78bb929e8bb18cacaffa2866da636535c4c8b2c183ff239ccae7ebbb26129970d2f",
|
| 36 |
+
"linux-arm64/ztp_foundry_mcp": "688e8def0dea00a053b97b49f9ce4417c181bba96b797e80e59647cc4f33eb409d390ed1655deeeaf02d29d0306a7e79",
|
| 37 |
+
"linux-arm64/ztp_foundry_preview_verifier": "c1bdc46bef8d8ca65ab18f4ceb8489ec0fb6f0918a2c92738b624c50cdfb56308c195f04b2db23f172c0fe56573c4640",
|
| 38 |
+
"macos-arm64/ztp_foundry_mcp": "5ce27e625310c46cfbef964e3f82c7d0520f17ed2d86dc6b52fac3159972d3735757a4e1e80b319ed6186d4e3b2b3734",
|
| 39 |
+
"macos-arm64/ztp_foundry_preview_verifier": "645b9bcedab4c992b7b30df9def17a426ba8c8639c44a0198f560282f908c6965c9dc3d6baa022effac45020a0d3d496",
|
| 40 |
+
}
|
| 41 |
+
FOUNDRY_VERIFIED_BIN_NAMES = {"ztp_foundry_mcp", "ztp_foundry_verifier", "ztp_foundry_preview_verifier"}
|
| 42 |
+
_VERIFIED_BIN_CACHE: dict[tuple[str, int, int, int, int], str] = {}
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class VaultBinError(RuntimeError):
|
| 46 |
+
"""Raised when a vault binary is missing, fails SHA-384 verification, exits non-zero, or prints non-JSON."""
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def _load_expected_foundry_sha384() -> dict[str, str]:
|
| 50 |
+
"""Load `<arch>/<binary> -> sha384` from `multiarch_verification.json` (container or host)."""
|
| 51 |
+
candidates: list[str] = []
|
| 52 |
+
env_manifest = os.environ.get("ZTP_MULTIARCH_MANIFEST")
|
| 53 |
+
if env_manifest:
|
| 54 |
+
candidates.append(env_manifest)
|
| 55 |
+
candidates.extend([CONTAINER_MULTIARCH_JSON, HOST_MULTIARCH_JSON])
|
| 56 |
+
for mpath in candidates:
|
| 57 |
+
if os.path.isfile(mpath) and not os.path.islink(mpath):
|
| 58 |
+
with open(mpath, "r", encoding="utf-8") as fh:
|
| 59 |
+
doc = json.load(fh)
|
| 60 |
+
table = doc.get("binary_sha384")
|
| 61 |
+
if isinstance(table, dict) and table:
|
| 62 |
+
return {str(k): str(v) for k, v in table.items()}
|
| 63 |
+
return dict(PINNED_FOUNDRY_SHA384)
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def verify_runtime_binary_sha384(path: str, name: str | None = None) -> str:
|
| 67 |
+
"""Verify runtime SHA-384 digest of Foundry binaries against `multiarch_verification.json` before execution."""
|
| 68 |
+
bname = name or os.path.basename(path)
|
| 69 |
+
if bname not in FOUNDRY_VERIFIED_BIN_NAMES:
|
| 70 |
+
return ""
|
| 71 |
+
arch = _host_arch_subdir()
|
| 72 |
+
if not arch:
|
| 73 |
+
raise VaultBinError(f"Unsupported host architecture for SHA-384 verification of {bname!r}")
|
| 74 |
+
key = f"{arch}/{bname}"
|
| 75 |
+
expected_map = _load_expected_foundry_sha384()
|
| 76 |
+
expected = expected_map.get(key, "")
|
| 77 |
+
if len(expected) != 96 or any(ch not in "0123456789abcdef" for ch in expected):
|
| 78 |
+
raise VaultBinError(f"Missing or malformed expected SHA-384 digest for {key!r} in multiarch_verification.json")
|
| 79 |
+
|
| 80 |
+
flags = os.O_RDONLY | getattr(os, "O_NOFOLLOW", 0)
|
| 81 |
+
try:
|
| 82 |
+
fd = os.open(path, flags)
|
| 83 |
+
except OSError as exc:
|
| 84 |
+
raise VaultBinError(f"Cannot open runtime binary {path!r} safely: {exc}") from exc
|
| 85 |
+
try:
|
| 86 |
+
st = os.fstat(fd)
|
| 87 |
+
if not stat.S_ISREG(st.st_mode):
|
| 88 |
+
raise VaultBinError(f"Runtime binary {path!r} is not a regular file")
|
| 89 |
+
cache_key = (os.path.abspath(path), int(st.st_dev), int(st.st_ino), int(st.st_mtime_ns), int(st.st_size))
|
| 90 |
+
cached = _VERIFIED_BIN_CACHE.get(cache_key)
|
| 91 |
+
if cached == expected:
|
| 92 |
+
return cached
|
| 93 |
+
h = hashlib.sha384()
|
| 94 |
+
while True:
|
| 95 |
+
chunk = os.read(fd, 1 << 20)
|
| 96 |
+
if not chunk:
|
| 97 |
+
break
|
| 98 |
+
h.update(chunk)
|
| 99 |
+
actual = h.hexdigest()
|
| 100 |
+
finally:
|
| 101 |
+
os.close(fd)
|
| 102 |
+
|
| 103 |
+
if actual != expected:
|
| 104 |
+
raise VaultBinError(
|
| 105 |
+
f"Runtime binary SHA-384 mismatch for {key} at {path!r}: expected {expected[:24]}..., got {actual[:24]}..."
|
| 106 |
+
)
|
| 107 |
+
_VERIFIED_BIN_CACHE[cache_key] = actual
|
| 108 |
+
return actual
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def _candidate_paths(name: str, bin_root: str | None) -> list[str]:
|
| 112 |
+
out: list[str] = []
|
| 113 |
+
if name == "ztp_foundry_verifier":
|
| 114 |
+
env_v = os.environ.get("ZTP_FOUNDRY_VERIFIER")
|
| 115 |
+
if env_v:
|
| 116 |
+
out.append(env_v)
|
| 117 |
+
env_dir = os.environ.get("ZTP_BIN_DIR")
|
| 118 |
+
if env_dir:
|
| 119 |
+
out.append(os.path.join(env_dir, name))
|
| 120 |
+
out.append(os.path.join(CONTAINER_BIN_DIR, name))
|
| 121 |
+
arch = _host_arch_subdir()
|
| 122 |
+
for root in [r for r in (bin_root, "bin") if r]:
|
| 123 |
+
if arch:
|
| 124 |
+
out.append(os.path.join(LAB_ROOT, root, arch, name))
|
| 125 |
+
return out
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def runtime_entry(name: str, *, pack_name: str | None = None, pack_dir: str | None = None) -> dict[str, Any] | None:
|
| 129 |
+
"""Return the runtime entry (`engine` or one of `vault_bins`) called `name` for a pack."""
|
| 130 |
+
if pack_name is None and pack_dir is None:
|
| 131 |
+
return None
|
| 132 |
+
rt = load_pack_runtime(pack_name=pack_name or "flagship_monolith_30", pack_dir=pack_dir)
|
| 133 |
+
for ent in [rt["engine"], *rt["vault_bins"]]:
|
| 134 |
+
if ent["name"] == name:
|
| 135 |
+
return ent
|
| 136 |
+
return None
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def resolve_vault_bin(name: str, *, pack_name: str | None = None, pack_dir: str | None = None, bin_root: str | None = None) -> str:
|
| 140 |
+
"""Resolve an executable runtime binary by name and verify its SHA-384 digest before use."""
|
| 141 |
+
if bin_root is None:
|
| 142 |
+
ent = runtime_entry(name, pack_name=pack_name, pack_dir=pack_dir)
|
| 143 |
+
bin_root = str(ent["bin_root"]) if ent else None
|
| 144 |
+
tried = _candidate_paths(name, bin_root)
|
| 145 |
+
for path in tried:
|
| 146 |
+
if os.path.isfile(path) and not os.path.islink(path) and os.access(path, os.X_OK):
|
| 147 |
+
resolved = os.path.abspath(path)
|
| 148 |
+
verify_runtime_binary_sha384(resolved, name)
|
| 149 |
+
return resolved
|
| 150 |
+
raise VaultBinError(f"Runtime binary {name!r} not found or not executable; tried {tried}")
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def resolve_pack_engine(pack_name: str = "flagship_monolith_30", pack_dir: str | None = None) -> str | None:
|
| 154 |
+
"""Engine binary for a pack, or None to keep `McpStdioClient`'s default resolution.
|
| 155 |
+
|
| 156 |
+
`ZTP_ENGINE` (set by the exported vault images) always wins; when it points at a
|
| 157 |
+
Foundry binary (`ztp_foundry_mcp`), its SHA-384 digest is verified before launch.
|
| 158 |
+
"""
|
| 159 |
+
env_eng = os.environ.get("ZTP_ENGINE")
|
| 160 |
+
if env_eng:
|
| 161 |
+
bname = os.path.basename(env_eng)
|
| 162 |
+
if bname in FOUNDRY_VERIFIED_BIN_NAMES:
|
| 163 |
+
resolved = os.path.abspath(env_eng)
|
| 164 |
+
verify_runtime_binary_sha384(resolved, bname)
|
| 165 |
+
return resolved
|
| 166 |
+
return None
|
| 167 |
+
rt = load_pack_runtime(pack_name=pack_name, pack_dir=pack_dir)
|
| 168 |
+
if rt["engine"]["name"] == "mcp_stdio":
|
| 169 |
+
return None
|
| 170 |
+
return resolve_vault_bin(rt["engine"]["name"], bin_root=str(rt["engine"]["bin_root"]))
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
def verify_pack_runtime_binaries(pack_name: str = "flagship_monolith_30", pack_dir: str | None = None) -> dict[str, str]:
|
| 174 |
+
"""Verify SHA-384 digests of all Foundry binaries declared by a pack before grading."""
|
| 175 |
+
rt = load_pack_runtime(pack_name=pack_name, pack_dir=pack_dir)
|
| 176 |
+
verified: dict[str, str] = {}
|
| 177 |
+
for ent in [rt["engine"], *rt["vault_bins"]]:
|
| 178 |
+
bname = str(ent["name"])
|
| 179 |
+
if bname in FOUNDRY_VERIFIED_BIN_NAMES:
|
| 180 |
+
p = resolve_vault_bin(bname, bin_root=str(ent["bin_root"]))
|
| 181 |
+
verified[bname] = verify_runtime_binary_sha384(p, bname)
|
| 182 |
+
return verified
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
def _private_tmp_dir() -> str | None:
|
| 186 |
+
for cand in (os.environ.get("ZTP_VAULT_TMP"), "/root/ztp_vault"):
|
| 187 |
+
if cand and os.path.isdir(cand) and os.access(cand, os.W_OK):
|
| 188 |
+
return cand
|
| 189 |
+
return None
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
def run_vault_bin(
|
| 193 |
+
name: str,
|
| 194 |
+
args: list[str],
|
| 195 |
+
payload: Any = None,
|
| 196 |
+
*,
|
| 197 |
+
pack_name: str | None = None,
|
| 198 |
+
pack_dir: str | None = None,
|
| 199 |
+
bin_root: str | None = None,
|
| 200 |
+
timeout_s: float = 300.0,
|
| 201 |
+
check: bool = True,
|
| 202 |
+
) -> dict[str, Any]:
|
| 203 |
+
"""Run `<name> <args...> [<payload.json>]` and return its parsed JSON stdout plus digests.
|
| 204 |
+
|
| 205 |
+
With `payload` set, it is written as canonical JSON to a private file whose path is
|
| 206 |
+
appended as the last argument (the Foundry CLI contract: `probe <payload.json>`).
|
| 207 |
+
With `check=True` (default) a non-zero exit or non-JSON stdout raises `VaultBinError`.
|
| 208 |
+
"""
|
| 209 |
+
path = resolve_vault_bin(name, pack_name=pack_name, pack_dir=pack_dir, bin_root=bin_root)
|
| 210 |
+
payload_bytes = b""
|
| 211 |
+
env = {"PATH": "/usr/bin:/bin", "LC_ALL": "C", "HOME": os.environ.get("HOME", "/root")}
|
| 212 |
+
with tempfile.TemporaryDirectory(prefix="ztp_vbin_", dir=_private_tmp_dir()) as td:
|
| 213 |
+
os.chmod(td, 0o700)
|
| 214 |
+
argv = [path, *[str(a) for a in args]]
|
| 215 |
+
if payload is not None:
|
| 216 |
+
payload_bytes = json.dumps(payload, sort_keys=True, separators=(",", ":")).encode("utf-8")
|
| 217 |
+
ppath = os.path.join(td, "payload.json")
|
| 218 |
+
fd = os.open(ppath, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
|
| 219 |
+
with os.fdopen(fd, "wb") as fh:
|
| 220 |
+
fh.write(payload_bytes)
|
| 221 |
+
argv.append(ppath)
|
| 222 |
+
try:
|
| 223 |
+
proc = subprocess.run(
|
| 224 |
+
argv,
|
| 225 |
+
stdin=subprocess.DEVNULL,
|
| 226 |
+
capture_output=True,
|
| 227 |
+
timeout=timeout_s,
|
| 228 |
+
env=env,
|
| 229 |
+
cwd=td,
|
| 230 |
+
check=False,
|
| 231 |
+
)
|
| 232 |
+
except subprocess.TimeoutExpired as exc:
|
| 233 |
+
raise VaultBinError(f"{name} {' '.join(args)} timed out after {timeout_s}s") from exc
|
| 234 |
+
stdout = proc.stdout.decode("utf-8", errors="replace")
|
| 235 |
+
stderr = proc.stderr.decode("utf-8", errors="replace")
|
| 236 |
+
parsed: Any = None
|
| 237 |
+
try:
|
| 238 |
+
parsed = json.loads(stdout) if stdout.strip() else None
|
| 239 |
+
except ValueError:
|
| 240 |
+
parsed = None
|
| 241 |
+
res = {
|
| 242 |
+
"name": name,
|
| 243 |
+
"args": [str(a) for a in args],
|
| 244 |
+
"returncode": proc.returncode,
|
| 245 |
+
"ok": proc.returncode == 0 and parsed is not None,
|
| 246 |
+
"parsed": parsed,
|
| 247 |
+
"stdout": stdout,
|
| 248 |
+
"stderr": stderr[-4000:],
|
| 249 |
+
"payload_sha384": hashlib.sha384(payload_bytes).hexdigest() if payload is not None else "",
|
| 250 |
+
"stdout_sha384": hashlib.sha384(proc.stdout).hexdigest(),
|
| 251 |
+
}
|
| 252 |
+
if check and not res["ok"]:
|
| 253 |
+
raise VaultBinError(
|
| 254 |
+
f"{name} {' '.join(args)} failed (exit {proc.returncode}): {stderr.strip()[:400] or stdout[:400]}"
|
| 255 |
+
)
|
| 256 |
+
return res
|
preview/core/verifier_core.py
ADDED
|
@@ -0,0 +1,574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared Cryptographic Seal Resolver, Ledger Auditor, Bridge Fairness & Task Grader."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import hashlib
|
| 5 |
+
import json
|
| 6 |
+
import math
|
| 7 |
+
import os
|
| 8 |
+
import time
|
| 9 |
+
from typing import Any
|
| 10 |
+
|
| 11 |
+
from core.pack_registry import get_task_bundle, load_task_evaluator, load_task_vault
|
| 12 |
+
from core.plugin_base import TaskEvaluatorContext, VerifiedCall
|
| 13 |
+
from core.schema_contract import (
|
| 14 |
+
all_tokens_well_formed_hex,
|
| 15 |
+
extract_seal_tokens,
|
| 16 |
+
make_grade_report,
|
| 17 |
+
)
|
| 18 |
+
from core.vault_bins import resolve_pack_engine
|
| 19 |
+
from core.ztp_client import (
|
| 20 |
+
McpStdioClient,
|
| 21 |
+
is_valid_sha384_hex,
|
| 22 |
+
verify_receipt_offline_bytes,
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def compute_ledger_entry_hash(entry_without_hash: dict[str, Any]) -> str:
|
| 27 |
+
"""Compute chained SHA-384 digest over one `call_ledger.jsonl` entry."""
|
| 28 |
+
canon = json.dumps(entry_without_hash, sort_keys=True, separators=(",", ":")).encode("utf-8")
|
| 29 |
+
return hashlib.sha384(canon).hexdigest()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def extract_model_id_from_call(tool_name: str, args: dict[str, Any], parsed_ans: Any = None) -> str:
|
| 33 |
+
"""Infer canonical `<domain>/<card>` or `<solver>` identifier from an MCP tool call."""
|
| 34 |
+
if tool_name in ("run_trajectory", "compute_step", "describe_card"):
|
| 35 |
+
dom = args.get("domain")
|
| 36 |
+
card = args.get("card")
|
| 37 |
+
if dom and card:
|
| 38 |
+
return f"{dom}/{card}"
|
| 39 |
+
if tool_name in ("solve", "describe_solver"):
|
| 40 |
+
sol = args.get("solver")
|
| 41 |
+
if sol:
|
| 42 |
+
return str(sol)
|
| 43 |
+
if tool_name in ("run_dataset",):
|
| 44 |
+
ds = args.get("dataset") or args.get("domain")
|
| 45 |
+
if ds:
|
| 46 |
+
return str(ds)
|
| 47 |
+
if isinstance(parsed_ans, dict):
|
| 48 |
+
if parsed_ans.get("model"):
|
| 49 |
+
return str(parsed_ans["model"])
|
| 50 |
+
if parsed_ans.get("solver"):
|
| 51 |
+
return str(parsed_ans["solver"])
|
| 52 |
+
return tool_name
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def extract_seals_from_answer(parsed_ans: Any) -> list[str]:
|
| 56 |
+
"""Collect all lowercase 96-hex SHA-384 seal fields from an engine JSON response."""
|
| 57 |
+
if not isinstance(parsed_ans, dict):
|
| 58 |
+
return []
|
| 59 |
+
out: list[str] = []
|
| 60 |
+
for k in ("run_seal", "solution_seal", "receipt_sha384", "commitment", "seal"):
|
| 61 |
+
v = parsed_ans.get(k)
|
| 62 |
+
if is_valid_sha384_hex(v) and v not in out:
|
| 63 |
+
out.append(v)
|
| 64 |
+
chain = parsed_ans.get("chain")
|
| 65 |
+
if isinstance(chain, dict):
|
| 66 |
+
cs = chain.get("chain_seal")
|
| 67 |
+
if is_valid_sha384_hex(cs) and cs not in out:
|
| 68 |
+
out.append(cs)
|
| 69 |
+
return out
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def verify_call_ledger(
|
| 73 |
+
ledger_path: str,
|
| 74 |
+
*,
|
| 75 |
+
task_id: str | None = None,
|
| 76 |
+
max_discovery_calls: int | None = None,
|
| 77 |
+
max_sim_calls: int | None = None,
|
| 78 |
+
) -> dict[str, Any]:
|
| 79 |
+
"""Verify SHA-384 chaining & budget counts across `call_ledger.jsonl`."""
|
| 80 |
+
if not os.path.isfile(ledger_path):
|
| 81 |
+
return {
|
| 82 |
+
"ledger_verified": False,
|
| 83 |
+
"errors": [f"Missing call_ledger.jsonl at {ledger_path}"],
|
| 84 |
+
"records": [],
|
| 85 |
+
"discovery_calls_used": 0,
|
| 86 |
+
"sim_calls_used": 0,
|
| 87 |
+
"disabled_tool_attempts": 0,
|
| 88 |
+
"budget_rejected_calls": 0,
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
errors: list[str] = []
|
| 92 |
+
records: list[dict[str, Any]] = []
|
| 93 |
+
expected_prev = "0" * 96
|
| 94 |
+
seq_expected = 0
|
| 95 |
+
disc_used = 0
|
| 96 |
+
sim_used = 0
|
| 97 |
+
disabled_attempts = 0
|
| 98 |
+
budget_rejected = 0
|
| 99 |
+
|
| 100 |
+
with open(ledger_path, "r", encoding="utf-8") as fh:
|
| 101 |
+
for line_no, raw_line in enumerate(fh, 1):
|
| 102 |
+
s = raw_line.strip()
|
| 103 |
+
if not s:
|
| 104 |
+
continue
|
| 105 |
+
try:
|
| 106 |
+
rec = json.loads(s)
|
| 107 |
+
except ValueError as exc:
|
| 108 |
+
errors.append(f"Line {line_no}: malformed JSON ({exc})")
|
| 109 |
+
continue
|
| 110 |
+
seq_expected += 1
|
| 111 |
+
if rec.get("seq") != seq_expected:
|
| 112 |
+
errors.append(f"Line {line_no}: expected seq {seq_expected}, got {rec.get('seq')}")
|
| 113 |
+
if rec.get("prev_sha384") != expected_prev:
|
| 114 |
+
errors.append(f"Line {line_no}: prev_sha384 chain mismatch")
|
| 115 |
+
claimed_hash = rec.get("entry_sha384")
|
| 116 |
+
body = {k: v for k, v in rec.items() if k != "entry_sha384"}
|
| 117 |
+
recomputed = compute_ledger_entry_hash(body)
|
| 118 |
+
if claimed_hash != recomputed:
|
| 119 |
+
errors.append(f"Line {line_no}: entry_sha384 tamper detected")
|
| 120 |
+
expected_prev = str(claimed_hash or recomputed)
|
| 121 |
+
|
| 122 |
+
if task_id is not None and rec.get("task_id") != task_id:
|
| 123 |
+
errors.append(f"Line {line_no}: expected task_id={task_id!r}, got {rec.get('task_id')!r}")
|
| 124 |
+
|
| 125 |
+
disc_used = max(disc_used, int(rec.get("discovery_used", 0)))
|
| 126 |
+
sim_used = max(sim_used, int(rec.get("sim_used", 0)))
|
| 127 |
+
if rec.get("disabled_tool"):
|
| 128 |
+
disabled_attempts += 1
|
| 129 |
+
if rec.get("budget_rejected") and not rec.get("disabled_tool"):
|
| 130 |
+
budget_rejected += 1
|
| 131 |
+
records.append(rec)
|
| 132 |
+
|
| 133 |
+
if max_discovery_calls is not None and disc_used > max_discovery_calls:
|
| 134 |
+
errors.append(f"Discovery budget exceeded: {disc_used} > {max_discovery_calls}")
|
| 135 |
+
if max_sim_calls is not None and sim_used > max_sim_calls:
|
| 136 |
+
errors.append(f"Simulation budget exceeded: {sim_used} > {max_sim_calls}")
|
| 137 |
+
|
| 138 |
+
return {
|
| 139 |
+
"ledger_verified": len(errors) == 0,
|
| 140 |
+
"errors": errors,
|
| 141 |
+
"records": records,
|
| 142 |
+
"entry_count": len(records),
|
| 143 |
+
"discovery_calls_used": disc_used,
|
| 144 |
+
"sim_calls_used": sim_used,
|
| 145 |
+
"disabled_tool_attempts": disabled_attempts,
|
| 146 |
+
"budget_rejected_calls": budget_rejected,
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def _verify_single_recomputed_call(
|
| 151 |
+
*,
|
| 152 |
+
client: McpStdioClient,
|
| 153 |
+
submitted_seal: str,
|
| 154 |
+
tool: str,
|
| 155 |
+
model_id: str,
|
| 156 |
+
args: dict[str, Any],
|
| 157 |
+
expected_answer_sha384: str,
|
| 158 |
+
) -> tuple[bool, VerifiedCall | None, str]:
|
| 159 |
+
"""Deterministically re-run `(tool, args)` on `mcp_stdio` and verify SHA-384 proofs."""
|
| 160 |
+
parsed, raw_text, is_err = client.call_json(tool, args)
|
| 161 |
+
if is_err or not isinstance(parsed, dict):
|
| 162 |
+
return False, None, f"Engine recomputation errored for seal {submitted_seal[:16]}... ({tool} on {model_id}): {raw_text[:200]}"
|
| 163 |
+
|
| 164 |
+
actual_ans_hash = hashlib.sha384(raw_text.encode("utf-8")).hexdigest()
|
| 165 |
+
if expected_answer_sha384 and actual_ans_hash != expected_answer_sha384:
|
| 166 |
+
return (
|
| 167 |
+
False,
|
| 168 |
+
None,
|
| 169 |
+
f"Determinism mismatch on recomputation for seal {submitted_seal[:16]}... ({model_id}): ledger SHA-384 {expected_answer_sha384[:16]} != fresh {actual_ans_hash[:16]}",
|
| 170 |
+
)
|
| 171 |
+
|
| 172 |
+
ok_rec, rec_msg = verify_receipt_offline_bytes(raw_text)
|
| 173 |
+
if not ok_rec:
|
| 174 |
+
return False, None, f"Offline receipt check failed for {model_id} seal {submitted_seal[:16]}...: {rec_msg}"
|
| 175 |
+
|
| 176 |
+
emitted_seals = extract_seals_from_answer(parsed)
|
| 177 |
+
if submitted_seal not in emitted_seals:
|
| 178 |
+
return (
|
| 179 |
+
False,
|
| 180 |
+
None,
|
| 181 |
+
f"Seal {submitted_seal[:16]}... not emitted by fresh {tool} recomputation on {model_id}.",
|
| 182 |
+
)
|
| 183 |
+
|
| 184 |
+
# Verify engine cryptographic integrity (`verify_tape` / `verify_solution`)
|
| 185 |
+
if tool == "run_trajectory" and parsed.get("run_seal"):
|
| 186 |
+
vt_ans, vt_raw, vt_err = client.call_json(
|
| 187 |
+
"verify_tape", {"request": args, "run_seal": parsed["run_seal"]}
|
| 188 |
+
)
|
| 189 |
+
if vt_err or not isinstance(vt_ans, dict) or not vt_ans.get("holds"):
|
| 190 |
+
return (
|
| 191 |
+
False,
|
| 192 |
+
None,
|
| 193 |
+
f"Engine verify_tape rejected {model_id} seal {submitted_seal[:16]}...: {vt_raw[:200]}",
|
| 194 |
+
)
|
| 195 |
+
elif tool == "solve" and parsed.get("solution_seal"):
|
| 196 |
+
vs_ans, vs_raw, vs_err = client.call_json(
|
| 197 |
+
"verify_solution", {"request": args, "solution_seal": parsed["solution_seal"]}
|
| 198 |
+
)
|
| 199 |
+
if vs_err or not isinstance(vs_ans, dict) or not vs_ans.get("holds"):
|
| 200 |
+
return (
|
| 201 |
+
False,
|
| 202 |
+
None,
|
| 203 |
+
f"Engine verify_solution rejected {model_id} seal {submitted_seal[:16]}...: {vs_raw[:200]}",
|
| 204 |
+
)
|
| 205 |
+
|
| 206 |
+
primary_seal = str(
|
| 207 |
+
parsed.get("run_seal")
|
| 208 |
+
or parsed.get("solution_seal")
|
| 209 |
+
or parsed.get("receipt_sha384")
|
| 210 |
+
or submitted_seal
|
| 211 |
+
)
|
| 212 |
+
vc = VerifiedCall(
|
| 213 |
+
submitted_seal=submitted_seal,
|
| 214 |
+
model_id=model_id,
|
| 215 |
+
tool=tool,
|
| 216 |
+
args=args,
|
| 217 |
+
answer=parsed,
|
| 218 |
+
raw_text=raw_text,
|
| 219 |
+
answer_sha384=actual_ans_hash,
|
| 220 |
+
receipt_sha384=str(parsed.get("receipt_sha384") or rec_msg),
|
| 221 |
+
primary_seal=primary_seal,
|
| 222 |
+
)
|
| 223 |
+
return True, vc, "ok"
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
def resolve_and_verify_seals(
|
| 227 |
+
*,
|
| 228 |
+
seal_tokens: list[str],
|
| 229 |
+
ledger_records: list[dict[str, Any]],
|
| 230 |
+
client: McpStdioClient,
|
| 231 |
+
) -> tuple[bool, list[VerifiedCall], dict[str, list[VerifiedCall]], str]:
|
| 232 |
+
"""Resolve list-or-dict seals against `call_ledger.jsonl` and recompute via `mcp_stdio`."""
|
| 233 |
+
ok_hex, bad_tok = all_tokens_well_formed_hex(seal_tokens)
|
| 234 |
+
if not ok_hex:
|
| 235 |
+
return (
|
| 236 |
+
False,
|
| 237 |
+
[],
|
| 238 |
+
{},
|
| 239 |
+
f"Invalid SHA-384 seal string {bad_tok!r}: expected 96 lowercase hexadecimal characters.",
|
| 240 |
+
)
|
| 241 |
+
|
| 242 |
+
# Build lookup index from every verified non-error ledger entry & embedded plugin step records
|
| 243 |
+
seal_index: dict[str, dict[str, Any]] = {}
|
| 244 |
+
for rec in ledger_records:
|
| 245 |
+
if rec.get("is_error") or rec.get("budget_rejected"):
|
| 246 |
+
continue
|
| 247 |
+
cs = rec.get("call_spec")
|
| 248 |
+
if isinstance(cs, dict) and cs.get("tool") in ("run_trajectory", "compute_step", "solve", "run_dataset"):
|
| 249 |
+
for sh in rec.get("extracted_seals") or []:
|
| 250 |
+
seal_index[sh] = {
|
| 251 |
+
"tool": cs["tool"],
|
| 252 |
+
"model_id": cs.get("model_id") or extract_model_id_from_call(cs["tool"], cs.get("args") or {}),
|
| 253 |
+
"args": cs.get("args") or {},
|
| 254 |
+
"answer_sha384": str(rec.get("answer_sha384") or ""),
|
| 255 |
+
}
|
| 256 |
+
for step_rec in rec.get("step_call_records") or []:
|
| 257 |
+
if not isinstance(step_rec, dict):
|
| 258 |
+
continue
|
| 259 |
+
scs = step_rec.get("call_spec") or {}
|
| 260 |
+
tname = scs.get("tool") or step_rec.get("tool")
|
| 261 |
+
targs = scs.get("args") or step_rec.get("args") or {}
|
| 262 |
+
mid = scs.get("model_id") or step_rec.get("model_id") or extract_model_id_from_call(str(tname), targs)
|
| 263 |
+
ans_h = str(step_rec.get("answer_sha384") or "")
|
| 264 |
+
for sh in step_rec.get("extracted_seals") or []:
|
| 265 |
+
seal_index[sh] = {
|
| 266 |
+
"tool": tname,
|
| 267 |
+
"model_id": mid,
|
| 268 |
+
"args": targs,
|
| 269 |
+
"answer_sha384": ans_h,
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
resolved: list[VerifiedCall] = []
|
| 273 |
+
by_model: dict[str, list[VerifiedCall]] = {}
|
| 274 |
+
recompute_cache: dict[str, VerifiedCall] = {}
|
| 275 |
+
|
| 276 |
+
for tok in seal_tokens:
|
| 277 |
+
entry = seal_index.get(tok)
|
| 278 |
+
if entry is None:
|
| 279 |
+
return (
|
| 280 |
+
False,
|
| 281 |
+
[],
|
| 282 |
+
{},
|
| 283 |
+
f"Seal {tok[:20]}... not found in session call_ledger.jsonl (orphaned, stale, or forged seal).",
|
| 284 |
+
)
|
| 285 |
+
ans_key = f"{entry['tool']}::{entry['answer_sha384']}::{json.dumps(entry['args'], sort_keys=True)}"
|
| 286 |
+
cached = recompute_cache.get(ans_key)
|
| 287 |
+
if cached is not None:
|
| 288 |
+
# Verify tok matches an emitted seal on the already-verified call
|
| 289 |
+
if tok not in extract_seals_from_answer(cached.answer):
|
| 290 |
+
return (
|
| 291 |
+
False,
|
| 292 |
+
[],
|
| 293 |
+
{},
|
| 294 |
+
f"Seal {tok[:20]}... does not match recomputed engine output for {entry['model_id']}.",
|
| 295 |
+
)
|
| 296 |
+
resolved.append(cached)
|
| 297 |
+
continue
|
| 298 |
+
|
| 299 |
+
ok, vc, msg = _verify_single_recomputed_call(
|
| 300 |
+
client=client,
|
| 301 |
+
submitted_seal=tok,
|
| 302 |
+
tool=entry["tool"],
|
| 303 |
+
model_id=entry["model_id"],
|
| 304 |
+
args=entry["args"],
|
| 305 |
+
expected_answer_sha384=entry["answer_sha384"],
|
| 306 |
+
)
|
| 307 |
+
if not ok or vc is None:
|
| 308 |
+
return False, [], {}, msg
|
| 309 |
+
recompute_cache[ans_key] = vc
|
| 310 |
+
resolved.append(vc)
|
| 311 |
+
by_model.setdefault(vc.model_id, []).append(vc)
|
| 312 |
+
|
| 313 |
+
return True, resolved, by_model, "All submitted seals verified against call_ledger.jsonl and fresh mcp_stdio recomputation."
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
def collect_plugin_episodes(ledger_records: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
| 317 |
+
"""Extract chronological `CLC`/`FLT` plugin step & finalize records from `call_ledger.jsonl`."""
|
| 318 |
+
episodes: list[dict[str, Any]] = []
|
| 319 |
+
cur: dict[str, Any] | None = None
|
| 320 |
+
for rec in ledger_records:
|
| 321 |
+
if rec.get("is_error") or rec.get("budget_rejected"):
|
| 322 |
+
continue
|
| 323 |
+
ep_ev = rec.get("plugin_event")
|
| 324 |
+
if not isinstance(ep_ev, dict):
|
| 325 |
+
continue
|
| 326 |
+
kind = ep_ev.get("kind")
|
| 327 |
+
if kind == "reset_episode":
|
| 328 |
+
cur = {"reset": ep_ev, "steps": [], "finalized": False}
|
| 329 |
+
episodes.append(cur)
|
| 330 |
+
elif kind == "step_env":
|
| 331 |
+
if cur is None:
|
| 332 |
+
cur = {"reset": None, "steps": [], "finalized": False}
|
| 333 |
+
episodes.append(cur)
|
| 334 |
+
cur["steps"].append(ep_ev)
|
| 335 |
+
elif kind == "finalize_episode" and cur is not None:
|
| 336 |
+
cur["finalized"] = True
|
| 337 |
+
cur["finalize"] = ep_ev
|
| 338 |
+
return episodes
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
def collect_plugin_probes(ledger_records: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
| 342 |
+
"""Extract valid `FLT` diagnostic `inject_probe` events from `call_ledger.jsonl`."""
|
| 343 |
+
probes: list[dict[str, Any]] = []
|
| 344 |
+
for rec in ledger_records:
|
| 345 |
+
if rec.get("is_error") or rec.get("budget_rejected"):
|
| 346 |
+
continue
|
| 347 |
+
ep_ev = rec.get("plugin_event")
|
| 348 |
+
if isinstance(ep_ev, dict) and ep_ev.get("kind") == "inject_probe":
|
| 349 |
+
probes.append(ep_ev)
|
| 350 |
+
return probes
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
def check_bridge_value(
|
| 354 |
+
expected: float,
|
| 355 |
+
observed: Any,
|
| 356 |
+
unit: str,
|
| 357 |
+
bridge_name: str,
|
| 358 |
+
*,
|
| 359 |
+
mode: str = "exact",
|
| 360 |
+
rel_tol: float = 1e-6,
|
| 361 |
+
abs_tol: float = 1e-12,
|
| 362 |
+
) -> tuple[bool, dict[str, Any]]:
|
| 363 |
+
"""Conservation & continuity bridge check with JSON float tolerance & optional conservative margin.
|
| 364 |
+
|
| 365 |
+
- `mode == "exact"`: `|observed - expected| <= max(abs_tol, rel_tol * |expected|)`
|
| 366 |
+
- `mode == "ge"`: `observed >= expected - tol` (conservative upward safety load margin)
|
| 367 |
+
- `mode == "le"`: `observed <= expected + tol` (conservative colder/harsher boundary margin)
|
| 368 |
+
"""
|
| 369 |
+
try:
|
| 370 |
+
exp = float(expected)
|
| 371 |
+
obs = float(observed)
|
| 372 |
+
except (TypeError, ValueError):
|
| 373 |
+
return False, {"bridge": bridge_name, "unit": unit, "holds": False, "error": "non-numeric value"}
|
| 374 |
+
if not (math.isfinite(exp) and math.isfinite(obs)):
|
| 375 |
+
return False, {"bridge": bridge_name, "unit": unit, "holds": False, "error": "non-finite value"}
|
| 376 |
+
|
| 377 |
+
tol = max(abs_tol, rel_tol * abs(exp))
|
| 378 |
+
diff = abs(obs - exp)
|
| 379 |
+
if mode == "exact":
|
| 380 |
+
holds = diff <= tol
|
| 381 |
+
elif mode == "ge":
|
| 382 |
+
holds = obs >= (exp - tol)
|
| 383 |
+
elif mode == "le":
|
| 384 |
+
holds = obs <= (exp + tol)
|
| 385 |
+
else:
|
| 386 |
+
raise ValueError(f"Unknown bridge mode {mode!r}")
|
| 387 |
+
|
| 388 |
+
return holds, {
|
| 389 |
+
"bridge": bridge_name,
|
| 390 |
+
"unit": unit,
|
| 391 |
+
"mode": mode,
|
| 392 |
+
"expected_upstream": exp,
|
| 393 |
+
"observed_downstream": obs,
|
| 394 |
+
"abs_diff": diff,
|
| 395 |
+
"tolerance": tol,
|
| 396 |
+
"holds": holds,
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
def grade_task(
|
| 401 |
+
task_id: str,
|
| 402 |
+
submission: dict[str, Any] | None,
|
| 403 |
+
*,
|
| 404 |
+
pack_name: str = "flagship_monolith_30",
|
| 405 |
+
pack_dir: str | None = None,
|
| 406 |
+
ledger_path: str | None = None,
|
| 407 |
+
vault_dir: str | None = None,
|
| 408 |
+
engine_bin: str | None = None,
|
| 409 |
+
seal_bin: str | None = None,
|
| 410 |
+
) -> dict[str, Any]:
|
| 411 |
+
"""Grade one task submission end-to-end with cryptographic recomputation & autopsy."""
|
| 412 |
+
t0 = time.monotonic()
|
| 413 |
+
bundle = get_task_bundle(task_id=task_id, pack_name=pack_name, pack_dir=pack_dir)
|
| 414 |
+
tspec = bundle["task_spec"]
|
| 415 |
+
tdir = bundle["task_dir"]
|
| 416 |
+
pdir = bundle["pack_dir"]
|
| 417 |
+
budget = tspec.get("budget") or {}
|
| 418 |
+
max_disc = int(budget.get("max_discovery_calls", 120))
|
| 419 |
+
max_sim = int(budget.get("max_sim_calls", 40))
|
| 420 |
+
|
| 421 |
+
if submission is None or not isinstance(submission, dict):
|
| 422 |
+
return make_grade_report(
|
| 423 |
+
task_id=task_id,
|
| 424 |
+
binary_reward=0,
|
| 425 |
+
shaped_score=0.0,
|
| 426 |
+
seals_verified=False,
|
| 427 |
+
failure_reason="schema_error",
|
| 428 |
+
autopsy="Missing or non-object submission.json.",
|
| 429 |
+
stage_breakdown={"schema": {"holds": False}},
|
| 430 |
+
ledger_audit=None,
|
| 431 |
+
verification_ms=(time.monotonic() - t0) * 1000.0,
|
| 432 |
+
)
|
| 433 |
+
|
| 434 |
+
ledger_audit: dict[str, Any] | None = None
|
| 435 |
+
ledger_records: list[dict[str, Any]] = []
|
| 436 |
+
if ledger_path is not None:
|
| 437 |
+
ledger_audit = verify_call_ledger(
|
| 438 |
+
ledger_path,
|
| 439 |
+
task_id=task_id,
|
| 440 |
+
max_discovery_calls=max_disc,
|
| 441 |
+
max_sim_calls=max_sim,
|
| 442 |
+
)
|
| 443 |
+
ledger_records = list(ledger_audit.get("records") or [])
|
| 444 |
+
if not ledger_audit["ledger_verified"]:
|
| 445 |
+
return make_grade_report(
|
| 446 |
+
task_id=task_id,
|
| 447 |
+
binary_reward=0,
|
| 448 |
+
shaped_score=0.0,
|
| 449 |
+
seals_verified=False,
|
| 450 |
+
failure_reason="seal_invalid",
|
| 451 |
+
autopsy=f"Ledger SHA-384 chain verification failed: {'; '.join(ledger_audit['errors'])}",
|
| 452 |
+
stage_breakdown={"ledger": {"holds": False, "errors": ledger_audit["errors"]}},
|
| 453 |
+
ledger_audit={k: v for k, v in ledger_audit.items() if k != "records"},
|
| 454 |
+
verification_ms=(time.monotonic() - t0) * 1000.0,
|
| 455 |
+
)
|
| 456 |
+
|
| 457 |
+
eval_mod = load_task_evaluator(task_id=task_id, task_dir=tdir)
|
| 458 |
+
vault = load_task_vault(task_id=task_id, vault_dir=vault_dir, pack_dir=pdir)
|
| 459 |
+
|
| 460 |
+
# First check schema + extract candidate seal tokens via task schema or fallback helper
|
| 461 |
+
if hasattr(eval_mod, "validate_schema"):
|
| 462 |
+
schema_ok, schema_errs, seal_tokens = eval_mod.validate_schema(submission)
|
| 463 |
+
else:
|
| 464 |
+
ok_s, seal_tokens, err_s = extract_seal_tokens(submission.get("seals"))
|
| 465 |
+
schema_ok = ok_s and submission.get("task_id") == task_id
|
| 466 |
+
schema_errs = [err_s] if err_s else []
|
| 467 |
+
if submission.get("task_id") != task_id:
|
| 468 |
+
schema_errs.append(f"Expected task_id={task_id!r}, got {submission.get('task_id')!r}")
|
| 469 |
+
|
| 470 |
+
compact_ledger = {k: v for k, v in ledger_audit.items() if k != "records"} if ledger_audit else None
|
| 471 |
+
|
| 472 |
+
if not schema_ok:
|
| 473 |
+
is_budget_empty_seals = False
|
| 474 |
+
if (
|
| 475 |
+
isinstance(submission, dict)
|
| 476 |
+
and submission.get("seals") in ([], {})
|
| 477 |
+
and any(r.get("budget_rejected") and not r.get("disabled_tool") for r in ledger_records)
|
| 478 |
+
):
|
| 479 |
+
probe_sub = dict(submission)
|
| 480 |
+
probe_sub["seals"] = ["0" * 96]
|
| 481 |
+
if hasattr(eval_mod, "validate_schema"):
|
| 482 |
+
probe_ok, _, _ = eval_mod.validate_schema(probe_sub)
|
| 483 |
+
else:
|
| 484 |
+
probe_ok = submission.get("task_id") == task_id
|
| 485 |
+
is_budget_empty_seals = bool(probe_ok)
|
| 486 |
+
|
| 487 |
+
if is_budget_empty_seals:
|
| 488 |
+
return make_grade_report(
|
| 489 |
+
task_id=task_id,
|
| 490 |
+
binary_reward=0,
|
| 491 |
+
shaped_score=0.0,
|
| 492 |
+
seals_verified=False,
|
| 493 |
+
failure_reason="budget_exhausted",
|
| 494 |
+
autopsy=(
|
| 495 |
+
"BUDGET_EXHAUSTED [SHA-384 autopsy]: Task wall timeout or simulation call budget "
|
| 496 |
+
"exhausted before cryptographic seals were minted."
|
| 497 |
+
),
|
| 498 |
+
stage_breakdown={"schema": {"holds": False, "errors": schema_errs}, "budget_exhausted": True},
|
| 499 |
+
ledger_audit=compact_ledger,
|
| 500 |
+
verification_ms=(time.monotonic() - t0) * 1000.0,
|
| 501 |
+
)
|
| 502 |
+
|
| 503 |
+
return make_grade_report(
|
| 504 |
+
task_id=task_id,
|
| 505 |
+
binary_reward=0,
|
| 506 |
+
shaped_score=0.0,
|
| 507 |
+
seals_verified=False,
|
| 508 |
+
failure_reason="schema_error",
|
| 509 |
+
autopsy="Schema validation failed: " + " | ".join(schema_errs),
|
| 510 |
+
stage_breakdown={"schema": {"holds": False, "errors": schema_errs}},
|
| 511 |
+
ledger_audit=compact_ledger,
|
| 512 |
+
verification_ms=(time.monotonic() - t0) * 1000.0,
|
| 513 |
+
)
|
| 514 |
+
|
| 515 |
+
if engine_bin is None:
|
| 516 |
+
engine_bin = resolve_pack_engine(pack_name=pack_name, pack_dir=pack_dir)
|
| 517 |
+
with McpStdioClient(engine_bin=engine_bin) as client:
|
| 518 |
+
seals_ok, resolved, by_model, seal_msg = resolve_and_verify_seals(
|
| 519 |
+
seal_tokens=seal_tokens,
|
| 520 |
+
ledger_records=ledger_records,
|
| 521 |
+
client=client,
|
| 522 |
+
)
|
| 523 |
+
if not seals_ok:
|
| 524 |
+
return make_grade_report(
|
| 525 |
+
task_id=task_id,
|
| 526 |
+
binary_reward=0,
|
| 527 |
+
shaped_score=0.0,
|
| 528 |
+
seals_verified=False,
|
| 529 |
+
failure_reason="seal_invalid",
|
| 530 |
+
autopsy=f"Cryptographic seal verification failed: {seal_msg}",
|
| 531 |
+
stage_breakdown={"seals": {"holds": False, "message": seal_msg}},
|
| 532 |
+
ledger_audit=compact_ledger,
|
| 533 |
+
verification_ms=(time.monotonic() - t0) * 1000.0,
|
| 534 |
+
)
|
| 535 |
+
|
| 536 |
+
ctx = TaskEvaluatorContext(
|
| 537 |
+
task_id=task_id,
|
| 538 |
+
task_dir=tdir,
|
| 539 |
+
task_spec=tspec,
|
| 540 |
+
pack_dir=pdir,
|
| 541 |
+
client=client,
|
| 542 |
+
seal_bin=seal_bin,
|
| 543 |
+
vault=vault,
|
| 544 |
+
ledger_records=ledger_records,
|
| 545 |
+
ledger_audit=compact_ledger,
|
| 546 |
+
resolved_seals=resolved,
|
| 547 |
+
verified_by_model=by_model,
|
| 548 |
+
plugin_episodes=collect_plugin_episodes(ledger_records),
|
| 549 |
+
)
|
| 550 |
+
res = eval_mod.evaluate(submission, ctx)
|
| 551 |
+
|
| 552 |
+
# Upgrade failure_reason from physics_violation to budget_exhausted if required proofs
|
| 553 |
+
# were missing strictly after hitting a daemon budget wall.
|
| 554 |
+
failure_reason = str(res["failure_reason"])
|
| 555 |
+
if (
|
| 556 |
+
int(res["binary_reward"]) == 0
|
| 557 |
+
and failure_reason == "physics_violation"
|
| 558 |
+
and compact_ledger is not None
|
| 559 |
+
and int(compact_ledger.get("budget_rejected_calls", 0)) > 0
|
| 560 |
+
and not bool(res.get("all_required_models_present", True))
|
| 561 |
+
):
|
| 562 |
+
failure_reason = "budget_exhausted"
|
| 563 |
+
|
| 564 |
+
return make_grade_report(
|
| 565 |
+
task_id=task_id,
|
| 566 |
+
binary_reward=int(res["binary_reward"]),
|
| 567 |
+
shaped_score=float(res["shaped_score"]),
|
| 568 |
+
seals_verified=True,
|
| 569 |
+
failure_reason=failure_reason,
|
| 570 |
+
autopsy=str(res["autopsy"]),
|
| 571 |
+
stage_breakdown=dict(res["stage_breakdown"]),
|
| 572 |
+
ledger_audit=compact_ledger,
|
| 573 |
+
verification_ms=(time.monotonic() - t0) * 1000.0,
|
| 574 |
+
)
|
preview/core/ztp_client.py
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Zero-Trust Physics standard-library MCP stdio client and IEEE-754 / SHA-384 helpers.
|
| 2 |
+
|
| 3 |
+
Consumes the frozen v0.15.3 monument binaries (`mcp_stdio` and `genesis_seal`) strictly
|
| 4 |
+
read-only with zero network calls and zero external dependencies.
|
| 5 |
+
"""
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
import hashlib
|
| 9 |
+
import json
|
| 10 |
+
import os
|
| 11 |
+
import platform
|
| 12 |
+
import select
|
| 13 |
+
import shlex
|
| 14 |
+
import struct
|
| 15 |
+
import subprocess
|
| 16 |
+
import tempfile
|
| 17 |
+
from typing import Any
|
| 18 |
+
|
| 19 |
+
CORE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 20 |
+
LAB_ROOT = os.path.dirname(CORE_DIR)
|
| 21 |
+
SPECTRUM_ROOT = os.path.dirname(LAB_ROOT)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def _host_arch_subdir() -> str | None:
|
| 25 |
+
sys_name = platform.system()
|
| 26 |
+
mach = platform.machine()
|
| 27 |
+
if sys_name == "Darwin" and mach == "arm64":
|
| 28 |
+
return "macos-arm64"
|
| 29 |
+
if sys_name == "Linux" and mach in ("aarch64", "arm64"):
|
| 30 |
+
return "linux-arm64"
|
| 31 |
+
if sys_name == "Linux" and mach in ("x86_64", "amd64"):
|
| 32 |
+
return "linux-amd64"
|
| 33 |
+
return None
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
_ARCH_SUBDIR = _host_arch_subdir()
|
| 37 |
+
|
| 38 |
+
DEFAULT_ENGINE_CANDIDATES = tuple(
|
| 39 |
+
p
|
| 40 |
+
for p in (
|
| 41 |
+
os.path.join(LAB_ROOT, "bin", _ARCH_SUBDIR, "mcp_stdio") if _ARCH_SUBDIR else None,
|
| 42 |
+
os.path.join(LAB_ROOT, "bin", "mcp_stdio"),
|
| 43 |
+
"/root/ztp_bin/mcp_stdio",
|
| 44 |
+
os.path.join(SPECTRUM_ROOT, "genesis_workspace", "target", "release", "mcp_stdio"),
|
| 45 |
+
"/usr/local/bin/mcp_stdio",
|
| 46 |
+
)
|
| 47 |
+
if p is not None
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
DEFAULT_SEAL_CANDIDATES = tuple(
|
| 51 |
+
p
|
| 52 |
+
for p in (
|
| 53 |
+
os.path.join(LAB_ROOT, "bin", _ARCH_SUBDIR, "genesis_seal") if _ARCH_SUBDIR else None,
|
| 54 |
+
os.path.join(LAB_ROOT, "bin", "genesis_seal"),
|
| 55 |
+
"/root/ztp_bin/genesis_seal",
|
| 56 |
+
os.path.join(SPECTRUM_ROOT, "genesis_workspace", "target", "release", "genesis_seal"),
|
| 57 |
+
"/usr/local/bin/genesis_seal",
|
| 58 |
+
)
|
| 59 |
+
if p is not None
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
EXPECTED_ENGINE_VERSION_PREFIX = "0.15."
|
| 63 |
+
EXPECTED_SEAL_RULE = "zero-trust-physics/seal/v2"
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
class ZtpError(RuntimeError):
|
| 67 |
+
"""Raised on MCP transport or protocol errors."""
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def resolve_engine_bin(explicit: str | None = None) -> str:
|
| 71 |
+
"""Resolve the frozen `mcp_stdio` binary path."""
|
| 72 |
+
candidates = [explicit] if explicit else []
|
| 73 |
+
env_bin = os.environ.get("ZTP_ENGINE")
|
| 74 |
+
if env_bin:
|
| 75 |
+
candidates.append(env_bin)
|
| 76 |
+
candidates.extend(DEFAULT_ENGINE_CANDIDATES)
|
| 77 |
+
for path in candidates:
|
| 78 |
+
if path and os.path.isfile(path) and os.access(path, os.X_OK):
|
| 79 |
+
return os.path.abspath(path)
|
| 80 |
+
raise FileNotFoundError(
|
| 81 |
+
"Could not locate executable mcp_stdio binary. Set ZTP_ENGINE or populate genesis_lab/bin/mcp_stdio."
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def resolve_seal_bin(explicit: str | None = None) -> str:
|
| 86 |
+
"""Resolve the frozen `genesis_seal` binary path."""
|
| 87 |
+
candidates = [explicit] if explicit else []
|
| 88 |
+
env_bin = os.environ.get("ZTP_SEAL_BIN")
|
| 89 |
+
if env_bin:
|
| 90 |
+
candidates.append(env_bin)
|
| 91 |
+
candidates.extend(DEFAULT_SEAL_CANDIDATES)
|
| 92 |
+
for path in candidates:
|
| 93 |
+
if path and os.path.isfile(path) and os.access(path, os.X_OK):
|
| 94 |
+
return os.path.abspath(path)
|
| 95 |
+
raise FileNotFoundError(
|
| 96 |
+
"Could not locate executable genesis_seal binary. Set ZTP_SEAL_BIN or populate genesis_lab/bin/genesis_seal."
|
| 97 |
+
)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def f64_to_hex(val: float) -> str:
|
| 101 |
+
"""Return 16 lowercase hex digits of IEEE-754 binary64 big-endian representation."""
|
| 102 |
+
return struct.pack(">d", float(val)).hex()
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def f64_from_hex(hex_str: str) -> float:
|
| 106 |
+
"""Decode 16-hex-digit IEEE-754 binary64 value to Python float."""
|
| 107 |
+
if not isinstance(hex_str, str) or len(hex_str) != 16:
|
| 108 |
+
raise ValueError(f"Expected 16-hex-digit string, got {hex_str!r}")
|
| 109 |
+
return struct.unpack(">d", bytes.fromhex(hex_str))[0]
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def is_valid_sha384_hex(s: Any) -> bool:
|
| 113 |
+
"""True iff `s` is 96 lowercase hexadecimal digits."""
|
| 114 |
+
if not isinstance(s, str) or len(s) != 96:
|
| 115 |
+
return False
|
| 116 |
+
return all(c in "0123456789abcdef" for c in s)
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def decode_frame64(frame_hex: str) -> dict[str, Any]:
|
| 120 |
+
"""Decode a 64-byte (128-hex-char) kernel LastStateFrame64 into Python floats & flags."""
|
| 121 |
+
if not isinstance(frame_hex, str) or len(frame_hex) != 128:
|
| 122 |
+
raise ValueError(f"Expected 128-hex-char frame_hex, got length {len(str(frame_hex))}")
|
| 123 |
+
raw = bytes.fromhex(frame_hex)
|
| 124 |
+
t_s = struct.unpack("<d", raw[0:8])[0]
|
| 125 |
+
pos0, pos1, pos2 = struct.unpack("<fff", raw[8:20])
|
| 126 |
+
vel0, vel1, vel2 = struct.unpack("<fff", raw[20:32])
|
| 127 |
+
force_torque = struct.unpack("<f", raw[32:36])[0]
|
| 128 |
+
residual = struct.unpack("<f", raw[36:40])[0]
|
| 129 |
+
flags = struct.unpack("<Q", raw[40:48])[0]
|
| 130 |
+
proof_hex = raw[48:64].hex()
|
| 131 |
+
return {
|
| 132 |
+
"t": t_s,
|
| 133 |
+
"pos": (pos0, pos1, pos2),
|
| 134 |
+
"vel": (vel0, vel1, vel2),
|
| 135 |
+
"force_torque": force_torque,
|
| 136 |
+
"residual": residual,
|
| 137 |
+
"flags": flags,
|
| 138 |
+
"proof_hex": proof_hex,
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
def verify_receipt_offline_bytes(raw_answer_text: str) -> tuple[bool, str]:
|
| 143 |
+
"""Verify `receipt_sha384` directly from raw answer text per `zero-trust-physics/seal/v2`."""
|
| 144 |
+
if not isinstance(raw_answer_text, str):
|
| 145 |
+
return False, "raw_answer_text is not a string"
|
| 146 |
+
text = raw_answer_text.strip()
|
| 147 |
+
sig_marker = ',"signature":{'
|
| 148 |
+
if sig_marker in text and text.endswith("}}"):
|
| 149 |
+
idx_sig = text.rfind(sig_marker)
|
| 150 |
+
text = text[:idx_sig] + "}"
|
| 151 |
+
marker = ',"receipt_sha384":"'
|
| 152 |
+
idx = text.rfind(marker)
|
| 153 |
+
if idx == -1:
|
| 154 |
+
return False, "missing receipt_sha384 marker"
|
| 155 |
+
tail = text[idx + len(marker) :]
|
| 156 |
+
if not tail.endswith('"}') or len(tail) != 98:
|
| 157 |
+
return False, "malformed receipt_sha384 tail"
|
| 158 |
+
claimed = tail[:96]
|
| 159 |
+
if not is_valid_sha384_hex(claimed):
|
| 160 |
+
return False, "receipt_sha384 is not 96 lowercase hex digits"
|
| 161 |
+
body_to_hash = (text[:idx] + "}").encode("utf-8")
|
| 162 |
+
recomputed = hashlib.sha384(body_to_hash).hexdigest()
|
| 163 |
+
if recomputed != claimed:
|
| 164 |
+
return False, f"receipt mismatch: claimed {claimed[:16]}... != recomputed {recomputed[:16]}..."
|
| 165 |
+
if '"seal_rule":"zero-trust-physics/seal/v2"' not in text[:idx]:
|
| 166 |
+
return False, "missing or invalid seal_rule v2"
|
| 167 |
+
return True, recomputed
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def sealed_form_text(obj: Any) -> str:
|
| 171 |
+
"""Exact canonical request text (`sealed_form`) per engine specification."""
|
| 172 |
+
if obj is None:
|
| 173 |
+
return "null"
|
| 174 |
+
if obj is True:
|
| 175 |
+
return "true"
|
| 176 |
+
if obj is False:
|
| 177 |
+
return "false"
|
| 178 |
+
if isinstance(obj, str):
|
| 179 |
+
out = ['"']
|
| 180 |
+
for ch in obj:
|
| 181 |
+
code = ord(ch)
|
| 182 |
+
if ch == '"':
|
| 183 |
+
out.append('\\"')
|
| 184 |
+
elif ch == "\\":
|
| 185 |
+
out.append("\\\\")
|
| 186 |
+
elif code == 0x08:
|
| 187 |
+
out.append("\\b")
|
| 188 |
+
elif code == 0x09:
|
| 189 |
+
out.append("\\t")
|
| 190 |
+
elif code == 0x0A:
|
| 191 |
+
out.append("\\n")
|
| 192 |
+
elif code == 0x0C:
|
| 193 |
+
out.append("\\f")
|
| 194 |
+
elif code == 0x0D:
|
| 195 |
+
out.append("\\r")
|
| 196 |
+
elif code < 0x20:
|
| 197 |
+
out.append(f"\\u00{code:02x}")
|
| 198 |
+
else:
|
| 199 |
+
out.append(ch)
|
| 200 |
+
out.append('"')
|
| 201 |
+
return "".join(out)
|
| 202 |
+
if isinstance(obj, (int, float)):
|
| 203 |
+
return "x" + f64_to_hex(float(obj))
|
| 204 |
+
if isinstance(obj, list):
|
| 205 |
+
return "[" + ",".join(sealed_form_text(item) for item in obj) + "]"
|
| 206 |
+
if isinstance(obj, dict):
|
| 207 |
+
keys = sorted(obj.keys(), key=lambda k: k.encode("utf-8"))
|
| 208 |
+
return "{" + ",".join(f"{sealed_form_text(k)}:{sealed_form_text(obj[k])}" for k in keys) + "}"
|
| 209 |
+
raise TypeError(f"Unsupported type in sealed_form_text: {type(obj)}")
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
def recompute_chain_seal_offline(
|
| 213 |
+
upstream_commitment_hex: str,
|
| 214 |
+
chain_obj: dict[str, Any],
|
| 215 |
+
downstream_seal_hex: str,
|
| 216 |
+
) -> str:
|
| 217 |
+
"""Recompute `chain_seal` offline."""
|
| 218 |
+
handed_entries = []
|
| 219 |
+
for h in chain_obj["handed"]:
|
| 220 |
+
val_json = json.dumps(h["value_hex"], separators=(",", ":"))
|
| 221 |
+
unit_json = "null" if h["unit"] is None else sealed_form_text(h["unit"])
|
| 222 |
+
entry = (
|
| 223 |
+
f'{{"from":{sealed_form_text(h["from"])},'
|
| 224 |
+
f'"to":{sealed_form_text(h["to"])},'
|
| 225 |
+
f'"unit":{unit_json},'
|
| 226 |
+
f'"value_hex":{val_json}}}'
|
| 227 |
+
)
|
| 228 |
+
handed_entries.append(entry)
|
| 229 |
+
coupling_json = "null" if chain_obj["coupling"] is None else sealed_form_text(chain_obj["coupling"])
|
| 230 |
+
middle = (
|
| 231 |
+
f'{{"kind":{sealed_form_text(chain_obj["kind"])},'
|
| 232 |
+
f'"coupling":{coupling_json},'
|
| 233 |
+
f'"handed":[{",".join(handed_entries)}]}}'
|
| 234 |
+
)
|
| 235 |
+
payload = (upstream_commitment_hex + middle + downstream_seal_hex).encode("utf-8")
|
| 236 |
+
return hashlib.sha384(payload).hexdigest()
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
def run_genesis_seal_cli(subcommand: str, payload_text: str, seal_bin: str | None = None) -> tuple[bool, str]:
|
| 240 |
+
"""Invoke frozen `genesis_seal` binary (`verify-run` or `verify-chain`) on a temporary JSON file."""
|
| 241 |
+
exe = resolve_seal_bin(seal_bin)
|
| 242 |
+
with tempfile.NamedTemporaryFile("w", suffix=".json", encoding="utf-8", delete=False) as tf:
|
| 243 |
+
tf.write(payload_text)
|
| 244 |
+
tmp_path = tf.name
|
| 245 |
+
try:
|
| 246 |
+
proc = subprocess.run(
|
| 247 |
+
[exe, subcommand, tmp_path],
|
| 248 |
+
capture_output=True,
|
| 249 |
+
text=True,
|
| 250 |
+
timeout=15,
|
| 251 |
+
)
|
| 252 |
+
combined = (proc.stdout + "\n" + proc.stderr).strip()
|
| 253 |
+
holds = proc.returncode == 0 and ("holds: true" in proc.stdout or '"holds":true' in proc.stdout.replace(" ", ""))
|
| 254 |
+
return holds, combined
|
| 255 |
+
finally:
|
| 256 |
+
try:
|
| 257 |
+
os.unlink(tmp_path)
|
| 258 |
+
except OSError:
|
| 259 |
+
pass
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
class McpStdioClient:
|
| 263 |
+
"""Deterministic MCP stdio client speaking JSON-RPC 2.0 to `mcp_stdio`."""
|
| 264 |
+
|
| 265 |
+
def __init__(self, engine_bin: str | None = None, timeout_s: float = 120.0):
|
| 266 |
+
self.engine_path = resolve_engine_bin(engine_bin)
|
| 267 |
+
self.timeout_s = timeout_s
|
| 268 |
+
cmd = shlex.split(self.engine_path) if " " in self.engine_path and not os.path.exists(self.engine_path) else [self.engine_path]
|
| 269 |
+
self.proc = subprocess.Popen(
|
| 270 |
+
cmd,
|
| 271 |
+
stdin=subprocess.PIPE,
|
| 272 |
+
stdout=subprocess.PIPE,
|
| 273 |
+
stderr=subprocess.DEVNULL,
|
| 274 |
+
)
|
| 275 |
+
self._id = 0
|
| 276 |
+
self.server_info: dict[str, Any] = {}
|
| 277 |
+
self.call_log: list[dict[str, Any]] = []
|
| 278 |
+
self._connect()
|
| 279 |
+
|
| 280 |
+
def _send(self, message: dict[str, Any]) -> dict[str, Any]:
|
| 281 |
+
assert self.proc.stdin is not None and self.proc.stdout is not None
|
| 282 |
+
line = json.dumps(message, separators=(",", ":")) + "\n"
|
| 283 |
+
self.proc.stdin.write(line.encode("utf-8"))
|
| 284 |
+
self.proc.stdin.flush()
|
| 285 |
+
if "id" not in message:
|
| 286 |
+
return {}
|
| 287 |
+
while True:
|
| 288 |
+
ready, _, _ = select.select([self.proc.stdout], [], [], self.timeout_s)
|
| 289 |
+
if not ready:
|
| 290 |
+
raise ZtpError(f"Timeout waiting for mcp_stdio after {self.timeout_s}s")
|
| 291 |
+
raw = self.proc.stdout.readline()
|
| 292 |
+
if not raw:
|
| 293 |
+
raise ZtpError("mcp_stdio closed stdout unexpectedly")
|
| 294 |
+
resp = json.loads(raw.decode("utf-8"))
|
| 295 |
+
if resp.get("id") == message["id"]:
|
| 296 |
+
if "error" in resp:
|
| 297 |
+
raise ZtpError(f"MCP error: {resp['error']}")
|
| 298 |
+
return resp.get("result", {})
|
| 299 |
+
|
| 300 |
+
def _connect(self) -> None:
|
| 301 |
+
self._id += 1
|
| 302 |
+
res = self._send(
|
| 303 |
+
{
|
| 304 |
+
"jsonrpc": "2.0",
|
| 305 |
+
"id": self._id,
|
| 306 |
+
"method": "initialize",
|
| 307 |
+
"params": {
|
| 308 |
+
"protocolVersion": "2025-06-18",
|
| 309 |
+
"capabilities": {},
|
| 310 |
+
"clientInfo": {"name": "genesis-lab-monolith", "version": "3.0.0"},
|
| 311 |
+
},
|
| 312 |
+
}
|
| 313 |
+
)
|
| 314 |
+
self.server_info = res.get("serverInfo") or {}
|
| 315 |
+
version = str(self.server_info.get("version", ""))
|
| 316 |
+
if not version.startswith(EXPECTED_ENGINE_VERSION_PREFIX):
|
| 317 |
+
raise ZtpError(f"Unexpected mcp_stdio version: {self.server_info!r}")
|
| 318 |
+
self._send({"jsonrpc": "2.0", "method": "notifications/initialized"})
|
| 319 |
+
|
| 320 |
+
def list_tools(self) -> list[dict[str, Any]]:
|
| 321 |
+
self._id += 1
|
| 322 |
+
res = self._send({"jsonrpc": "2.0", "id": self._id, "method": "tools/list", "params": {}})
|
| 323 |
+
return list(res.get("tools") or [])
|
| 324 |
+
|
| 325 |
+
def call_raw(self, tool_name: str, arguments: dict[str, Any] | None = None) -> tuple[str, bool]:
|
| 326 |
+
"""Call a tool and return `(raw_text, is_error)` preserving exact engine byte spelling."""
|
| 327 |
+
args = arguments if arguments is not None else {}
|
| 328 |
+
self._id += 1
|
| 329 |
+
result = self._send(
|
| 330 |
+
{
|
| 331 |
+
"jsonrpc": "2.0",
|
| 332 |
+
"id": self._id,
|
| 333 |
+
"method": "tools/call",
|
| 334 |
+
"params": {"name": tool_name, "arguments": args},
|
| 335 |
+
}
|
| 336 |
+
)
|
| 337 |
+
text = "".join(c.get("text", "") for c in (result.get("content") or []))
|
| 338 |
+
is_err = bool(result.get("isError"))
|
| 339 |
+
self.call_log.append({"tool": tool_name, "arguments": args, "is_error": is_err})
|
| 340 |
+
return text, is_err
|
| 341 |
+
|
| 342 |
+
def call_json(self, tool_name: str, arguments: dict[str, Any] | None = None) -> tuple[Any, str, bool]:
|
| 343 |
+
"""Call a tool and return `(parsed_or_str, raw_text, is_error)`."""
|
| 344 |
+
raw_text, is_err = self.call_raw(tool_name, arguments)
|
| 345 |
+
try:
|
| 346 |
+
parsed = json.loads(raw_text)
|
| 347 |
+
except ValueError:
|
| 348 |
+
parsed = raw_text
|
| 349 |
+
return parsed, raw_text, is_err
|
| 350 |
+
|
| 351 |
+
def close(self) -> None:
|
| 352 |
+
if self.proc.poll() is None:
|
| 353 |
+
self.proc.terminate()
|
| 354 |
+
try:
|
| 355 |
+
self.proc.wait(timeout=3)
|
| 356 |
+
except subprocess.TimeoutExpired:
|
| 357 |
+
self.proc.kill()
|
| 358 |
+
|
| 359 |
+
def __enter__(self) -> "McpStdioClient":
|
| 360 |
+
return self
|
| 361 |
+
|
| 362 |
+
def __exit__(self, exc_type: Any, exc: Any, tb: Any) -> None:
|
| 363 |
+
self.close()
|
preview/core/ztp_mcp_client.py
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Unprivileged Zero-Trust Physics Agent Client (`ztp_mcp_client.py`).
|
| 3 |
+
|
| 4 |
+
Safe to install world-readable (`0555`) inside unprivileged (`uid=1000`) rollout sandboxes:
|
| 5 |
+
contains zero grader internals, privileged credentials, or catalog identifiers.
|
| 6 |
+
|
| 7 |
+
Supports two modes over the privileged daemon Unix/TCP socket (`/run/ztp/ztp_mcp.sock`):
|
| 8 |
+
1. Standard MCP JSON-RPC 2.0 stdio server (pre-wired in `.mcp.json`, Harbor, and Inspect AI).
|
| 9 |
+
2. Direct CLI & Python helpers (`--list-tools`, `--budget`, `--call`, `call_tool`).
|
| 10 |
+
"""
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
|
| 13 |
+
import argparse
|
| 14 |
+
import json
|
| 15 |
+
import os
|
| 16 |
+
import socket
|
| 17 |
+
import sys
|
| 18 |
+
from typing import Any
|
| 19 |
+
|
| 20 |
+
DEFAULT_SOCKET = os.environ.get("ZTP_DAEMON_SOCKET", "/run/ztp/ztp_mcp.sock")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def _connect(endpoint: str, timeout_s: float = 120.0) -> socket.socket:
|
| 24 |
+
if ":" in endpoint and not endpoint.startswith("/") and not endpoint.startswith("."):
|
| 25 |
+
host, port_s = endpoint.rsplit(":", 1)
|
| 26 |
+
return socket.create_connection((host, int(port_s)), timeout=timeout_s)
|
| 27 |
+
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
| 28 |
+
sock.settimeout(timeout_s)
|
| 29 |
+
sock.connect(endpoint)
|
| 30 |
+
return sock
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def daemon_rpc(
|
| 34 |
+
method: str,
|
| 35 |
+
params: dict[str, Any] | None = None,
|
| 36 |
+
socket_path: str | None = None,
|
| 37 |
+
timeout_s: float = 120.0,
|
| 38 |
+
) -> dict[str, Any]:
|
| 39 |
+
"""Send one JSON-line request to `core/daemon.py` and return parsed JSON response."""
|
| 40 |
+
ep = socket_path or os.environ.get("ZTP_DAEMON_SOCKET", DEFAULT_SOCKET)
|
| 41 |
+
payload = (
|
| 42 |
+
json.dumps({"method": method, "params": params or {}}, separators=(",", ":")) + "\n"
|
| 43 |
+
).encode("utf-8")
|
| 44 |
+
with _connect(ep, timeout_s=timeout_s) as sock:
|
| 45 |
+
sock.sendall(payload)
|
| 46 |
+
chunks: list[bytes] = []
|
| 47 |
+
while True:
|
| 48 |
+
chunk = sock.recv(65536)
|
| 49 |
+
if not chunk:
|
| 50 |
+
break
|
| 51 |
+
chunks.append(chunk)
|
| 52 |
+
if chunk.endswith(b"\n"):
|
| 53 |
+
break
|
| 54 |
+
raw = b"".join(chunks).decode("utf-8").strip()
|
| 55 |
+
if not raw:
|
| 56 |
+
raise RuntimeError(f"Empty response from ZTP daemon at {ep}")
|
| 57 |
+
return json.loads(raw)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def list_tools(socket_path: str | None = None) -> list[dict[str, Any]]:
|
| 61 |
+
"""Return the list of MCP tool definitions exposed for this task."""
|
| 62 |
+
res = daemon_rpc("tools/list", {}, socket_path=socket_path)
|
| 63 |
+
return list(res.get("tools") or [])
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def call_tool_raw(
|
| 67 |
+
tool_name: str,
|
| 68 |
+
arguments: dict[str, Any] | None = None,
|
| 69 |
+
socket_path: str | None = None,
|
| 70 |
+
timeout_s: float = 120.0,
|
| 71 |
+
) -> tuple[str, bool]:
|
| 72 |
+
"""Call `tool_name` and return `(exact_raw_text, is_error)`."""
|
| 73 |
+
res = daemon_rpc(
|
| 74 |
+
"tools/call",
|
| 75 |
+
{"name": tool_name, "arguments": arguments or {}},
|
| 76 |
+
socket_path=socket_path,
|
| 77 |
+
timeout_s=timeout_s,
|
| 78 |
+
)
|
| 79 |
+
if res.get("ok") is False and "text" not in res:
|
| 80 |
+
# Daemon-side fault (internal exception, unknown RPC): surface it, never as an empty success.
|
| 81 |
+
return json.dumps({"ok": False, "error": str(res.get("error", "daemon error"))}, separators=(",", ":")), True
|
| 82 |
+
return str(res.get("text", "")), bool(res.get("isError", False))
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def call_tool(
|
| 86 |
+
tool_name: str,
|
| 87 |
+
arguments: dict[str, Any] | None = None,
|
| 88 |
+
socket_path: str | None = None,
|
| 89 |
+
timeout_s: float = 120.0,
|
| 90 |
+
) -> tuple[Any, str, bool]:
|
| 91 |
+
"""Call `tool_name` and return `(parsed_json_or_str, exact_raw_text, is_error)`."""
|
| 92 |
+
raw_text, is_err = call_tool_raw(tool_name, arguments, socket_path=socket_path, timeout_s=timeout_s)
|
| 93 |
+
try:
|
| 94 |
+
parsed = json.loads(raw_text)
|
| 95 |
+
except ValueError:
|
| 96 |
+
parsed = raw_text
|
| 97 |
+
return parsed, raw_text, is_err
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def run_mcp_stdio_loop(socket_path: str) -> int:
|
| 101 |
+
"""Speak MCP JSON-RPC 2.0 over stdin/stdout, forwarding to `socket_path`."""
|
| 102 |
+
for raw_line in sys.stdin.buffer:
|
| 103 |
+
line = raw_line.decode("utf-8", errors="replace").strip()
|
| 104 |
+
if not line:
|
| 105 |
+
continue
|
| 106 |
+
try:
|
| 107 |
+
msg = json.loads(line)
|
| 108 |
+
except ValueError:
|
| 109 |
+
continue
|
| 110 |
+
msg_id = msg.get("id")
|
| 111 |
+
method = msg.get("method", "")
|
| 112 |
+
if msg_id is None:
|
| 113 |
+
continue
|
| 114 |
+
|
| 115 |
+
try:
|
| 116 |
+
if method in ("initialize", "server/discover"):
|
| 117 |
+
req_params = msg.get("params") or {}
|
| 118 |
+
proto = req_params.get("protocolVersion") or "2025-06-18"
|
| 119 |
+
resp: dict[str, Any] = {
|
| 120 |
+
"jsonrpc": "2.0",
|
| 121 |
+
"id": msg_id,
|
| 122 |
+
"result": {
|
| 123 |
+
"protocolVersion": proto,
|
| 124 |
+
"capabilities": {"tools": {}},
|
| 125 |
+
"serverInfo": {"name": "zero_trust_physics", "version": "3.0.0"},
|
| 126 |
+
},
|
| 127 |
+
}
|
| 128 |
+
elif method == "ping":
|
| 129 |
+
resp = {"jsonrpc": "2.0", "id": msg_id, "result": {}}
|
| 130 |
+
elif method == "tools/list":
|
| 131 |
+
tools = list_tools(socket_path=socket_path)
|
| 132 |
+
resp = {"jsonrpc": "2.0", "id": msg_id, "result": {"tools": tools}}
|
| 133 |
+
elif method == "tools/call":
|
| 134 |
+
p = msg.get("params") or {}
|
| 135 |
+
tname = str(p.get("name", ""))
|
| 136 |
+
targs = p.get("arguments") or {}
|
| 137 |
+
if not isinstance(targs, dict):
|
| 138 |
+
targs = {}
|
| 139 |
+
raw_text, is_err = call_tool_raw(tname, targs, socket_path=socket_path)
|
| 140 |
+
resp = {
|
| 141 |
+
"jsonrpc": "2.0",
|
| 142 |
+
"id": msg_id,
|
| 143 |
+
"result": {
|
| 144 |
+
"content": [{"type": "text", "text": raw_text}],
|
| 145 |
+
"isError": is_err,
|
| 146 |
+
},
|
| 147 |
+
}
|
| 148 |
+
else:
|
| 149 |
+
resp = {
|
| 150 |
+
"jsonrpc": "2.0",
|
| 151 |
+
"id": msg_id,
|
| 152 |
+
"error": {"code": -32601, "message": f"Method not found: {method}"},
|
| 153 |
+
}
|
| 154 |
+
except Exception as exc:
|
| 155 |
+
resp = {
|
| 156 |
+
"jsonrpc": "2.0",
|
| 157 |
+
"id": msg_id,
|
| 158 |
+
"result": {
|
| 159 |
+
"content": [{"type": "text", "text": f"Daemon transport error: {exc}"}],
|
| 160 |
+
"isError": True,
|
| 161 |
+
},
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
sys.stdout.write(json.dumps(resp, separators=(",", ":")) + "\n")
|
| 165 |
+
sys.stdout.flush()
|
| 166 |
+
return 0
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
def main() -> int:
|
| 170 |
+
parser = argparse.ArgumentParser(description="Zero-Trust Physics Unprivileged MCP Client & CLI")
|
| 171 |
+
parser.add_argument("--socket", default=DEFAULT_SOCKET, help="Unix socket path or host:port")
|
| 172 |
+
parser.add_argument("--list-tools", action="store_true", help="Print available tools JSON and exit")
|
| 173 |
+
parser.add_argument("--budget", action="store_true", help="Print remaining discovery/sim call budget and exit")
|
| 174 |
+
parser.add_argument("--call", metavar="TOOL_NAME", default=None, help="Call a single tool and print raw response")
|
| 175 |
+
parser.add_argument("--args", default="{}", help="JSON arguments string for --call (or use positional JSON)")
|
| 176 |
+
parser.add_argument("--args-file", default=None, help="Path to JSON file containing tool arguments for --call")
|
| 177 |
+
parser.add_argument("positional_args", nargs="?", default=None, help="Optional positional JSON arguments for --call")
|
| 178 |
+
parser.add_argument("--ping", action="store_true", help="Check the daemon socket answers (no ledger entry) and exit")
|
| 179 |
+
args = parser.parse_args()
|
| 180 |
+
|
| 181 |
+
if args.ping:
|
| 182 |
+
res = daemon_rpc("ping", {}, socket_path=args.socket, timeout_s=5.0)
|
| 183 |
+
return 0 if res.get("ok") else 1
|
| 184 |
+
|
| 185 |
+
if args.list_tools:
|
| 186 |
+
print(json.dumps(list_tools(socket_path=args.socket), indent=2))
|
| 187 |
+
return 0
|
| 188 |
+
|
| 189 |
+
if args.budget:
|
| 190 |
+
raw_text, is_err = call_tool_raw("budget_status", {}, socket_path=args.socket)
|
| 191 |
+
sys.stdout.write(raw_text + "\n")
|
| 192 |
+
return 1 if is_err else 0
|
| 193 |
+
|
| 194 |
+
if args.call is not None:
|
| 195 |
+
if args.args_file:
|
| 196 |
+
with open(args.args_file, "r", encoding="utf-8") as fh:
|
| 197 |
+
call_args = json.load(fh)
|
| 198 |
+
elif args.positional_args is not None:
|
| 199 |
+
call_args = json.loads(args.positional_args)
|
| 200 |
+
else:
|
| 201 |
+
call_args = json.loads(args.args)
|
| 202 |
+
raw_text, is_err = call_tool_raw(args.call, call_args, socket_path=args.socket)
|
| 203 |
+
sys.stdout.write(raw_text)
|
| 204 |
+
if not raw_text.endswith("\n"):
|
| 205 |
+
sys.stdout.write("\n")
|
| 206 |
+
sys.stdout.flush()
|
| 207 |
+
return 1 if is_err else 0
|
| 208 |
+
|
| 209 |
+
return run_mcp_stdio_loop(args.socket)
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
if __name__ == "__main__":
|
| 213 |
+
raise SystemExit(main())
|
preview/packs/foundry_flagship/.vault/foundry-001.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"case_id": "foundry-001-dev-00",
|
| 3 |
+
"hidden": {
|
| 4 |
+
"case_id_seed": 7407925114212473482,
|
| 5 |
+
"cold_bay_ambient_c": -8.397,
|
| 6 |
+
"entrained_air_fraction": 0.0052294,
|
| 7 |
+
"fouling_factor": 0.68687,
|
| 8 |
+
"grid_inverter_fraction": 0.31061,
|
| 9 |
+
"rested_bess_soc": 0.83336,
|
| 10 |
+
"temp_sensor_bias_k": -0.7304
|
| 11 |
+
},
|
| 12 |
+
"reference_ppa_ceiling_w": 10872.109311,
|
| 13 |
+
"task_id": "foundry-001"
|
| 14 |
+
}
|
preview/packs/foundry_flagship/.vault/foundry-002.json
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"acceptance_report": {
|
| 3 |
+
"all_corners_safe": true,
|
| 4 |
+
"corners": [
|
| 5 |
+
{
|
| 6 |
+
"containment_spill_liters": 0.0,
|
| 7 |
+
"corner_id": "C1_nominal_steady",
|
| 8 |
+
"effective_compute_w": 15483.0,
|
| 9 |
+
"inverter_tripped": false,
|
| 10 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 11 |
+
"min_bus_voltage_v": 44.7081155802071,
|
| 12 |
+
"min_grid_freq_hz": 59.9496522038011,
|
| 13 |
+
"optical_degraded": false,
|
| 14 |
+
"peak_hammer_pressure_pa": 919386.2002917527,
|
| 15 |
+
"peak_junction_temp_k": 331.2555747107456,
|
| 16 |
+
"pump_lambda_ratio": 1.9714087873844783,
|
| 17 |
+
"safe": true,
|
| 18 |
+
"tim_fatigue_cycles": 8520962782.783672
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"containment_spill_liters": 0.0,
|
| 22 |
+
"corner_id": "C2_pump_partial_coastdown",
|
| 23 |
+
"effective_compute_w": 15483.0,
|
| 24 |
+
"inverter_tripped": false,
|
| 25 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 26 |
+
"min_bus_voltage_v": 44.69339278442857,
|
| 27 |
+
"min_grid_freq_hz": 59.9141830240058,
|
| 28 |
+
"optical_degraded": false,
|
| 29 |
+
"peak_hammer_pressure_pa": 656491.1097375866,
|
| 30 |
+
"peak_junction_temp_k": 342.1263727282121,
|
| 31 |
+
"pump_lambda_ratio": 1.77333472386095,
|
| 32 |
+
"safe": true,
|
| 33 |
+
"tim_fatigue_cycles": 515391444.68353426
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"containment_spill_liters": 0.0,
|
| 37 |
+
"corner_id": "C3_ai_step_and_ibr_cloud_drop",
|
| 38 |
+
"effective_compute_w": 19818.24,
|
| 39 |
+
"inverter_tripped": false,
|
| 40 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 41 |
+
"min_bus_voltage_v": 43.60404838550543,
|
| 42 |
+
"min_grid_freq_hz": 59.73669135760274,
|
| 43 |
+
"optical_degraded": false,
|
| 44 |
+
"peak_hammer_pressure_pa": 912502.978193675,
|
| 45 |
+
"peak_junction_temp_k": 344.41946427933874,
|
| 46 |
+
"pump_lambda_ratio": 1.8264004198947417,
|
| 47 |
+
"safe": true,
|
| 48 |
+
"tim_fatigue_cycles": 313441126.3507564
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"containment_spill_liters": 0.0,
|
| 52 |
+
"corner_id": "C4_cold_soak_high_viscosity_start",
|
| 53 |
+
"effective_compute_w": 14708.849999999999,
|
| 54 |
+
"inverter_tripped": false,
|
| 55 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 56 |
+
"min_bus_voltage_v": 44.777511747507596,
|
| 57 |
+
"min_grid_freq_hz": 59.85767222130035,
|
| 58 |
+
"optical_degraded": false,
|
| 59 |
+
"peak_hammer_pressure_pa": 1118061.123372792,
|
| 60 |
+
"peak_junction_temp_k": 294.1987240592471,
|
| 61 |
+
"pump_lambda_ratio": 9.29250388863628,
|
| 62 |
+
"safe": true,
|
| 63 |
+
"tim_fatigue_cycles": 2225989834884234.2
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"containment_spill_liters": 0.0,
|
| 67 |
+
"corner_id": "C5_hot_return_chf_margin",
|
| 68 |
+
"effective_compute_w": 16516.279688624432,
|
| 69 |
+
"inverter_tripped": false,
|
| 70 |
+
"linear_transmissibility": 0.3354738337223406,
|
| 71 |
+
"min_bus_voltage_v": 44.41451681023304,
|
| 72 |
+
"min_grid_freq_hz": 59.8876516599723,
|
| 73 |
+
"optical_degraded": false,
|
| 74 |
+
"peak_hammer_pressure_pa": 1050112.5892408816,
|
| 75 |
+
"peak_junction_temp_k": 348.149417521281,
|
| 76 |
+
"pump_lambda_ratio": 1.3658586200498728,
|
| 77 |
+
"safe": true,
|
| 78 |
+
"tim_fatigue_cycles": 147202587.69284323
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"containment_spill_liters": 0.0,
|
| 82 |
+
"corner_id": "C6_adverse_2sigma_sensor_underread",
|
| 83 |
+
"effective_compute_w": 17805.449999999997,
|
| 84 |
+
"inverter_tripped": false,
|
| 85 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 86 |
+
"min_bus_voltage_v": 44.189249957400214,
|
| 87 |
+
"min_grid_freq_hz": 59.89640790054499,
|
| 88 |
+
"optical_degraded": false,
|
| 89 |
+
"peak_hammer_pressure_pa": 802718.0757486501,
|
| 90 |
+
"peak_junction_temp_k": 348.05120358788645,
|
| 91 |
+
"pump_lambda_ratio": 1.5150441376180908,
|
| 92 |
+
"safe": true,
|
| 93 |
+
"tim_fatigue_cycles": 150045369.24153253
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"containment_spill_liters": 3.6549308092499997,
|
| 97 |
+
"corner_id": "C7_fast_isolation_valve_hammer",
|
| 98 |
+
"effective_compute_w": 15483.0,
|
| 99 |
+
"inverter_tripped": false,
|
| 100 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 101 |
+
"min_bus_voltage_v": 44.684993752800736,
|
| 102 |
+
"min_grid_freq_hz": 59.93153260750568,
|
| 103 |
+
"optical_degraded": false,
|
| 104 |
+
"peak_hammer_pressure_pa": 2519676.29268971,
|
| 105 |
+
"peak_junction_temp_k": 330.42846851373196,
|
| 106 |
+
"pump_lambda_ratio": 1.8491052106483776,
|
| 107 |
+
"safe": true,
|
| 108 |
+
"tim_fatigue_cycles": 10965457936.678408
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"containment_spill_liters": 0.0,
|
| 112 |
+
"corner_id": "C8_aged_1000h_fouled_envelope",
|
| 113 |
+
"effective_compute_w": 16721.64,
|
| 114 |
+
"inverter_tripped": false,
|
| 115 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 116 |
+
"min_bus_voltage_v": 44.35300008223783,
|
| 117 |
+
"min_grid_freq_hz": 59.8427469467269,
|
| 118 |
+
"optical_degraded": false,
|
| 119 |
+
"peak_hammer_pressure_pa": 1047188.3026758053,
|
| 120 |
+
"peak_junction_temp_k": 344.12222335300373,
|
| 121 |
+
"pump_lambda_ratio": 1.4083612727523622,
|
| 122 |
+
"safe": true,
|
| 123 |
+
"tim_fatigue_cycles": 333815336.0305116
|
| 124 |
+
}
|
| 125 |
+
],
|
| 126 |
+
"net_ppa_efficiency_w": 10418.136299769496
|
| 127 |
+
},
|
| 128 |
+
"case_id": "foundry-002-dev-00",
|
| 129 |
+
"commissioning_state": {
|
| 130 |
+
"cold_bay_ambient_c": -17.492,
|
| 131 |
+
"entrained_air_fraction": 0.0008101,
|
| 132 |
+
"fouling_factor": 0.33038,
|
| 133 |
+
"grid_inverter_fraction": 0.31678,
|
| 134 |
+
"rested_bess_soc": 0.56503,
|
| 135 |
+
"temp_sensor_bias_k": -4.3779
|
| 136 |
+
},
|
| 137 |
+
"fault_class": "sensor_drift",
|
| 138 |
+
"hidden": {
|
| 139 |
+
"case_id_seed": 4452605059013767403,
|
| 140 |
+
"cold_bay_ambient_c": -17.492,
|
| 141 |
+
"entrained_air_fraction": 0.0008101,
|
| 142 |
+
"fouling_factor": 0.33038,
|
| 143 |
+
"grid_inverter_fraction": 0.31678,
|
| 144 |
+
"rested_bess_soc": 0.5598,
|
| 145 |
+
"temp_sensor_bias_k": -8.6216
|
| 146 |
+
},
|
| 147 |
+
"incumbent_controller": {
|
| 148 |
+
"bess_emergency_current_a": 3.293198,
|
| 149 |
+
"min_compute_fraction": 0.7244,
|
| 150 |
+
"surge_flow_multiplier": 1.1575,
|
| 151 |
+
"throttle_gain_w_per_k": 546.5,
|
| 152 |
+
"throttle_onset_measured_k": 340.2621
|
| 153 |
+
},
|
| 154 |
+
"incumbent_design": {
|
| 155 |
+
"bess_parallel_strings": 342,
|
| 156 |
+
"clamp_preload_mpa": 4.2,
|
| 157 |
+
"fin_area_multiplier": 5.5,
|
| 158 |
+
"governor_droop": 4.35,
|
| 159 |
+
"mount_active_kp": 1738.0,
|
| 160 |
+
"mount_damping_ratio": 0.23,
|
| 161 |
+
"mount_natural_freq_hz": 25.279989,
|
| 162 |
+
"nominal_flow_m3_s": 0.0254,
|
| 163 |
+
"parallel_feeder_legs": 20,
|
| 164 |
+
"pipe_diameter_m": 0.072,
|
| 165 |
+
"pipe_length_m": 16.5,
|
| 166 |
+
"pll_bandwidth_per_s": 18.70653,
|
| 167 |
+
"pump_speed_rpm": 2984.861769,
|
| 168 |
+
"supply_pressure_pa": 445364.2,
|
| 169 |
+
"sustained_compute_target_w": 15483.0,
|
| 170 |
+
"tim_thickness_um": 52.32,
|
| 171 |
+
"valve_ramp_s": 0.609079
|
| 172 |
+
},
|
| 173 |
+
"memory": {
|
| 174 |
+
"accumulated_wear_factor": 0.0771,
|
| 175 |
+
"current_bess_soc": 0.5598,
|
| 176 |
+
"current_coolant_temp_c": 24.379,
|
| 177 |
+
"probes_used": 0
|
| 178 |
+
},
|
| 179 |
+
"reference_ppa_ceiling_w": 10219.659399,
|
| 180 |
+
"task_id": "foundry-002"
|
| 181 |
+
}
|
preview/packs/foundry_flagship/pack_manifest.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pack_id": "foundry_flagship",
|
| 3 |
+
"version": "1.0.0-preview",
|
| 4 |
+
"name": "Zero-Trust Physics Foundry Flagship \u2014 Public Evaluation Preview (dev-00 only)",
|
| 5 |
+
"foundry_engine_version": "genesis_foundry_v0.1.0",
|
| 6 |
+
"seal_rule": "zero-trust-physics/seal/v2",
|
| 7 |
+
"runtime": {
|
| 8 |
+
"engine": {
|
| 9 |
+
"name": "ztp_foundry_mcp",
|
| 10 |
+
"bin_root": "bin"
|
| 11 |
+
},
|
| 12 |
+
"vault_bins": [
|
| 13 |
+
{
|
| 14 |
+
"name": "ztp_foundry_preview_verifier",
|
| 15 |
+
"bin_root": "bin"
|
| 16 |
+
}
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
"active_models": [
|
| 20 |
+
"die_coldplate_fe",
|
| 21 |
+
"cdu_loop_moc",
|
| 22 |
+
"rack_power_pll",
|
| 23 |
+
"chassis_mount_duffing"
|
| 24 |
+
],
|
| 25 |
+
"public_models": [
|
| 26 |
+
"die_coldplate_fe",
|
| 27 |
+
"cdu_loop_moc",
|
| 28 |
+
"rack_power_pll",
|
| 29 |
+
"chassis_mount_duffing"
|
| 30 |
+
],
|
| 31 |
+
"tasks": [
|
| 32 |
+
{
|
| 33 |
+
"task_id": "foundry-001",
|
| 34 |
+
"spine": "Foundry Chassis 1 (Liquid-Cooled AI Rack, Microgrid & Optical Backplane)",
|
| 35 |
+
"archetype": "SYN",
|
| 36 |
+
"status": "active",
|
| 37 |
+
"rel_path": "tasks/foundry-001",
|
| 38 |
+
"title": "Stateful 3-Probe Rack Commissioning & 8-Corner Electro-Thermo-Fluid-Optical Co-Synthesis",
|
| 39 |
+
"budget": {
|
| 40 |
+
"max_discovery_calls": 60,
|
| 41 |
+
"max_sim_calls": 36,
|
| 42 |
+
"max_stateful_probes": 3
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"task_id": "foundry-002",
|
| 47 |
+
"spine": "Foundry Chassis 1 (Liquid-Cooled AI Rack, Microgrid & Optical Backplane)",
|
| 48 |
+
"archetype": "FLT",
|
| 49 |
+
"status": "active",
|
| 50 |
+
"rel_path": "tasks/foundry-002",
|
| 51 |
+
"title": "Live Fault Forensics & Safe Re-Trim of an In-Service Rack",
|
| 52 |
+
"budget": {
|
| 53 |
+
"max_discovery_calls": 40,
|
| 54 |
+
"max_sim_calls": 24,
|
| 55 |
+
"max_stateful_probes": 2
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
]
|
| 59 |
+
}
|
preview/packs/foundry_flagship/tasks/foundry-001/evaluator.py
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Zero-Bureaucracy 8-Corner Recompute Evaluator for `foundry-001`.
|
| 2 |
+
|
| 3 |
+
Validates the flat 3-key submission (`task_id`, `design`, `controller`) with ZERO
|
| 4 |
+
hex-seal copy-paste overhead, recovers the post-commissioning `CommissioningTwinMemory`
|
| 5 |
+
from the root SHA-384 chained `call_ledger.jsonl`, and executes `ztp_foundry_verifier grade`
|
| 6 |
+
against the vault's hidden specimen and true specimen PPA ceiling.
|
| 7 |
+
"""
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import math
|
| 11 |
+
import os
|
| 12 |
+
from typing import Any
|
| 13 |
+
|
| 14 |
+
from core.plugin_base import TaskEvaluatorContext
|
| 15 |
+
from core.vault_bins import run_vault_bin
|
| 16 |
+
|
| 17 |
+
TASK_ID = "foundry-001"
|
| 18 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 19 |
+
VERIFIER_BIN = "ztp_foundry_preview_verifier"
|
| 20 |
+
VERIFIER_BIN_ROOT = "bin"
|
| 21 |
+
|
| 22 |
+
DESIGN_SPECS: dict[str, tuple[float, float, bool]] = {
|
| 23 |
+
"pipe_length_m": (12.0, 80.0, False),
|
| 24 |
+
"pipe_diameter_m": (0.025, 0.140, False),
|
| 25 |
+
"supply_pressure_pa": (3.0e5, 2.4e6, False),
|
| 26 |
+
"nominal_flow_m3_s": (0.004, 0.045, False),
|
| 27 |
+
"pump_speed_rpm": (900.0, 5600.0, False),
|
| 28 |
+
"valve_ramp_s": (0.05, 2.50, False),
|
| 29 |
+
"fin_area_multiplier": (1.0, 5.5, False),
|
| 30 |
+
"tim_thickness_um": (20.0, 200.0, False),
|
| 31 |
+
"clamp_preload_mpa": (1.0, 18.0, False),
|
| 32 |
+
"pll_bandwidth_per_s": (4.0, 75.0, False),
|
| 33 |
+
"governor_droop": (4.0, 28.0, False),
|
| 34 |
+
"bess_parallel_strings": (40, 1200, True),
|
| 35 |
+
"parallel_feeder_legs": (8, 96, True),
|
| 36 |
+
"mount_natural_freq_hz": (5.0, 80.0, False),
|
| 37 |
+
"mount_damping_ratio": (0.05, 1.20, False),
|
| 38 |
+
"mount_active_kp": (0.0, 25000.0, False),
|
| 39 |
+
"sustained_compute_target_w": (3000.0, 22000.0, False),
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
CTRL_SPECS: dict[str, tuple[float, float, bool]] = {
|
| 43 |
+
"throttle_onset_measured_k": (315.0, 370.0, False),
|
| 44 |
+
"throttle_gain_w_per_k": (0.0, 1200.0, False),
|
| 45 |
+
"min_compute_fraction": (0.35, 1.00, False),
|
| 46 |
+
"bess_emergency_current_a": (0.5, 14.0, False),
|
| 47 |
+
"surge_flow_multiplier": (1.00, 1.50, False),
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def _is_finite_num(v: Any) -> bool:
|
| 52 |
+
return (not isinstance(v, bool)) and isinstance(v, (int, float)) and math.isfinite(float(v))
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def validate_schema(sub: Any) -> tuple[bool, list[str], list[str]]:
|
| 56 |
+
"""Validate flat 3-key submission (`task_id`, `design`, `controller`) with zero seals."""
|
| 57 |
+
if not isinstance(sub, dict):
|
| 58 |
+
return False, ["Submission root must be a JSON object."], []
|
| 59 |
+
allowed = {"task_id", "design", "controller"}
|
| 60 |
+
extra = sorted(set(sub.keys()) - allowed)
|
| 61 |
+
if extra:
|
| 62 |
+
return False, [f"Unexpected top-level keys {extra}; allowed keys are {sorted(allowed)}."], []
|
| 63 |
+
|
| 64 |
+
errs: list[str] = []
|
| 65 |
+
if sub.get("task_id") != TASK_ID:
|
| 66 |
+
errs.append(f"Expected task_id={TASK_ID!r}, got {sub.get('task_id')!r}.")
|
| 67 |
+
|
| 68 |
+
design = sub.get("design")
|
| 69 |
+
if not isinstance(design, dict):
|
| 70 |
+
errs.append("Field 'design' must be a JSON object containing the 17 hardware parameters.")
|
| 71 |
+
else:
|
| 72 |
+
extra_d = sorted(set(design.keys()) - set(DESIGN_SPECS.keys()))
|
| 73 |
+
if extra_d:
|
| 74 |
+
errs.append(f"Unexpected design keys: {extra_d}.")
|
| 75 |
+
for k, (lo, hi, is_int) in DESIGN_SPECS.items():
|
| 76 |
+
if k not in design:
|
| 77 |
+
errs.append(f"Missing required field 'design.{k}'.")
|
| 78 |
+
elif not _is_finite_num(design[k]):
|
| 79 |
+
errs.append(f"Field 'design.{k}' must be a finite number.")
|
| 80 |
+
else:
|
| 81 |
+
val = float(design[k])
|
| 82 |
+
if is_int and abs(val - round(val)) > 1e-9:
|
| 83 |
+
errs.append(f"Field 'design.{k}' must be an integer in [{int(lo)}, {int(hi)}], got {design[k]!r}.")
|
| 84 |
+
elif not (lo <= val <= hi):
|
| 85 |
+
errs.append(f"Field 'design.{k}'={val} outside declared bounds [{lo}, {hi}].")
|
| 86 |
+
|
| 87 |
+
ctrl = sub.get("controller")
|
| 88 |
+
if not isinstance(ctrl, dict):
|
| 89 |
+
errs.append("Field 'controller' must be a JSON object containing the 5 controller parameters.")
|
| 90 |
+
else:
|
| 91 |
+
extra_c = sorted(set(ctrl.keys()) - set(CTRL_SPECS.keys()))
|
| 92 |
+
if extra_c:
|
| 93 |
+
errs.append(f"Unexpected controller keys: {extra_c}.")
|
| 94 |
+
for k, (lo, hi, _is_int) in CTRL_SPECS.items():
|
| 95 |
+
if k not in ctrl:
|
| 96 |
+
errs.append(f"Missing required field 'controller.{k}'.")
|
| 97 |
+
elif not _is_finite_num(ctrl[k]):
|
| 98 |
+
errs.append(f"Field 'controller.{k}' must be a finite number.")
|
| 99 |
+
else:
|
| 100 |
+
val = float(ctrl[k])
|
| 101 |
+
if not (lo <= val <= hi):
|
| 102 |
+
errs.append(f"Field 'controller.{k}'={val} outside declared bounds [{lo}, {hi}].")
|
| 103 |
+
|
| 104 |
+
# Return empty seal_tokens list -> zero hex-seal copy-paste required!
|
| 105 |
+
return len(errs) == 0, errs, []
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def _recover_carried_memory(ledger_records: list[dict[str, Any]], hidden: dict[str, Any]) -> dict[str, Any]:
|
| 109 |
+
from plant import initial_memory_from_hidden # type: ignore
|
| 110 |
+
|
| 111 |
+
mem = initial_memory_from_hidden(hidden)
|
| 112 |
+
for rec in ledger_records:
|
| 113 |
+
if rec.get("is_error") or rec.get("budget_rejected"):
|
| 114 |
+
continue
|
| 115 |
+
ev = rec.get("plugin_event")
|
| 116 |
+
if isinstance(ev, dict) and ev.get("kind") == "foundry_probe":
|
| 117 |
+
pm = ev.get("post_probe_memory")
|
| 118 |
+
if isinstance(pm, dict):
|
| 119 |
+
mem = dict(pm)
|
| 120 |
+
return mem
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
def evaluate(sub: dict[str, Any], ctx: TaskEvaluatorContext) -> dict[str, Any]:
|
| 124 |
+
if not ctx.vault or "hidden" not in ctx.vault or "reference_ppa_ceiling_w" not in ctx.vault:
|
| 125 |
+
raise RuntimeError("Missing hidden specimen or reference_ppa_ceiling_w in root task vault.")
|
| 126 |
+
|
| 127 |
+
hidden = dict(ctx.vault["hidden"])
|
| 128 |
+
ref_ppa = float(ctx.vault["reference_ppa_ceiling_w"])
|
| 129 |
+
carried_mem = _recover_carried_memory(ctx.ledger_records, hidden)
|
| 130 |
+
|
| 131 |
+
norm_design: dict[str, Any] = {}
|
| 132 |
+
for k, (_lo, _hi, is_int) in DESIGN_SPECS.items():
|
| 133 |
+
v = float(sub["design"][k])
|
| 134 |
+
norm_design[k] = int(round(v)) if is_int else v
|
| 135 |
+
norm_ctrl: dict[str, Any] = {k: float(sub["controller"][k]) for k in CTRL_SPECS}
|
| 136 |
+
|
| 137 |
+
envelope = {
|
| 138 |
+
"hidden": hidden,
|
| 139 |
+
"memory": carried_mem,
|
| 140 |
+
"design": norm_design,
|
| 141 |
+
"controller": norm_ctrl,
|
| 142 |
+
"reference_ppa_ceiling_w": ref_ppa,
|
| 143 |
+
}
|
| 144 |
+
out = run_vault_bin(
|
| 145 |
+
VERIFIER_BIN,
|
| 146 |
+
["grade"],
|
| 147 |
+
envelope,
|
| 148 |
+
bin_root=VERIFIER_BIN_ROOT,
|
| 149 |
+
timeout_s=60.0,
|
| 150 |
+
)
|
| 151 |
+
rep = out["parsed"]
|
| 152 |
+
binary = int(rep["binary_reward"])
|
| 153 |
+
shaped = float(rep["shaped_score"])
|
| 154 |
+
all_safe = bool(rep["all_corners_safe"])
|
| 155 |
+
ppa_w = float(rep["net_ppa_efficiency_w"])
|
| 156 |
+
ppa_ratio = float(rep["ppa_ratio"])
|
| 157 |
+
suite_seal = str(rep.get("suite_seal_sha384") or "")
|
| 158 |
+
if len(suite_seal) != 96 or any(ch not in "0123456789abcdef" for ch in suite_seal):
|
| 159 |
+
raise RuntimeError(f"{TASK_ID}: verifier returned invalid or missing 96-hex suite_seal_sha384")
|
| 160 |
+
|
| 161 |
+
if binary == 1:
|
| 162 |
+
autopsy = (
|
| 163 |
+
f"PASS [SHA-384 suite_seal={suite_seal[:16]}...]: 8/8 stress corners safe on post-commissioning unit "
|
| 164 |
+
f"(probes_used={rep['carried_probes_used']}, carried_soc={rep['carried_bess_soc']:.4f}, "
|
| 165 |
+
f"warmup={rep['carried_coolant_warmup_c']:.2f} C, wear={rep['carried_wear_factor']:.4f}); "
|
| 166 |
+
f"net_ppa={ppa_w:.1f} W / {ref_ppa:.1f} W ({ppa_ratio * 100.0:.2f}% >= 92.00%)."
|
| 167 |
+
)
|
| 168 |
+
reason = "none"
|
| 169 |
+
elif not all_safe:
|
| 170 |
+
failed = [
|
| 171 |
+
f"{c['corner_id']}: {', '.join(c['violations'])}"
|
| 172 |
+
for c in rep["corners"]
|
| 173 |
+
if not c["safe"]
|
| 174 |
+
]
|
| 175 |
+
autopsy = (
|
| 176 |
+
f"PHYSICS_VIOLATION [SHA-384 suite_seal={suite_seal[:16]}...]: Passed {rep['corners_passed']}/8 corners "
|
| 177 |
+
f"on post-commissioning unit (probes_used={rep['carried_probes_used']}); breaches -> "
|
| 178 |
+
+ " | ".join(failed[:4])
|
| 179 |
+
)
|
| 180 |
+
reason = "physics_violation"
|
| 181 |
+
else:
|
| 182 |
+
autopsy = (
|
| 183 |
+
f"PHYSICS_VIOLATION [SHA-384 suite_seal={suite_seal[:16]}...]: All 8/8 corners safe, but "
|
| 184 |
+
f"net_ppa={ppa_w:.1f} W achieved {ppa_ratio * 100.0:.2f}% < 92.00% of specimen ceiling ({ref_ppa:.1f} W)."
|
| 185 |
+
)
|
| 186 |
+
reason = "physics_violation"
|
| 187 |
+
|
| 188 |
+
return {
|
| 189 |
+
"binary_reward": binary,
|
| 190 |
+
"shaped_score": shaped,
|
| 191 |
+
"failure_reason": reason,
|
| 192 |
+
"all_required_models_present": len(ctx.ledger_records) > 0,
|
| 193 |
+
"autopsy": autopsy,
|
| 194 |
+
"stage_breakdown": rep,
|
| 195 |
+
}
|
preview/packs/foundry_flagship/tasks/foundry-001/plant.py
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Privileged Stateful Commissioning Plugin for `foundry-001`.
|
| 2 |
+
|
| 3 |
+
Executes inside root-owned `core/daemon.py`, calling `/root/ztp_bin/ztp_foundry_preview_verifier`
|
| 4 |
+
(or host `foundry_engine/bin/<arch>/ztp_foundry_verifier`) to run up to `3` non-resetting
|
| 5 |
+
commissioning probes on the vault specimen and record the mutated `CommissioningTwinMemory`
|
| 6 |
+
inside `call_ledger.jsonl` (`plugin_event`) so `evaluator.py` grades the exact post-probe unit.
|
| 7 |
+
"""
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import json
|
| 11 |
+
import os
|
| 12 |
+
import platform
|
| 13 |
+
import subprocess
|
| 14 |
+
import tempfile
|
| 15 |
+
from typing import Any
|
| 16 |
+
|
| 17 |
+
from core.plugin_base import StatefulPlantPlugin
|
| 18 |
+
|
| 19 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 20 |
+
PACK_DIR = os.path.dirname(os.path.dirname(HERE))
|
| 21 |
+
LAB_ROOT = os.path.dirname(os.path.dirname(PACK_DIR))
|
| 22 |
+
|
| 23 |
+
MAX_STATEFUL_PROBES = 3
|
| 24 |
+
STANDBY_HALL_COOLANT_C = 22.0
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def resolve_foundry_verifier_bin() -> str:
|
| 28 |
+
env_bin = os.environ.get("ZTP_FOUNDRY_VERIFIER")
|
| 29 |
+
if env_bin and os.path.isfile(env_bin):
|
| 30 |
+
return env_bin
|
| 31 |
+
container_bin = "/root/ztp_bin/ztp_foundry_preview_verifier"
|
| 32 |
+
if os.path.isfile(container_bin):
|
| 33 |
+
return container_bin
|
| 34 |
+
sys_name = platform.system()
|
| 35 |
+
mach = platform.machine()
|
| 36 |
+
if sys_name == "Darwin" and mach == "arm64":
|
| 37 |
+
arch = "macos-arm64"
|
| 38 |
+
elif sys_name == "Linux" and mach in ("aarch64", "arm64"):
|
| 39 |
+
arch = "linux-arm64"
|
| 40 |
+
elif sys_name == "Linux" and mach in ("x86_64", "amd64"):
|
| 41 |
+
arch = "linux-amd64"
|
| 42 |
+
else:
|
| 43 |
+
raise RuntimeError(f"Unsupported platform: {sys_name} {mach}")
|
| 44 |
+
return os.path.join(LAB_ROOT, "bin", arch, "ztp_foundry_preview_verifier")
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def initial_memory_from_hidden(hidden: dict[str, Any]) -> dict[str, Any]:
|
| 48 |
+
soc = max(0.06, min(0.98, float(hidden["rested_bess_soc"])))
|
| 49 |
+
return {
|
| 50 |
+
"probes_used": 0,
|
| 51 |
+
"current_bess_soc": soc,
|
| 52 |
+
"current_coolant_temp_c": STANDBY_HALL_COOLANT_C,
|
| 53 |
+
"accumulated_wear_factor": 0.0,
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
class FoundryCommissioningPlugin(StatefulPlantPlugin):
|
| 58 |
+
"""Non-resetting 3-probe hardware commissioning bench for `foundry-001`."""
|
| 59 |
+
|
| 60 |
+
def __init__(self, task_spec: dict[str, Any], engine_client: Any, vault: dict[str, Any] | None = None):
|
| 61 |
+
super().__init__(task_spec, engine_client, vault)
|
| 62 |
+
if not self.vault or "hidden" not in self.vault:
|
| 63 |
+
raise RuntimeError("Missing root vault hidden specimen state for foundry-001.")
|
| 64 |
+
self.hidden: dict[str, Any] = dict(self.vault["hidden"])
|
| 65 |
+
self.memory: dict[str, Any] = initial_memory_from_hidden(self.hidden)
|
| 66 |
+
self.verifier_bin = resolve_foundry_verifier_bin()
|
| 67 |
+
self.spec_sheet_path = os.path.join(HERE, "workspace_files", "SPEC_SHEET.md")
|
| 68 |
+
|
| 69 |
+
def tool_definitions(self) -> list[dict[str, Any]]:
|
| 70 |
+
return [
|
| 71 |
+
{
|
| 72 |
+
"name": "describe_plant",
|
| 73 |
+
"description": (
|
| 74 |
+
"Return the complete public commissioning bench ratings, stateful carry-over equations, "
|
| 75 |
+
"8 stress-corner definitions, coupling equations, safety limits, and net-PPA formula "
|
| 76 |
+
"(counts toward discovery budget)."
|
| 77 |
+
),
|
| 78 |
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"name": "commission_probe",
|
| 82 |
+
"description": (
|
| 83 |
+
"Execute 1 stateful, non-resetting commissioning probe on the hidden rack specimen "
|
| 84 |
+
"(max 3 probes total; tracked separately from max_sim_calls; mutates unit BESS SOC, "
|
| 85 |
+
"coolant warmup, and wear carried into final 8-corner grading)."
|
| 86 |
+
),
|
| 87 |
+
"inputSchema": {
|
| 88 |
+
"type": "object",
|
| 89 |
+
"required": [
|
| 90 |
+
"flow_m3_s",
|
| 91 |
+
"valve_pulse_closure_s",
|
| 92 |
+
"heater_test_power_w",
|
| 93 |
+
"bess_test_current_a",
|
| 94 |
+
"duration_s",
|
| 95 |
+
],
|
| 96 |
+
"properties": {
|
| 97 |
+
"flow_m3_s": {"type": "number", "minimum": 0.002, "maximum": 0.015},
|
| 98 |
+
"valve_pulse_closure_s": {"type": "number", "minimum": 0.12, "maximum": 4.0},
|
| 99 |
+
"heater_test_power_w": {"type": "number", "minimum": 0.0, "maximum": 8000.0},
|
| 100 |
+
"bess_test_current_a": {"type": "number", "minimum": 0.0, "maximum": 8.0},
|
| 101 |
+
"duration_s": {"type": "number", "minimum": 1.0, "maximum": 15.0},
|
| 102 |
+
},
|
| 103 |
+
"additionalProperties": False,
|
| 104 |
+
},
|
| 105 |
+
},
|
| 106 |
+
]
|
| 107 |
+
|
| 108 |
+
def tool_category(self, tool_name: str) -> str | None:
|
| 109 |
+
if tool_name == "describe_plant":
|
| 110 |
+
return "discovery"
|
| 111 |
+
if tool_name == "commission_probe":
|
| 112 |
+
return "exempt"
|
| 113 |
+
return None
|
| 114 |
+
|
| 115 |
+
def budget_extras(self) -> dict[str, Any]:
|
| 116 |
+
used = int(self.memory.get("probes_used", 0))
|
| 117 |
+
return {
|
| 118 |
+
"stateful_probes_used": used,
|
| 119 |
+
"stateful_probes_remaining": max(0, MAX_STATEFUL_PROBES - used),
|
| 120 |
+
"max_stateful_probes": MAX_STATEFUL_PROBES,
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
def handle_tool(self, tool_name: str, args: dict[str, Any]) -> dict[str, Any]:
|
| 124 |
+
if tool_name == "describe_plant":
|
| 125 |
+
spec_md = ""
|
| 126 |
+
if os.path.isfile(self.spec_sheet_path):
|
| 127 |
+
with open(self.spec_sheet_path, "r", encoding="utf-8") as fh:
|
| 128 |
+
spec_md = fh.read()
|
| 129 |
+
payload = {
|
| 130 |
+
"task_id": "foundry-001",
|
| 131 |
+
"max_stateful_probes": MAX_STATEFUL_PROBES,
|
| 132 |
+
"stateful_probes_remaining": max(0, MAX_STATEFUL_PROBES - int(self.memory["probes_used"])),
|
| 133 |
+
"spec_sheet_markdown": spec_md,
|
| 134 |
+
}
|
| 135 |
+
return {"text": json.dumps(payload, separators=(",", ":")), "isError": False}
|
| 136 |
+
|
| 137 |
+
if tool_name == "commission_probe":
|
| 138 |
+
used = int(self.memory.get("probes_used", 0))
|
| 139 |
+
if used >= MAX_STATEFUL_PROBES:
|
| 140 |
+
err = {
|
| 141 |
+
"ok": False,
|
| 142 |
+
"error": f"Commissioning probe budget exhausted ({MAX_STATEFUL_PROBES}/{MAX_STATEFUL_PROBES} stateful probes used).",
|
| 143 |
+
}
|
| 144 |
+
return {"text": json.dumps(err, separators=(",", ":")), "isError": True}
|
| 145 |
+
|
| 146 |
+
req_keys = (
|
| 147 |
+
"flow_m3_s",
|
| 148 |
+
"valve_pulse_closure_s",
|
| 149 |
+
"heater_test_power_w",
|
| 150 |
+
"bess_test_current_a",
|
| 151 |
+
"duration_s",
|
| 152 |
+
)
|
| 153 |
+
req: dict[str, float] = {}
|
| 154 |
+
for k in req_keys:
|
| 155 |
+
if k not in args or isinstance(args[k], bool) or not isinstance(args[k], (int, float)):
|
| 156 |
+
err = {"ok": False, "error": f"Missing or non-numeric probe parameter {k!r}."}
|
| 157 |
+
return {"text": json.dumps(err, separators=(",", ":")), "isError": True}
|
| 158 |
+
req[k] = float(args[k])
|
| 159 |
+
|
| 160 |
+
envelope = {
|
| 161 |
+
"hidden": self.hidden,
|
| 162 |
+
"memory": self.memory,
|
| 163 |
+
"request": req,
|
| 164 |
+
}
|
| 165 |
+
with tempfile.NamedTemporaryFile("w", suffix=".json", delete=False, encoding="utf-8") as tf:
|
| 166 |
+
json.dump(envelope, tf)
|
| 167 |
+
tpath = tf.name
|
| 168 |
+
try:
|
| 169 |
+
proc = subprocess.run(
|
| 170 |
+
[self.verifier_bin, "probe", tpath],
|
| 171 |
+
capture_output=True,
|
| 172 |
+
text=True,
|
| 173 |
+
timeout=30,
|
| 174 |
+
)
|
| 175 |
+
finally:
|
| 176 |
+
try:
|
| 177 |
+
os.unlink(tpath)
|
| 178 |
+
except OSError:
|
| 179 |
+
pass
|
| 180 |
+
|
| 181 |
+
if proc.returncode != 0:
|
| 182 |
+
err = {"ok": False, "error": proc.stderr.strip() or "Probe rejected by verifier."}
|
| 183 |
+
return {"text": json.dumps(err, separators=(",", ":")), "isError": True}
|
| 184 |
+
|
| 185 |
+
parsed = json.loads(proc.stdout)
|
| 186 |
+
obs = parsed["observation"]
|
| 187 |
+
self.memory = parsed["memory"]
|
| 188 |
+
|
| 189 |
+
# Never include `self.memory` in `text` returned to the agent; `memory` stays in root `plugin_event`!
|
| 190 |
+
return {
|
| 191 |
+
"text": json.dumps(obs, separators=(",", ":")),
|
| 192 |
+
"isError": False,
|
| 193 |
+
"plugin_event": {
|
| 194 |
+
"kind": "foundry_probe",
|
| 195 |
+
"probe_index": obs["probe_index"],
|
| 196 |
+
"request": req,
|
| 197 |
+
"observation": obs,
|
| 198 |
+
"post_probe_memory": dict(self.memory),
|
| 199 |
+
},
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
return {
|
| 203 |
+
"text": json.dumps({"ok": False, "error": f"Unsupported plugin tool {tool_name!r}"}),
|
| 204 |
+
"isError": True,
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
def create_plugin(task_spec: dict[str, Any], engine_client: Any, vault: dict[str, Any] | None = None) -> FoundryCommissioningPlugin:
|
| 209 |
+
return FoundryCommissioningPlugin(task_spec=task_spec, engine_client=engine_client, vault=vault)
|
preview/packs/foundry_flagship/tasks/foundry-001/task.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "foundry-001",
|
| 3 |
+
"pack_id": "foundry_flagship",
|
| 4 |
+
"spine": "Foundry Chassis 1 (Liquid-Cooled AI Rack, Microgrid & Optical Backplane)",
|
| 5 |
+
"archetype": "SYN",
|
| 6 |
+
"title": "Stateful 3-Probe Rack Commissioning & 8-Corner Electro-Thermo-Fluid-Optical Co-Synthesis",
|
| 7 |
+
"budget": {
|
| 8 |
+
"max_discovery_calls": 60,
|
| 9 |
+
"max_sim_calls": 36,
|
| 10 |
+
"max_stateful_probes": 3
|
| 11 |
+
},
|
| 12 |
+
"required_models": [
|
| 13 |
+
"die_coldplate_fe",
|
| 14 |
+
"cdu_loop_moc",
|
| 15 |
+
"rack_power_pll",
|
| 16 |
+
"chassis_mount_duffing"
|
| 17 |
+
],
|
| 18 |
+
"prompt": "You are Principal Commissioning & Systems Synthesis Engineer for a newly delivered liquid-cooled AI compute rack specimen (`48`-sled manifold, `4x4` silicon-to-copper cold-plate + Q8 bondline FEM, hybrid synchronous/IBR SRF-PLL microgrid + cold-bay `2170` BESS + `48 V` copper bus, and cubic Duffing chassis mount + O-band expanded-beam optical interconnect).\n\nRead `/workspace/SPEC_SHEET.md` (or call `describe_plant` and `describe_solver`) for the complete, exact rules of the game: every commissioning bench dimension, irreversible probe carry-over law, component solver schema, all `8` stress-corner multipliers (`C1`\u2013`C8`), inter-stage coupling equations, safety limits, and net-PPA efficiency formula. Nothing about the physics, limits, corners, or objective is hidden \u2014 ONLY this specific hardware unit's `6` physical state parameters (`entrained_air_fraction`, `fouling_factor`, `cold_bay_ambient_c`, `temp_sensor_bias_k`, `grid_inverter_fraction`, `rested_bess_soc`) are unknown.\n\n## Physical & Game-Theoretic Ground Rules\n1. **Stateful Non-Resetting Commissioning (`commission_probe`, max `3` probes):** Probing the specimen mutates the real unit that gets graded (`current_bess_soc` depletes, `current_coolant_temp_c` warms up, `accumulated_wear_factor` increments). Design gentle, informative probes that disambiguate static hydraulic aliases (via acoustic echo transit time), separate die RTD bias from microchannel fouling, and separate cold-bay BESS polarization from rested SOC and microgrid inertia without abusing the hardware.\n2. **Component Solvers Only (`solve`, max `36` calls):** Use `die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, and `chassis_mount_duffing` selectively with physical scaling laws to invert the specimen state and verify the binding stress corners. Blind grid sweeps will exhaust `max_sim_calls = 36` (`1` full 8-corner \u00d7 4-solver sweep alone would cost `32` calls).\n3. **Zero-Bureaucracy Submission (`submission.json`):** Write ONLY the flat 3-key JSON object `{\"task_id\": \"foundry-001\", \"design\": {...17 numeric fields...}, \"controller\": {...5 numeric fields...}}` to `submission.json` (zero SHA-384 hex seals required). Passing requires `8/8` stress corners safe AND `net_ppa_efficiency_w >= 0.92 * reference_ppa_ceiling_w` for this specimen.",
|
| 19 |
+
"agent_surface": {
|
| 20 |
+
"disabled_tools": [
|
| 21 |
+
"verify_solution",
|
| 22 |
+
"verify_receipt"
|
| 23 |
+
],
|
| 24 |
+
"strip_proof_fields": true
|
| 25 |
+
}
|
| 26 |
+
}
|
preview/packs/foundry_flagship/tasks/foundry-001/workspace_files/SPEC_SHEET.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# `foundry-001` Engineering Datasheet & 8-Corner Verification Contract
|
| 2 |
+
|
| 3 |
+
## 1. Mission & Physical Boundary
|
| 4 |
+
You are commissioning **one specific liquid-cooled AI compute rack specimen** (serving a `48`-blade manifold, hybrid synchronous/IBR microgrid, outdoor `2170` Li-ion BESS string, and co-packaged O-band expanded-beam optical backplane) and synthesizing its **17-parameter hardware design (`design`)** plus **5-parameter closed-loop protection controller (`controller`)**.
|
| 5 |
+
|
| 6 |
+
- **What is hidden (ONLY the specimen's physical condition $\theta \in \mathbb{R}^6$):**
|
| 7 |
+
1. `entrained_air_fraction` $\in [0.00025, 0.030]$: non-condensable gas volume fraction at `101,325 Pa` in the coolant loop.
|
| 8 |
+
2. `fouling_factor` $\in [0.06, 0.78]$: baseline biofilm/scale fouling across piping, cold-plate microchannels, and pump bearing housing.
|
| 9 |
+
3. `cold_bay_ambient_c` $\in [-20.5, +8.5]\ ^\circ\text{C}$: outdoor container bay ambient temperature housing the BESS rack and dry-cooler heat rejection.
|
| 10 |
+
4. `temp_sensor_bias_k` $\in [-5.5, +5.5]\text{ K}$: systematic calibration offset on the on-die junction RTD (`measured = true + bias`).
|
| 11 |
+
5. `grid_inverter_fraction` $\in [0.14, 0.56]$: grid-following Inverter-Based Resource (`IBR`) share on the `400 kW` rack-row microgrid.
|
| 12 |
+
6. `rested_bess_soc` $\in [0.24, 0.88]$: initial rested state of charge of the outdoor `2170` Li-ion BESS cells (`cell 80`, `4.20 Ah`).
|
| 13 |
+
- **What is 100% public (below):** every bench dimension, stateful carry-over law, component solver schema, stress-corner condition, coupling formula, safety limit, and net-PPA efficiency formula.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## 2. Tool Budgets & Non-Resetting Commissioning Bench (`commission_probe`)
|
| 18 |
+
- **Stateful Hardware Probes (`commission_probe`):** maximum **`3` calls** (tracked separately from `solve`; `0`-probe immediate submission is legal, though uninformed).
|
| 19 |
+
- **Component Physics Solvers (`solve`):** maximum **`36` calls** across the 4 component solvers (`die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, `chassis_mount_duffing`). No whole-plant simulator exists on the agent side.
|
| 20 |
+
- **Read-Only Discovery (`list_solvers`, `describe_solver`, `describe_plant`):** maximum **`60` calls** (`budget_status` is exempt).
|
| 21 |
+
|
| 22 |
+
### Commissioning Bench Fixed Geometry & Probe Inputs
|
| 23 |
+
Each `commission_probe` call executes on the **actual hardware specimen that will be graded** (`0` resets!):
|
| 24 |
+
- **Request bounds:**
|
| 25 |
+
- `flow_m3_s` $\in [0.002, 0.015]\ \text{m}^3/\text{s}$
|
| 26 |
+
- `valve_pulse_closure_s` $\in [0.12, 4.0]\ \text{s}$
|
| 27 |
+
- `heater_test_power_w` $\in [0.0, 8000.0]\ \text{W}$
|
| 28 |
+
- `bess_test_current_a` $\in [0.0, 8.0]\ \text{A/cell}$
|
| 29 |
+
- `duration_s` $\in [1.0, 15.0]\ \text{s}$ (rounded to nearest integer second)
|
| 30 |
+
- **Fixed commissioning bench harness settings:**
|
| 31 |
+
- `cdu_loop_moc`: `supply_pressure_pa = 6.5e5`, `return_pressure_pa = 1.8e5`, `pipe_length_m = 24.0`, `pipe_diameter_m = 0.052`, `pump_speed_rpm = 1800.0`, `duration_s = 0.6`, `coolant_temp_c = current_coolant_temp_c`, `fouling_factor = hidden.fouling_factor + accumulated_wear_factor`.
|
| 32 |
+
- `die_coldplate_fe`: `base_compute_power_w = heater_test_power_w`, `leakage_ref_power_w = 220.0`, `coolant_mass_flow_kg_s = (eff_flow * 1040.0) / 48.0`, `coolant_inlet_temp_k = current_coolant_temp_c + 273.15`, `saturation_temp_k = 368.15`, `fin_area_multiplier = 3.0`, `tim_thickness_um = 60.0`, `clamp_preload_mpa = 5.0`, `dt_s = 0.05`, `initial_vapor_lock = false`.
|
| 33 |
+
- `rack_power_pll`: `step_rack_load_pu = 0.16`, `pll_bandwidth_per_s = 20.0`, `governor_droop = 12.0`, `bess_parallel_strings = 140`, `bess_initial_soc = current_bess_soc`, `bess_case_temp_c = hidden.cold_bay_ambient_c`, `rack_dc_current_a = 160.0`, `parallel_feeder_legs = 20`. (If cell terminal voltage hits the `2.80 V` BMS cutoff, `bess_cutoff_triggered = true`, `measured_cell_terminal_v = 2.80`, and `current_bess_soc` incurs a `-0.022` trip depletion.)
|
| 34 |
+
- **Irreversible Stateful Carry-Over Across Probes AND Into Final 8-Corner Grading:**
|
| 35 |
+
- Initial standby state before Probe 1: `current_bess_soc = rested_bess_soc`, `current_coolant_temp_c = 22.0 °C` (indoor hall standby), `accumulated_wear_factor = 0.0`.
|
| 36 |
+
- After each probe:
|
| 37 |
+
- `current_bess_soc` updates to `cell_final_soc` (or `-0.022` on BMS `2.80 V` cutoff).
|
| 38 |
+
- `current_coolant_temp_c += (heater_test_power_w + 220.0) * duration_s / 55000.0`.
|
| 39 |
+
- `accumulated_wear_factor += 0.002 + (0.045 if pump_lambda_ratio < 1.05) + (0.060 if cavitation_occurred) + (0.050 if peak_hammer_pressure_pa > 2.40e6)`.
|
| 40 |
+
- **Returned Probe Telemetry (`1`-sigma sensor noise):**
|
| 41 |
+
- `measured_steady_drop_pa` ($\sigma = 45\ \text{Pa}$), `measured_echo_time_s` ($\sigma = 60\ \mu\text{s}$), `measured_peak_hammer_pa` ($\sigma = 350\ \text{Pa}$)
|
| 42 |
+
- `measured_inlet_temp_k` ($\sigma = 0.02\ \text{K}$, unbiased manifold RTD before probe heat), `measured_junction_temp_k` (`cp.peak_junction_temp_k + hidden.temp_sensor_bias_k`, $\sigma = 0.03\ \text{K}$)
|
| 43 |
+
- `measured_cell_terminal_v` ($\sigma = 1.0\ \text{mV}$, or `2.80 V` if `bess_cutoff_triggered`), `measured_grid_freq_nadir_hz` ($\sigma = 1.5\ \text{mHz}$)
|
| 44 |
+
- `bess_cutoff_triggered`, `cavitation_triggered`.
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## 3. Coupled 8-Corner Verification Physics (`evaluate_eight_corners`)
|
| 49 |
+
Your submitted `(design, controller)` is graded on the **post-commissioning hardware unit** (`carried_warmup_c = max(0, current_coolant_temp_c - 22.0)`, `carried_bess_soc = current_bess_soc`, `carried_wear = accumulated_wear_factor`) across all `8` stress corners simultaneously:
|
| 50 |
+
|
| 51 |
+
| Corner ID | `cold_soak` | `flow_factor` | `compute_spike` | `inlet_offset_c` | `sensor_extra_bias_k` | `step_load_pu` | `valve_closure_factor` | `extra_fouling` | `shock_accel_m_s2` |
|
| 52 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 53 |
+
| `C1_nominal_steady` | `false` | `1.00` | `1.00` | `0.0` | `0.0` | `0.18` | `1.00` | `0.00` | `12.0` |
|
| 54 |
+
| `C2_pump_partial_coastdown` | `false` | `0.70` | `1.00` | `+4.0` | `0.0` | `0.22` | `1.00` | `0.00` | `18.0` |
|
| 55 |
+
| `C3_ai_step_and_ibr_cloud_drop` | `false` | `1.00` | `1.28` | `+2.0` | `0.0` | `0.42` | `1.00` | `0.00` | `25.0` |
|
| 56 |
+
| `C4_cold_soak_high_viscosity_start` | `true` | `0.86` | `0.95` | `-22.0` | `0.0` | `0.28` | `0.85` | `0.00` | `30.0` |
|
| 57 |
+
| `C5_hot_return_chf_margin` | `false` | `0.92` | `1.18` | `+14.0` | `0.0` | `0.25` | `1.00` | `0.10` | `15.0` |
|
| 58 |
+
| `C6_adverse_2sigma_sensor_underread` | `false` | `0.90` | `1.15` | `+8.0` | `-2.8` | `0.24` | `1.00` | `0.05` | `15.0` |
|
| 59 |
+
| `C7_fast_isolation_valve_hammer` | `false` | `1.05` | `1.00` | `0.0` | `0.0` | `0.20` | `0.45` | `0.00` | `140.0` |
|
| 60 |
+
| `C8_aged_1000h_fouled_envelope` | `false` | `0.88` | `1.08` | `+6.0` | `-1.2` | `0.30` | `0.80` | `0.35` | `65.0` |
|
| 61 |
+
|
| 62 |
+
### Exact Inter-Stage Coupling Equations (Per Corner `sc`)
|
| 63 |
+
1. **Manifold Inventory & Inlet Temperature:**
|
| 64 |
+
- `active_fouling = clamp(hidden.fouling_factor + carried_wear + sc.extra_fouling, 0.0, 2.95)`
|
| 65 |
+
- `loop_vol_m3 = (pi / 4) * pipe_diameter_m^2 * pipe_length_m`; `loop_heat_cap_j_k = max(5000.0, loop_vol_m3 * 1040.0 * 3450.0)`
|
| 66 |
+
- If `sc.cold_soak` (`C4`): `recirc_rise_c = 0.0`, `base_inlet_c = clamp(hidden.cold_bay_ambient_c + 2.0 + 0.30 * carried_warmup_c, -26.0, 65.0)` (note: below `-12 °C`, elastomeric valve seals enter sub-$T_g$ stick-slip snap closure inside `cdu_loop_moc`!).
|
| 67 |
+
- Otherwise: `recirc_rise_c = sustained_compute_target_w * max(0.0, sc.compute_spike - 0.75) * 24.0 / loop_heat_cap_j_k`, and `base_inlet_c = clamp(32.0 + 0.65 * hidden.cold_bay_ambient_c + 0.55 * carried_warmup_c + sc.inlet_offset_c + recirc_rise_c, -26.0, 75.0)`.
|
| 68 |
+
2. **Closed-Loop Thermal Throttling & Surge Flow Controller:**
|
| 69 |
+
- `p_req_w = sustained_compute_target_w * sc.compute_spike`
|
| 70 |
+
- `nom_mdot_sled = max(0.04, (nominal_flow_m3_s * sc.flow_factor * 1040.0) / 48.0)`
|
| 71 |
+
- `r_tim_est = 0.068 * ((tim_thickness_um * 1e-6 / 6.5) + 6.5e-6 * (1.0 + 0.65 * active_fouling)) / 2.5e-3`
|
| 72 |
+
- `h_sp_est = 5400.0 * nom_mdot_sled^0.65`
|
| 73 |
+
- `r_conv_est = 0.068 / (h_sp_est * 2.5e-3 * fin_area_multiplier) + 0.5 / (nom_mdot_sled * 3450.0)`
|
| 74 |
+
- `measured_tj_k = (base_inlet_c + 273.15) + p_req_w * (r_tim_est + r_conv_est) + hidden.temp_sensor_bias_k + sc.sensor_extra_bias_k`
|
| 75 |
+
- `over_k = max(0.0, measured_tj_k - throttle_onset_measured_k)`
|
| 76 |
+
- `commanded_compute_w = clamp(max(sustained_compute_target_w * min_compute_fraction, p_req_w - throttle_gain_w_per_k * over_k), 500.0, 24000.0)`
|
| 77 |
+
- `flow_boost = surge_flow_multiplier if over_k > 1.5 else 1.0`
|
| 78 |
+
- `actual_flow_m3_s = clamp(nominal_flow_m3_s * sc.flow_factor * flow_boost, 0.0002, 0.075)`
|
| 79 |
+
- `eff_valve_closure_s = max(0.006, valve_ramp_s * sc.valve_closure_factor)`
|
| 80 |
+
- `eff_pump_rpm = clamp(pump_speed_rpm * min(1.35, flow_boost), 300.0, 6000.0)`
|
| 81 |
+
3. **Stage 1 (`cdu_loop_moc`, `return_pressure_pa = 1.8e5`, `duration_s = 0.8`):**
|
| 82 |
+
- Safety limits: `steady_valve_pressure_pa >= 1.80e5 Pa`, `peak_hammer_pressure_pa <= 2.85e6 Pa`, `cavitation_occurred == false`, `pump_lambda_ratio >= 1.00`, and in `C7_fast_isolation_valve_hammer`: `containment_spill_liters = 500.0 * actual_flow_m3_s * eff_valve_closure_s <= 4.20 L`.
|
| 83 |
+
4. **Stage 2 (`die_coldplate_fe`, `leakage_ref_power_w = 220.0`, `duration_s = 12.0`, `dt_s = 0.05`):**
|
| 84 |
+
- `coolant_mass_flow_kg_s = (actual_flow_m3_s * 1040.0) / 48.0`
|
| 85 |
+
- Compressed non-condensable gas void lock & saturation shift:
|
| 86 |
+
`compressed_gas_void = hidden.entrained_air_fraction * (1.01325e5 / supply_pressure_pa)` (must satisfy `compressed_gas_void <= 0.00185`)
|
| 87 |
+
`saturation_temp_k = clamp(344.15 + 15.0 * ((supply_pressure_pa - 1.8e5) / 5.0e5) - 4500.0 * compressed_gas_void, 315.0, 425.0)`
|
| 88 |
+
- `initial_vapor_lock = cavitation_occurred`
|
| 89 |
+
- Safety limits: `compressed_gas_void <= 0.00185`, `chf_triggered == false`, `boiling_branch == -1`, `peak_junction_temp_k <= 348.15 K`, `tim_peak_von_mises_mpa <= 34.0 MPa`, `fatigue_life_cycles >= 2.5e5`.
|
| 90 |
+
5. **Stage 3 (`rack_power_pll`, `duration_s = 15.0`, `400 kW` rack-row microgrid base):**
|
| 91 |
+
- `shaft_churn_w = 16.0 * (eff_pump_rpm / 1000.0)^2.2`
|
| 92 |
+
- `pump_power_w = max(1.0e4, supply_pressure_pa - 1.8e5) * (actual_flow_m3_s / 24.0) / 0.74 + shaft_churn_w`
|
| 93 |
+
- `rack_dc_current_a = clamp((commanded_compute_w + pump_power_w) / 48.0, 5.0, 2450.0)`
|
| 94 |
+
- `step_rack_load_pu = sc.step_load_pu + pump_power_w / 4.0e5` (`13S` `2170` BESS strings inject `bess_power_w / 4.0e5` pu)
|
| 95 |
+
- `bess_initial_soc = carried_bess_soc`, `bess_case_temp_c = clamp(hidden.cold_bay_ambient_c + 0.15 * sc.inlet_offset_c, -22.8, 27.0)`
|
| 96 |
+
- Safety limits: no cell/feeder refusal, `loss_of_synchronism == false`, `inverter_pll_tripped == false` (`|pll_err_rad| < 0.22 rad` across both low-bandwidth RoCoF lag and high-bandwidth `15 Hz` weak-grid SSR), `min_grid_frequency_hz >= 59.70 Hz`, `bus_min_voltage_v >= 43.50 V`, `bus_copper_temp_k <= 385.0 K`.
|
| 97 |
+
6. **Stage 4 (`chassis_mount_duffing`, `duffing_alpha = 1.6e7`, `harmonic_accel_m_s2 = 6.5`, `active_kd = 140.0`, `duration_s = 0.6`):**
|
| 98 |
+
- `excitation_freq_hz = eff_pump_rpm / 60.0`
|
| 99 |
+
- `impulse_shock_m_s2 = clamp(sc.shock_accel_m_s2 + max(0.0, peak_hammer_pressure_pa - supply_pressure_pa) / 9.5e3, 0.0, 480.0)`
|
| 100 |
+
- `optical_delta_temp_c = (peak_junction_temp_k - 298.15) * 0.45`
|
| 101 |
+
- Safety limits: `linear_transmissibility <= 0.450` and `optical_link_degraded == false` (`total_alignment_error_um <= depth_of_focus_um` [`46.22 um`] and `final_duffing_branch == -1`).
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## 4. Net-PPA Efficiency Objective & Pass Criterion
|
| 106 |
+
In each corner, net compute PPA efficiency [W] is:
|
| 107 |
+
```text
|
| 108 |
+
capex_penalty_w = 0.12 * sustained_compute_target_w
|
| 109 |
+
+ 180.0 * fin_area_multiplier
|
| 110 |
+
+ 2.8 * bess_parallel_strings
|
| 111 |
+
+ 11.0 * parallel_feeder_legs
|
| 112 |
+
+ 18000.0 * pipe_diameter_m
|
| 113 |
+
+ 8.0 * pipe_length_m
|
| 114 |
+
+ 3.0 * governor_droop
|
| 115 |
+
+ 0.045 * mount_active_kp
|
| 116 |
+
eff_ppa_w = max(0.0, commanded_compute_w - pump_power_w - capex_penalty_w)
|
| 117 |
+
```
|
| 118 |
+
Let `net_ppa_efficiency_w` be the mean of `eff_ppa_w` across all `8` corners, and `reference_ppa_ceiling_w` be this specific specimen's reference PPA target: the best `8/8`-safe net PPA found for it by the task's reference search. It is a best-found value, not a certified maximum, and a design that beats it is graded at ratio `1.0`:
|
| 119 |
+
- **Lexicographic safety gate:** `shaped_score` enters `[0.70, 1.00]` ONLY when all `8/8` corners pass with zero violations.
|
| 120 |
+
- **Binary pass (`binary_reward == 1`):** `all_corners_safe == true` AND `net_ppa_efficiency_w / reference_ppa_ceiling_w >= 0.92`.
|
| 121 |
+
- **Exact score:** `ppa_ratio = clamp(net_ppa_efficiency_w / max(reference_ppa_ceiling_w, 1.0), 0.0, 1.0)`. If all `8` corners are safe, `shaped_score = 0.70 + 0.30 * ppa_ratio`; otherwise `shaped_score = 0.10 + 0.55 * (corners_passed / 8)`.
|
| 122 |
+
|
| 123 |
+
### Runtime Rules Not Stated Above
|
| 124 |
+
- **A refused solver fails the corner.** If any of the four component solvers refuses its inputs in a corner, that corner is unsafe.
|
| 125 |
+
- **Conservation gate.** A corner is also unsafe if the largest energy or volume conservation residual reported by its solvers exceeds `1.0e-5`.
|
| 126 |
+
- **Probe fouling clamp.** On the bench, `fouling_factor = clamp(hidden.fouling_factor + accumulated_wear_factor, 0.0, 2.9)`.
|
| 127 |
+
- **Choked-flow fallback.** If `cdu_loop_moc` refuses the requested probe (bench relief or pump head exceeded), the probe is still charged. The bench reruns at `flow = min(flow_m3_s, 0.004)` with a `1.5 s` valve closure and reports `measured_steady_drop_pa` from `4.70e5 Pa`, `measured_peak_hammer_pa` from `6.50e6 Pa`, the fallback run's echo time, and `cavitation_triggered = true`. Wear for that probe is `0.002 + 0.045 + 0.060 + 0.050 = 0.157`. The cold plate is then heated at the choked flow.
|
| 128 |
+
- **BMS cutoff fallback.** On a `2.80 V` cutoff, the reported `measured_grid_freq_nadir_hz` comes from a rerun with zero BESS support (`bess_initial_soc = 0.50`, `bess_case_temp_c = 20.0`).
|
| 129 |
+
- **State clamps after each probe.** `current_bess_soc` is held in `[0.06, 0.98]` and `current_coolant_temp_c` in `[-25.0, 85.0] °C`.
|
| 130 |
+
- **Tools.** `verify_solution` and `verify_receipt` are not available in this task, and solver answers carry no hash or bit-pattern fields; none is needed for the submission.
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
## 5. Submission Contract (`submission.json` — Zero Hex / Zero Seals Required)
|
| 135 |
+
Write a flat 3-key JSON object to `submission.json` within the declared parameter bounds:
|
| 136 |
+
```json
|
| 137 |
+
{
|
| 138 |
+
"task_id": "foundry-001",
|
| 139 |
+
"design": {
|
| 140 |
+
"pipe_length_m": 24.0,
|
| 141 |
+
"pipe_diameter_m": 0.062,
|
| 142 |
+
"supply_pressure_pa": 850000.0,
|
| 143 |
+
"nominal_flow_m3_s": 0.016,
|
| 144 |
+
"pump_speed_rpm": 2800.0,
|
| 145 |
+
"valve_ramp_s": 0.72,
|
| 146 |
+
"fin_area_multiplier": 3.4,
|
| 147 |
+
"tim_thickness_um": 62.0,
|
| 148 |
+
"clamp_preload_mpa": 5.0,
|
| 149 |
+
"pll_bandwidth_per_s": 22.0,
|
| 150 |
+
"governor_droop": 14.0,
|
| 151 |
+
"bess_parallel_strings": 260,
|
| 152 |
+
"parallel_feeder_legs": 28,
|
| 153 |
+
"mount_natural_freq_hz": 15.0,
|
| 154 |
+
"mount_damping_ratio": 0.24,
|
| 155 |
+
"mount_active_kp": 3400.0,
|
| 156 |
+
"sustained_compute_target_w": 9200.0
|
| 157 |
+
},
|
| 158 |
+
"controller": {
|
| 159 |
+
"throttle_onset_measured_k": 346.0,
|
| 160 |
+
"throttle_gain_w_per_k": 440.0,
|
| 161 |
+
"min_compute_fraction": 0.56,
|
| 162 |
+
"bess_emergency_current_a": 6.5,
|
| 163 |
+
"surge_flow_multiplier": 1.25
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
### Declared Parameter Bounds
|
| 169 |
+
- `design`:
|
| 170 |
+
- `pipe_length_m`: `[12.0, 80.0]` m | `pipe_diameter_m`: `[0.025, 0.140]` m | `supply_pressure_pa`: `[3.0e5, 2.4e6]` Pa
|
| 171 |
+
- `nominal_flow_m3_s`: `[0.004, 0.045]` m³/s | `pump_speed_rpm`: `[900.0, 5600.0]` rpm | `valve_ramp_s`: `[0.05, 2.50]` s
|
| 172 |
+
- `fin_area_multiplier`: `[1.0, 5.5]` | `tim_thickness_um`: `[20.0, 200.0]` µm | `clamp_preload_mpa`: `[1.0, 18.0]` MPa
|
| 173 |
+
- `pll_bandwidth_per_s`: `[4.0, 75.0]` s⁻¹ | `governor_droop`: `[4.0, 28.0]` | `bess_parallel_strings`: `[40, 1200]` int | `parallel_feeder_legs`: `[8, 96]` int
|
| 174 |
+
- `mount_natural_freq_hz`: `[5.0, 80.0]` Hz | `mount_damping_ratio`: `[0.05, 1.20]` | `mount_active_kp`: `[0.0, 25000.0]` s⁻²
|
| 175 |
+
- `sustained_compute_target_w`: `[3000.0, 22000.0]` W
|
| 176 |
+
- `controller`:
|
| 177 |
+
- `throttle_onset_measured_k`: `[315.0, 370.0]` K | `throttle_gain_w_per_k`: `[0.0, 1200.0]` W/K | `min_compute_fraction`: `[0.35, 1.00]`
|
| 178 |
+
- `bess_emergency_current_a`: `[0.5, 14.0]` A/cell | `surge_flow_multiplier`: `[1.00, 1.50]`
|
preview/packs/foundry_flagship/tasks/foundry-002/contract.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""`foundry-002` public contract constants, shared by the plant plugin and the grader (root side)."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
TASK_ID = "foundry-002"
|
| 5 |
+
MAX_SERVICE_PROBES = 2
|
| 6 |
+
PASS_RATIO = 0.93 # net PPA / reference PPA target needed for a pass
|
| 7 |
+
FAULT_CLASSES = ("none", "air_ingress", "fouling_growth", "sensor_drift", "inverter_share_shift", "battery_fade")
|
| 8 |
+
|
| 9 |
+
# Field-adjustable settings: (low, high). Installed hardware is not submitted.
|
| 10 |
+
TRIM_BOUNDS: dict[str, tuple[float, float]] = {
|
| 11 |
+
"supply_pressure_pa": (3.0e5, 2.4e6),
|
| 12 |
+
"nominal_flow_m3_s": (0.004, 0.045),
|
| 13 |
+
"pump_speed_rpm": (900.0, 5600.0),
|
| 14 |
+
"valve_ramp_s": (0.05, 2.50),
|
| 15 |
+
"pll_bandwidth_per_s": (4.0, 75.0),
|
| 16 |
+
"governor_droop": (4.0, 28.0),
|
| 17 |
+
"mount_active_kp": (0.0, 25000.0),
|
| 18 |
+
"sustained_compute_target_w": (3000.0, 22000.0),
|
| 19 |
+
}
|
| 20 |
+
CTRL_BOUNDS: dict[str, tuple[float, float]] = {
|
| 21 |
+
"throttle_onset_measured_k": (315.0, 370.0),
|
| 22 |
+
"throttle_gain_w_per_k": (0.0, 1200.0),
|
| 23 |
+
"min_compute_fraction": (0.35, 1.00),
|
| 24 |
+
"bess_emergency_current_a": (0.5, 14.0),
|
| 25 |
+
"surge_flow_multiplier": (1.00, 1.50),
|
| 26 |
+
}
|
| 27 |
+
HARDWARE_KEYS = (
|
| 28 |
+
"pipe_length_m",
|
| 29 |
+
"pipe_diameter_m",
|
| 30 |
+
"fin_area_multiplier",
|
| 31 |
+
"tim_thickness_um",
|
| 32 |
+
"clamp_preload_mpa",
|
| 33 |
+
"bess_parallel_strings",
|
| 34 |
+
"parallel_feeder_legs",
|
| 35 |
+
"mount_natural_freq_hz",
|
| 36 |
+
"mount_damping_ratio",
|
| 37 |
+
)
|
| 38 |
+
PROBE_BOUNDS: dict[str, tuple[float, float]] = {
|
| 39 |
+
"flow_m3_s": (0.002, 0.015),
|
| 40 |
+
"valve_pulse_closure_s": (0.12, 4.0),
|
| 41 |
+
"heater_test_power_w": (0.0, 8000.0),
|
| 42 |
+
"bess_test_current_a": (0.0, 8.0),
|
| 43 |
+
"duration_s": (1.0, 15.0),
|
| 44 |
+
}
|
| 45 |
+
VERIFIER_BIN = "ztp_foundry_preview_verifier"
|
| 46 |
+
VERIFIER_BIN_ROOT = "bin"
|
| 47 |
+
# What `describe_plant` may show of the task's hidden-state file. Everything else stays root-side.
|
| 48 |
+
PUBLIC_RECORD_KEYS = ("commissioning_state", "incumbent_design", "incumbent_controller", "acceptance_report")
|
preview/packs/foundry_flagship/tasks/foundry-002/evaluator.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Recompute grader for `foundry-002` (root verifier).
|
| 2 |
+
|
| 3 |
+
Checks the flat submission (`task_id`, `fault_class`, `trim`, `controller`), rebuilds the
|
| 4 |
+
unit's carried state from the daemon's hash-chained ledger, and runs the coupled 8-corner
|
| 5 |
+
plant on the incumbent hardware with the submitted settings. A pass needs the correct fault
|
| 6 |
+
class, 8/8 safe corners, and net PPA of at least 93% of the task's reference PPA target.
|
| 7 |
+
"""
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import math
|
| 11 |
+
from typing import Any
|
| 12 |
+
|
| 13 |
+
from contract import CTRL_BOUNDS, FAULT_CLASSES, HARDWARE_KEYS, PASS_RATIO, TASK_ID, TRIM_BOUNDS, VERIFIER_BIN, VERIFIER_BIN_ROOT
|
| 14 |
+
|
| 15 |
+
from core.plugin_base import TaskEvaluatorContext
|
| 16 |
+
from core.vault_bins import run_vault_bin
|
| 17 |
+
|
| 18 |
+
INTEGER_DESIGN_KEYS = ("bess_parallel_strings", "parallel_feeder_legs")
|
| 19 |
+
WRONG_CLASS_SCORE_CAP = 0.60
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def _finite(v: Any) -> bool:
|
| 23 |
+
return not isinstance(v, bool) and isinstance(v, (int, float)) and math.isfinite(float(v))
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _check_block(sub: dict[str, Any], name: str, bounds: dict[str, tuple[float, float]], errs: list[str]) -> None:
|
| 27 |
+
block = sub.get(name)
|
| 28 |
+
if not isinstance(block, dict):
|
| 29 |
+
errs.append(f"Field {name!r} must be a JSON object with {len(bounds)} numbers.")
|
| 30 |
+
return
|
| 31 |
+
extra = sorted(set(block) - set(bounds))
|
| 32 |
+
if extra:
|
| 33 |
+
errs.append(f"Unexpected {name} keys: {extra}.")
|
| 34 |
+
for k, (lo, hi) in bounds.items():
|
| 35 |
+
if k not in block:
|
| 36 |
+
errs.append(f"Missing required field '{name}.{k}'.")
|
| 37 |
+
elif not _finite(block[k]):
|
| 38 |
+
errs.append(f"Field '{name}.{k}' must be a finite number.")
|
| 39 |
+
elif not (lo <= float(block[k]) <= hi):
|
| 40 |
+
errs.append(f"Field '{name}.{k}'={float(block[k])} outside declared bounds [{lo}, {hi}].")
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def validate_schema(sub: Any) -> tuple[bool, list[str], list[str]]:
|
| 44 |
+
if not isinstance(sub, dict):
|
| 45 |
+
return False, ["Submission must be a JSON object."], []
|
| 46 |
+
allowed = {"task_id", "fault_class", "trim", "controller"}
|
| 47 |
+
extra = sorted(set(sub) - allowed)
|
| 48 |
+
if extra:
|
| 49 |
+
return False, [f"Unexpected top-level keys {extra}; allowed keys are {sorted(allowed)}."], []
|
| 50 |
+
errs: list[str] = []
|
| 51 |
+
if sub.get("task_id") != TASK_ID:
|
| 52 |
+
errs.append(f"Expected task_id={TASK_ID!r}, got {sub.get('task_id')!r}.")
|
| 53 |
+
if sub.get("fault_class") not in FAULT_CLASSES:
|
| 54 |
+
errs.append(f"Field 'fault_class' must be one of {list(FAULT_CLASSES)}.")
|
| 55 |
+
_check_block(sub, "trim", TRIM_BOUNDS, errs)
|
| 56 |
+
_check_block(sub, "controller", CTRL_BOUNDS, errs)
|
| 57 |
+
return not errs, errs, []
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def carried_memory(ledger_records: list[dict[str, Any]], vault: dict[str, Any]) -> dict[str, Any]:
|
| 61 |
+
mem = dict(vault["memory"])
|
| 62 |
+
for rec in ledger_records:
|
| 63 |
+
if rec.get("is_error") or rec.get("budget_rejected"):
|
| 64 |
+
continue
|
| 65 |
+
ev = rec.get("plugin_event")
|
| 66 |
+
if isinstance(ev, dict) and ev.get("kind") == "foundry_service_probe" and isinstance(ev.get("post_probe_memory"), dict):
|
| 67 |
+
mem = dict(ev["post_probe_memory"])
|
| 68 |
+
return mem
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def evaluate(sub: dict[str, Any], ctx: TaskEvaluatorContext) -> dict[str, Any]:
|
| 72 |
+
v = ctx.vault or {}
|
| 73 |
+
for k in ("hidden", "memory", "fault_class", "reference_ppa_ceiling_w", "incumbent_design"):
|
| 74 |
+
if k not in v:
|
| 75 |
+
raise RuntimeError(f"{TASK_ID}: hidden-state file lacks {k!r}")
|
| 76 |
+
design: dict[str, Any] = {}
|
| 77 |
+
for k in HARDWARE_KEYS:
|
| 78 |
+
design[k] = int(v["incumbent_design"][k]) if k in INTEGER_DESIGN_KEYS else float(v["incumbent_design"][k])
|
| 79 |
+
for k in TRIM_BOUNDS:
|
| 80 |
+
design[k] = float(sub["trim"][k])
|
| 81 |
+
ctrl = {k: float(sub["controller"][k]) for k in CTRL_BOUNDS}
|
| 82 |
+
mem = carried_memory(ctx.ledger_records, v)
|
| 83 |
+
ref = float(v["reference_ppa_ceiling_w"])
|
| 84 |
+
out = run_vault_bin(
|
| 85 |
+
VERIFIER_BIN, ["grade"],
|
| 86 |
+
{"hidden": dict(v["hidden"]), "memory": mem, "design": design, "controller": ctrl, "reference_ppa_ceiling_w": ref},
|
| 87 |
+
bin_root=VERIFIER_BIN_ROOT, timeout_s=120,
|
| 88 |
+
)
|
| 89 |
+
rep = out["parsed"]
|
| 90 |
+
all_safe = bool(rep["all_corners_safe"])
|
| 91 |
+
ppa_w = float(rep["net_ppa_efficiency_w"])
|
| 92 |
+
ratio_raw = ppa_w / max(ref, 1.0)
|
| 93 |
+
class_ok = sub["fault_class"] == v["fault_class"]
|
| 94 |
+
plant_pass = all_safe and ratio_raw >= PASS_RATIO # the binary's own bar is 0.92; this task asks more
|
| 95 |
+
binary = 1 if (plant_pass and class_ok) else 0
|
| 96 |
+
shaped = float(rep["shaped_score"])
|
| 97 |
+
if not class_ok:
|
| 98 |
+
shaped = min(shaped, WRONG_CLASS_SCORE_CAP)
|
| 99 |
+
suite = str(rep.get("suite_seal_sha384") or "")
|
| 100 |
+
if len(suite) != 96 or any(ch not in "0123456789abcdef" for ch in suite):
|
| 101 |
+
# No grade stands without the verifier's hash over the 8 corner fields; the pipe reports `seals_verified` only past this point.
|
| 102 |
+
raise RuntimeError(f"{TASK_ID}: verifier returned no suite hash")
|
| 103 |
+
state = (
|
| 104 |
+
f"probes_used={rep['carried_probes_used']}, carried_soc={rep['carried_bess_soc']:.4f}, "
|
| 105 |
+
f"warmup={rep['carried_coolant_warmup_c']:.2f} C, wear={rep['carried_wear_factor']:.4f}"
|
| 106 |
+
)
|
| 107 |
+
if binary == 1:
|
| 108 |
+
autopsy = (
|
| 109 |
+
f"PASS [suite hash {suite[:16]}...]: fault class correct; 8/8 corners safe on the unit as serviced ({state}); "
|
| 110 |
+
f"net_ppa={ppa_w:.1f} W / {ref:.1f} W ({ratio_raw * 100.0:.2f}% >= {PASS_RATIO * 100.0:.2f}%)."
|
| 111 |
+
)
|
| 112 |
+
elif not all_safe:
|
| 113 |
+
failed = [f"{c['corner_id']}: {', '.join(c['violations'])}" for c in rep["corners"] if not c["safe"]]
|
| 114 |
+
autopsy = (
|
| 115 |
+
f"UNSAFE [suite hash {suite[:16]}...]: {rep['corners_passed']}/8 corners safe ({state}); "
|
| 116 |
+
f"fault class {'correct' if class_ok else 'wrong'}; breaches -> " + " | ".join(failed[:4])
|
| 117 |
+
)
|
| 118 |
+
elif not plant_pass:
|
| 119 |
+
autopsy = (
|
| 120 |
+
f"UNDER TARGET [suite hash {suite[:16]}...]: 8/8 corners safe, but net_ppa={ppa_w:.1f} W is "
|
| 121 |
+
f"{ratio_raw * 100.0:.2f}% < {PASS_RATIO * 100.0:.2f}% of the reference PPA target ({ref:.1f} W); fault class {'correct' if class_ok else 'wrong'}."
|
| 122 |
+
)
|
| 123 |
+
else:
|
| 124 |
+
autopsy = (
|
| 125 |
+
f"WRONG FAULT CLASS [suite hash {suite[:16]}...]: settings are safe and at {ratio_raw * 100.0:.2f}% of the "
|
| 126 |
+
"reference PPA target, but the submitted fault class is not the unit's fault."
|
| 127 |
+
)
|
| 128 |
+
return {
|
| 129 |
+
"binary_reward": binary,
|
| 130 |
+
"shaped_score": 1.0 if binary == 1 else shaped,
|
| 131 |
+
"failure_reason": "none" if binary == 1 else "physics_violation",
|
| 132 |
+
"all_required_models_present": True,
|
| 133 |
+
"autopsy": autopsy,
|
| 134 |
+
"stage_breakdown": {
|
| 135 |
+
"fault_class_correct": class_ok,
|
| 136 |
+
"all_corners_safe": all_safe,
|
| 137 |
+
"corners_passed": int(rep["corners_passed"]),
|
| 138 |
+
"total_corners": int(rep["total_corners"]),
|
| 139 |
+
"net_ppa_efficiency_w": ppa_w,
|
| 140 |
+
"reference_ppa_ceiling_w": ref,
|
| 141 |
+
"ppa_ratio": float(rep["ppa_ratio"]),
|
| 142 |
+
"ppa_ratio_unclipped": ratio_raw,
|
| 143 |
+
"carried_probes_used": int(rep["carried_probes_used"]),
|
| 144 |
+
"carried_bess_soc": float(rep["carried_bess_soc"]),
|
| 145 |
+
"carried_coolant_warmup_c": float(rep["carried_coolant_warmup_c"]),
|
| 146 |
+
"carried_wear_factor": float(rep["carried_wear_factor"]),
|
| 147 |
+
"suite_seal_sha384": suite,
|
| 148 |
+
"corners": rep["corners"],
|
| 149 |
+
},
|
| 150 |
+
}
|
preview/packs/foundry_flagship/tasks/foundry-002/plant.py
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Stateful service bench for `foundry-002` (runs inside the root daemon).
|
| 2 |
+
|
| 3 |
+
`describe_plant` serves the spec sheet and this unit's public service record.
|
| 4 |
+
`service_probe` runs one non-resetting probe on the unit as it is now: the faulted,
|
| 5 |
+
aged state from the task's hidden-state file. The carried state after each probe stays
|
| 6 |
+
in the root ledger and never reaches the agent.
|
| 7 |
+
"""
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import json
|
| 11 |
+
import os
|
| 12 |
+
from typing import Any
|
| 13 |
+
|
| 14 |
+
from contract import MAX_SERVICE_PROBES, PROBE_BOUNDS, PUBLIC_RECORD_KEYS, TASK_ID, VERIFIER_BIN, VERIFIER_BIN_ROOT
|
| 15 |
+
|
| 16 |
+
from core.plugin_base import StatefulPlantPlugin
|
| 17 |
+
from core.vault_bins import VaultBinError, run_vault_bin
|
| 18 |
+
|
| 19 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 20 |
+
REQUIRED_VAULT_KEYS = (*PUBLIC_RECORD_KEYS, "hidden", "memory", "fault_class", "reference_ppa_ceiling_w")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class ServiceBenchPlugin(StatefulPlantPlugin):
|
| 24 |
+
def __init__(self, task_spec: dict[str, Any], engine_client: Any, vault: dict[str, Any] | None = None):
|
| 25 |
+
super().__init__(task_spec, engine_client, vault)
|
| 26 |
+
missing = [k for k in REQUIRED_VAULT_KEYS if k not in self.vault]
|
| 27 |
+
if missing:
|
| 28 |
+
raise RuntimeError(f"{TASK_ID}: hidden-state file lacks {missing}")
|
| 29 |
+
self.hidden: dict[str, Any] = dict(self.vault["hidden"])
|
| 30 |
+
self.memory: dict[str, Any] = dict(self.vault["memory"])
|
| 31 |
+
self.probes_used = 0
|
| 32 |
+
self.spec_sheet_path = os.path.join(HERE, "workspace_files", "SPEC_SHEET.md")
|
| 33 |
+
|
| 34 |
+
def tool_definitions(self) -> list[dict[str, Any]]:
|
| 35 |
+
return [
|
| 36 |
+
{
|
| 37 |
+
"name": "describe_plant",
|
| 38 |
+
"description": (
|
| 39 |
+
"Return the spec sheet and this unit's service record: its commissioning state, "
|
| 40 |
+
"incumbent design and controller, and acceptance report (counts toward discovery budget)."
|
| 41 |
+
),
|
| 42 |
+
"inputSchema": {"type": "object", "properties": {}, "additionalProperties": False},
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "service_probe",
|
| 46 |
+
"description": (
|
| 47 |
+
f"Run 1 stateful, non-resetting probe on the unit as it is now (max {MAX_SERVICE_PROBES}; "
|
| 48 |
+
"each probe changes battery charge, coolant temperature and wear, and the changed unit is graded)."
|
| 49 |
+
),
|
| 50 |
+
"inputSchema": {
|
| 51 |
+
"type": "object",
|
| 52 |
+
"required": list(PROBE_BOUNDS),
|
| 53 |
+
"properties": {k: {"type": "number", "minimum": lo, "maximum": hi} for k, (lo, hi) in PROBE_BOUNDS.items()},
|
| 54 |
+
"additionalProperties": False,
|
| 55 |
+
},
|
| 56 |
+
},
|
| 57 |
+
]
|
| 58 |
+
|
| 59 |
+
def tool_category(self, tool_name: str) -> str | None:
|
| 60 |
+
if tool_name == "describe_plant":
|
| 61 |
+
return "discovery"
|
| 62 |
+
if tool_name == "service_probe":
|
| 63 |
+
return "exempt"
|
| 64 |
+
return None
|
| 65 |
+
|
| 66 |
+
def budget_extras(self) -> dict[str, Any]:
|
| 67 |
+
return {
|
| 68 |
+
"stateful_probes_used": self.probes_used,
|
| 69 |
+
"stateful_probes_remaining": max(0, MAX_SERVICE_PROBES - self.probes_used),
|
| 70 |
+
"max_stateful_probes": MAX_SERVICE_PROBES,
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
def _err(self, msg: str) -> dict[str, Any]:
|
| 74 |
+
return {"text": json.dumps({"ok": False, "error": msg}, separators=(",", ":")), "isError": True}
|
| 75 |
+
|
| 76 |
+
def handle_tool(self, tool_name: str, args: dict[str, Any]) -> dict[str, Any]:
|
| 77 |
+
if tool_name == "describe_plant":
|
| 78 |
+
spec_md = open(self.spec_sheet_path, "r", encoding="utf-8").read() if os.path.isfile(self.spec_sheet_path) else ""
|
| 79 |
+
payload = {
|
| 80 |
+
"task_id": TASK_ID,
|
| 81 |
+
"service_record": {k: self.vault[k] for k in PUBLIC_RECORD_KEYS},
|
| 82 |
+
**self.budget_extras(),
|
| 83 |
+
"spec_sheet_markdown": spec_md,
|
| 84 |
+
}
|
| 85 |
+
return {"text": json.dumps(payload, separators=(",", ":")), "isError": False}
|
| 86 |
+
|
| 87 |
+
if tool_name == "service_probe":
|
| 88 |
+
if self.probes_used >= MAX_SERVICE_PROBES:
|
| 89 |
+
return self._err(f"Service probe budget exhausted ({MAX_SERVICE_PROBES}/{MAX_SERVICE_PROBES} used).")
|
| 90 |
+
req: dict[str, float] = {}
|
| 91 |
+
for k, (lo, hi) in PROBE_BOUNDS.items():
|
| 92 |
+
v = args.get(k)
|
| 93 |
+
if isinstance(v, bool) or not isinstance(v, (int, float)):
|
| 94 |
+
return self._err(f"Missing or non-numeric probe parameter {k!r}.")
|
| 95 |
+
if not (lo <= float(v) <= hi):
|
| 96 |
+
return self._err(f"Probe parameter {k!r}={v} outside [{lo}, {hi}].")
|
| 97 |
+
req[k] = float(v)
|
| 98 |
+
try:
|
| 99 |
+
out = run_vault_bin(
|
| 100 |
+
VERIFIER_BIN, ["probe"], {"hidden": self.hidden, "memory": self.memory, "request": req},
|
| 101 |
+
bin_root=VERIFIER_BIN_ROOT, timeout_s=60,
|
| 102 |
+
)
|
| 103 |
+
except VaultBinError as exc:
|
| 104 |
+
return self._err(f"Probe rejected by the bench: {str(exc)[:300]}")
|
| 105 |
+
parsed = out["parsed"]
|
| 106 |
+
obs = dict(parsed["observation"])
|
| 107 |
+
self.memory = dict(parsed["memory"])
|
| 108 |
+
self.probes_used += 1
|
| 109 |
+
obs["probe_index"] = self.probes_used
|
| 110 |
+
obs["probes_remaining"] = max(0, MAX_SERVICE_PROBES - self.probes_used)
|
| 111 |
+
return {
|
| 112 |
+
"text": json.dumps(obs, separators=(",", ":")),
|
| 113 |
+
"isError": False,
|
| 114 |
+
"plugin_event": {
|
| 115 |
+
"kind": "foundry_service_probe",
|
| 116 |
+
"probe_index": self.probes_used,
|
| 117 |
+
"request": req,
|
| 118 |
+
"observation": obs,
|
| 119 |
+
"post_probe_memory": dict(self.memory),
|
| 120 |
+
},
|
| 121 |
+
}
|
| 122 |
+
return self._err(f"Unsupported plugin tool {tool_name!r}")
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def create_plugin(task_spec: dict[str, Any], engine_client: Any, vault: dict[str, Any] | None = None) -> ServiceBenchPlugin:
|
| 126 |
+
return ServiceBenchPlugin(task_spec=task_spec, engine_client=engine_client, vault=vault)
|
preview/packs/foundry_flagship/tasks/foundry-002/task.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "foundry-002",
|
| 3 |
+
"pack_id": "foundry_flagship",
|
| 4 |
+
"spine": "Foundry Chassis 1 (Liquid-Cooled AI Rack, Microgrid & Optical Backplane)",
|
| 5 |
+
"archetype": "FLT",
|
| 6 |
+
"title": "Live Fault Forensics & Safe Re-Trim of an In-Service Rack",
|
| 7 |
+
"budget": {
|
| 8 |
+
"max_discovery_calls": 40,
|
| 9 |
+
"max_sim_calls": 24,
|
| 10 |
+
"max_stateful_probes": 2
|
| 11 |
+
},
|
| 12 |
+
"required_models": [
|
| 13 |
+
"die_coldplate_fe",
|
| 14 |
+
"cdu_loop_moc",
|
| 15 |
+
"rack_power_pll",
|
| 16 |
+
"chassis_mount_duffing"
|
| 17 |
+
],
|
| 18 |
+
"prompt": "You are the service engineer on call for a liquid-cooled AI compute rack that has been in service since commissioning (`48`-sled manifold, `4x4` silicon-to-copper cold plate, hybrid synchronous/inverter microgrid with a cold-bay `2170` battery string, Duffing chassis mount with an O-band optical backplane). Its monitoring has raised an alarm.\n\nCall `describe_plant` (or read `/workspace/SPEC_SHEET.md`) for the complete rules: the unit's **service record** (its six commissioning state values, the incumbent design and controller it was accepted with, and its acceptance report), the service bench, every coupling equation, all `8` stress corners, the safety limits, the fault classes with their declared size ranges, and the scoring rule. Nothing about the physics is hidden. What you are not told is the unit's condition now: **at most one fault** from the declared classes (or none), and how far it has **aged in service** (wear, coolant warm-up, battery drift).\n\n## Ground rules\n1. **Stateful service probes (`service_probe`, max `2`).** Each probe runs on the real unit and changes it (battery charge falls, coolant warms, wear accumulates). The changed unit is the one that is graded.\n2. **Component solvers only (`solve`, max `24` calls)** across `die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll` and `chassis_mount_duffing`. There is no whole-plant simulator on your side.\n3. **You cannot change installed hardware.** Submit only the field-adjustable settings (`trim`, 8 numbers) and the controller (5 numbers), plus the fault class you diagnosed.\n4. **Submission (`submission.json`):** `{\"task_id\": \"foundry-002\", \"fault_class\": \"<class>\", \"trim\": {...8 numbers...}, \"controller\": {...5 numbers...}}`. A pass needs the correct fault class, all `8` corners safe on the unit as you left it, and net PPA of at least `93%` of this unit's reference PPA target.",
|
| 19 |
+
"agent_surface": {
|
| 20 |
+
"disabled_tools": [
|
| 21 |
+
"verify_solution",
|
| 22 |
+
"verify_receipt"
|
| 23 |
+
],
|
| 24 |
+
"strip_proof_fields": true
|
| 25 |
+
}
|
| 26 |
+
}
|
preview/packs/foundry_flagship/tasks/foundry-002/workspace_files/SPEC_SHEET.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# `foundry-002` Service Datasheet: Live Fault Forensics & Safe Re-Trim
|
| 2 |
+
|
| 3 |
+
## 1. Mission
|
| 4 |
+
A liquid-cooled AI compute rack (`48`-sled manifold, hybrid synchronous/inverter microgrid, outdoor `2170` battery string, O-band optical backplane) has been in service since commissioning. Its monitoring raised an alarm. Diagnose what changed and re-trim the unit so that it is safe in all `8` stress corners and still efficient, **without replacing hardware**.
|
| 5 |
+
|
| 6 |
+
- **Public, per unit (`describe_plant` -> `service_record`):**
|
| 7 |
+
- `commissioning_state`: the six state values measured at commissioning (`entrained_air_fraction`, `fouling_factor`, `cold_bay_ambient_c`, `temp_sensor_bias_k`, `grid_inverter_fraction`, `rested_bess_soc`).
|
| 8 |
+
- `incumbent_design` (17 values) and `incumbent_controller` (5 values): what the unit was accepted with and runs today.
|
| 9 |
+
- `acceptance_report`: per corner, the outputs the unit showed at commissioning with those settings (all `8` corners safe).
|
| 10 |
+
- **Hidden (the unit as it is now, written `now.` below):**
|
| 11 |
+
- **At most one fault** from section 6, with its size. Every other state value equals its commissioning value.
|
| 12 |
+
- **Service aging:** `accumulated_wear_factor`, coolant warm-up above the `22.0 C` standby, and a battery charge drift (section 6).
|
| 13 |
+
- `cold_bay_ambient_c` does not change: it is the commissioning value.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## 2. Budgets & the Non-Resetting Service Bench (`service_probe`)
|
| 18 |
+
- **Stateful probes (`service_probe`):** at most **`2`**. Submitting with `0` probes is legal.
|
| 19 |
+
- **Component solvers (`solve`):** at most **`24` calls** across `die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, `chassis_mount_duffing`. There is no whole-plant simulator on your side.
|
| 20 |
+
- **Read-only discovery (`list_solvers`, `describe_solver`, `describe_plant`):** at most **`40` calls** (`budget_status` is exempt).
|
| 21 |
+
- `verify_solution` and `verify_receipt` are not available, and solver answers carry no hash or bit-pattern fields; none is needed.
|
| 22 |
+
|
| 23 |
+
### Bench geometry and probe inputs
|
| 24 |
+
Each `service_probe` runs on the **actual unit that is graded** (no resets):
|
| 25 |
+
- **Request bounds:** `flow_m3_s` in `[0.002, 0.015]`, `valve_pulse_closure_s` in `[0.12, 4.0]`, `heater_test_power_w` in `[0.0, 8000.0]`, `bess_test_current_a` in `[0.0, 8.0]` A/cell, `duration_s` in `[1.0, 15.0]` s (rounded to the nearest second).
|
| 26 |
+
- **Fixed bench settings:**
|
| 27 |
+
- `cdu_loop_moc`: `supply_pressure_pa = 6.5e5`, `return_pressure_pa = 1.8e5`, `pipe_length_m = 24.0`, `pipe_diameter_m = 0.052`, `pump_speed_rpm = 1800.0`, `duration_s = 0.6`, `initial_flow_m3_s = flow_m3_s`, `valve_closure_s = valve_pulse_closure_s`, `coolant_temp_c = current_coolant_temp_c`, `entrained_air_fraction = now.entrained_air_fraction`, `fouling_factor = clamp(now.fouling_factor + accumulated_wear_factor, 0.0, 2.9)`.
|
| 28 |
+
- `die_coldplate_fe`: `base_compute_power_w = heater_test_power_w`, `leakage_ref_power_w = 220.0`, `coolant_mass_flow_kg_s = (eff_flow * 1040.0) / 48.0`, `coolant_inlet_temp_k = current_coolant_temp_c + 273.15`, `saturation_temp_k = 368.15`, `fin_area_multiplier = 3.0`, `tim_thickness_um = 60.0`, `clamp_preload_mpa = 5.0`, `fouling_factor` as above, `duration_s` as requested, `dt_s = 0.05`, `initial_vapor_lock = false`.
|
| 29 |
+
- `rack_power_pll`: `step_rack_load_pu = 0.16`, `inverter_fraction = now.grid_inverter_fraction`, `pll_bandwidth_per_s = 20.0`, `governor_droop = 12.0`, `bess_support_current_a = bess_test_current_a`, `bess_parallel_strings = 140`, `bess_initial_soc = current_bess_soc`, `bess_case_temp_c = cold_bay_ambient_c`, `rack_dc_current_a = 160.0`, `parallel_feeder_legs = 20`, `duration_s` as requested.
|
| 30 |
+
- **State before the first probe (hidden):** `current_bess_soc = now.rested_bess_soc`, `current_coolant_temp_c = 22.0 + aging warm-up`, `accumulated_wear_factor = aging wear`.
|
| 31 |
+
- **Irreversible carry-over, across probes and into grading:**
|
| 32 |
+
- `current_bess_soc` becomes the solver's `cell_final_soc`, clamped to `[0.06, 0.98]` (on a `2.80 V` cutoff: `-0.022`).
|
| 33 |
+
- `current_coolant_temp_c += (heater_test_power_w + 220.0) * duration_s / 55000.0`, clamped to `[-25.0, 85.0]`.
|
| 34 |
+
- `accumulated_wear_factor += 0.002 + (0.045 if pump_lambda_ratio < 1.05) + (0.060 if cavitation_occurred) + (0.050 if peak_hammer_pressure_pa > 2.40e6)`.
|
| 35 |
+
- **Returned telemetry (`1`-sigma sensor noise):** `measured_steady_drop_pa` (`45 Pa`), `measured_echo_time_s` (`60 us`), `measured_peak_hammer_pa` (`350 Pa`), `measured_inlet_temp_k` (`0.02 K`, the coolant before probe heat), `measured_junction_temp_k` (solver `peak_junction_temp_k + now.temp_sensor_bias_k`, `0.03 K`), `measured_cell_terminal_v` (`1.0 mV`, or `2.80 V` on cutoff), `measured_grid_freq_nadir_hz` (`1.5 mHz`), `bess_cutoff_triggered`, `cavitation_triggered`.
|
| 36 |
+
- **Choked-flow fallback.** If `cdu_loop_moc` refuses the requested probe, the probe is still charged: the bench reruns at `flow = min(flow_m3_s, 0.004)` with a `1.5 s` closure, reports steady drop from `4.70e5 Pa`, peak hammer from `6.50e6 Pa`, `cavitation_triggered = true`, and adds `0.157` wear.
|
| 37 |
+
- **Cutoff fallback.** On a `2.80 V` cutoff the reported nadir comes from a rerun with zero battery support (`bess_initial_soc = 0.50`, `bess_case_temp_c = 20.0`).
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## 3. Coupled 8-Corner Verification Physics (`evaluate_eight_corners`)
|
| 42 |
+
The incumbent hardware with your submitted `(trim, controller)` is graded on the **unit as you left it** (`carried_warmup_c = max(0, current_coolant_temp_c - 22.0)`, `carried_bess_soc = clamp(current_bess_soc, 0.06, 0.98)`, `carried_wear = accumulated_wear_factor`) across all `8` stress corners simultaneously:
|
| 43 |
+
|
| 44 |
+
| Corner ID | `cold_soak` | `flow_factor` | `compute_spike` | `inlet_offset_c` | `sensor_extra_bias_k` | `step_load_pu` | `valve_closure_factor` | `extra_fouling` | `shock_accel_m_s2` |
|
| 45 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 46 |
+
| `C1_nominal_steady` | `false` | `1.00` | `1.00` | `0.0` | `0.0` | `0.18` | `1.00` | `0.00` | `12.0` |
|
| 47 |
+
| `C2_pump_partial_coastdown` | `false` | `0.70` | `1.00` | `+4.0` | `0.0` | `0.22` | `1.00` | `0.00` | `18.0` |
|
| 48 |
+
| `C3_ai_step_and_ibr_cloud_drop` | `false` | `1.00` | `1.28` | `+2.0` | `0.0` | `0.42` | `1.00` | `0.00` | `25.0` |
|
| 49 |
+
| `C4_cold_soak_high_viscosity_start` | `true` | `0.86` | `0.95` | `-22.0` | `0.0` | `0.28` | `0.85` | `0.00` | `30.0` |
|
| 50 |
+
| `C5_hot_return_chf_margin` | `false` | `0.92` | `1.18` | `+14.0` | `0.0` | `0.25` | `1.00` | `0.10` | `15.0` |
|
| 51 |
+
| `C6_adverse_2sigma_sensor_underread` | `false` | `0.90` | `1.15` | `+8.0` | `-2.8` | `0.24` | `1.00` | `0.05` | `15.0` |
|
| 52 |
+
| `C7_fast_isolation_valve_hammer` | `false` | `1.05` | `1.00` | `0.0` | `0.0` | `0.20` | `0.45` | `0.00` | `140.0` |
|
| 53 |
+
| `C8_aged_1000h_fouled_envelope` | `false` | `0.88` | `1.08` | `+6.0` | `-1.2` | `0.30` | `0.80` | `0.35` | `65.0` |
|
| 54 |
+
|
| 55 |
+
### Exact Inter-Stage Coupling Equations (Per Corner `sc`)
|
| 56 |
+
1. **Manifold Inventory & Inlet Temperature:**
|
| 57 |
+
- `active_fouling = clamp(now.fouling_factor + carried_wear + sc.extra_fouling, 0.0, 2.95)`
|
| 58 |
+
- `loop_vol_m3 = (pi / 4) * pipe_diameter_m^2 * pipe_length_m`; `loop_heat_cap_j_k = max(5000.0, loop_vol_m3 * 1040.0 * 3450.0)`
|
| 59 |
+
- If `sc.cold_soak` (`C4`): `recirc_rise_c = 0.0`, `base_inlet_c = clamp(now.cold_bay_ambient_c + 2.0 + 0.30 * carried_warmup_c, -26.0, 65.0)` (note: below `-12 °C`, elastomeric valve seals enter sub-$T_g$ stick-slip snap closure inside `cdu_loop_moc`!).
|
| 60 |
+
- Otherwise: `recirc_rise_c = sustained_compute_target_w * max(0.0, sc.compute_spike - 0.75) * 24.0 / loop_heat_cap_j_k`, and `base_inlet_c = clamp(32.0 + 0.65 * now.cold_bay_ambient_c + 0.55 * carried_warmup_c + sc.inlet_offset_c + recirc_rise_c, -26.0, 75.0)`.
|
| 61 |
+
2. **Closed-Loop Thermal Throttling & Surge Flow Controller:**
|
| 62 |
+
- `p_req_w = sustained_compute_target_w * sc.compute_spike`
|
| 63 |
+
- `nom_mdot_sled = max(0.04, (nominal_flow_m3_s * sc.flow_factor * 1040.0) / 48.0)`
|
| 64 |
+
- `r_tim_est = 0.068 * ((tim_thickness_um * 1e-6 / 6.5) + 6.5e-6 * (1.0 + 0.65 * active_fouling)) / 2.5e-3`
|
| 65 |
+
- `h_sp_est = 5400.0 * nom_mdot_sled^0.65`
|
| 66 |
+
- `r_conv_est = 0.068 / (h_sp_est * 2.5e-3 * fin_area_multiplier) + 0.5 / (nom_mdot_sled * 3450.0)`
|
| 67 |
+
- `measured_tj_k = (base_inlet_c + 273.15) + p_req_w * (r_tim_est + r_conv_est) + now.temp_sensor_bias_k + sc.sensor_extra_bias_k`
|
| 68 |
+
- `over_k = max(0.0, measured_tj_k - throttle_onset_measured_k)`
|
| 69 |
+
- `commanded_compute_w = clamp(max(sustained_compute_target_w * min_compute_fraction, p_req_w - throttle_gain_w_per_k * over_k), 500.0, 24000.0)`
|
| 70 |
+
- `flow_boost = surge_flow_multiplier if over_k > 1.5 else 1.0`
|
| 71 |
+
- `actual_flow_m3_s = clamp(nominal_flow_m3_s * sc.flow_factor * flow_boost, 0.0002, 0.075)`
|
| 72 |
+
- `eff_valve_closure_s = max(0.006, valve_ramp_s * sc.valve_closure_factor)`
|
| 73 |
+
- `eff_pump_rpm = clamp(pump_speed_rpm * min(1.35, flow_boost), 300.0, 6000.0)`
|
| 74 |
+
3. **Stage 1 (`cdu_loop_moc`, `return_pressure_pa = 1.8e5`, `duration_s = 0.8`):**
|
| 75 |
+
- `supply_pressure_pa`, `pipe_length_m`, `pipe_diameter_m` from the design; `initial_flow_m3_s = actual_flow_m3_s`, `valve_closure_s = eff_valve_closure_s`, `coolant_temp_c = base_inlet_c`, `entrained_air_fraction = now.entrained_air_fraction`, `fouling_factor = active_fouling`, `pump_speed_rpm = eff_pump_rpm`.
|
| 76 |
+
- Safety limits: `steady_valve_pressure_pa >= 1.80e5 Pa`, `peak_hammer_pressure_pa <= 2.85e6 Pa`, `cavitation_occurred == false`, `pump_lambda_ratio >= 1.00`, and in `C7_fast_isolation_valve_hammer`: `containment_spill_liters = 500.0 * actual_flow_m3_s * eff_valve_closure_s <= 4.20 L`.
|
| 77 |
+
4. **Stage 2 (`die_coldplate_fe`, `leakage_ref_power_w = 220.0`, `duration_s = 12.0`, `dt_s = 0.05`):**
|
| 78 |
+
- `base_compute_power_w = commanded_compute_w`, `coolant_inlet_temp_k = base_inlet_c + 273.15`, `fin_area_multiplier`, `tim_thickness_um`, `clamp_preload_mpa` from the design, `fouling_factor = active_fouling`.
|
| 79 |
+
- `coolant_mass_flow_kg_s = (actual_flow_m3_s * 1040.0) / 48.0`
|
| 80 |
+
- Compressed non-condensable gas void lock & saturation shift:
|
| 81 |
+
`compressed_gas_void = now.entrained_air_fraction * (1.01325e5 / supply_pressure_pa)` (must satisfy `compressed_gas_void <= 0.00185`)
|
| 82 |
+
`saturation_temp_k = clamp(344.15 + 15.0 * ((supply_pressure_pa - 1.8e5) / 5.0e5) - 4500.0 * compressed_gas_void, 315.0, 425.0)`
|
| 83 |
+
- `initial_vapor_lock = cavitation_occurred`
|
| 84 |
+
- Safety limits: `compressed_gas_void <= 0.00185`, `chf_triggered == false`, `boiling_branch == -1`, `peak_junction_temp_k <= 348.15 K`, `tim_peak_von_mises_mpa <= 34.0 MPa`, `fatigue_life_cycles >= 2.5e5`.
|
| 85 |
+
5. **Stage 3 (`rack_power_pll`, `duration_s = 15.0`, `400 kW` rack-row microgrid base):**
|
| 86 |
+
- `inverter_fraction = now.grid_inverter_fraction`, `pll_bandwidth_per_s`, `governor_droop`, `bess_parallel_strings` and `parallel_feeder_legs` from the design, `bess_support_current_a = controller.bess_emergency_current_a`.
|
| 87 |
+
- `shaft_churn_w = 16.0 * (eff_pump_rpm / 1000.0)^2.2`
|
| 88 |
+
- `pump_power_w = max(1.0e4, supply_pressure_pa - 1.8e5) * (actual_flow_m3_s / 24.0) / 0.74 + shaft_churn_w`
|
| 89 |
+
- `rack_dc_current_a = clamp((commanded_compute_w + pump_power_w) / 48.0, 5.0, 2450.0)`
|
| 90 |
+
- `step_rack_load_pu = sc.step_load_pu + pump_power_w / 4.0e5` (`13S` `2170` BESS strings inject `bess_power_w / 4.0e5` pu)
|
| 91 |
+
- `bess_initial_soc = carried_bess_soc`, `bess_case_temp_c = clamp(now.cold_bay_ambient_c + 0.15 * sc.inlet_offset_c, -22.8, 27.0)`
|
| 92 |
+
- Safety limits: no cell/feeder refusal, `loss_of_synchronism == false`, `inverter_pll_tripped == false` (`|pll_err_rad| < 0.22 rad` across both low-bandwidth RoCoF lag and high-bandwidth `15 Hz` weak-grid SSR), `min_grid_frequency_hz >= 59.70 Hz`, `bus_min_voltage_v >= 43.50 V`, `bus_copper_temp_k <= 385.0 K`.
|
| 93 |
+
6. **Stage 4 (`chassis_mount_duffing`, `duffing_alpha = 1.6e7`, `harmonic_accel_m_s2 = 6.5`, `active_kd = 140.0`, `duration_s = 0.6`):**
|
| 94 |
+
- `natural_freq_hz = mount_natural_freq_hz`, `damping_ratio = mount_damping_ratio`, `active_kp = mount_active_kp` from the design.
|
| 95 |
+
- `excitation_freq_hz = eff_pump_rpm / 60.0`
|
| 96 |
+
- `impulse_shock_m_s2 = clamp(sc.shock_accel_m_s2 + max(0.0, peak_hammer_pressure_pa - supply_pressure_pa) / 9.5e3, 0.0, 480.0)`
|
| 97 |
+
- `optical_delta_temp_c = (peak_junction_temp_k - 298.15) * 0.45`
|
| 98 |
+
- Safety limits: `linear_transmissibility <= 0.450` and `optical_link_degraded == false` (`total_alignment_error_um <= depth_of_focus_um` [`46.22 um`] and `final_duffing_branch == -1`).
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
### Runtime rules
|
| 103 |
+
- **A refused solver fails the corner.** So does a conservation residual above `1.0e-5` in any of its solvers.
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
## 4. Net-PPA Efficiency Objective
|
| 108 |
+
In each corner, net compute PPA efficiency [W] is:
|
| 109 |
+
```text
|
| 110 |
+
capex_penalty_w = 0.12 * sustained_compute_target_w
|
| 111 |
+
+ 180.0 * fin_area_multiplier
|
| 112 |
+
+ 2.8 * bess_parallel_strings
|
| 113 |
+
+ 11.0 * parallel_feeder_legs
|
| 114 |
+
+ 18000.0 * pipe_diameter_m
|
| 115 |
+
+ 8.0 * pipe_length_m
|
| 116 |
+
+ 3.0 * governor_droop
|
| 117 |
+
+ 0.045 * mount_active_kp
|
| 118 |
+
eff_ppa_w = max(0.0, commanded_compute_w - pump_power_w - capex_penalty_w)
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
`net_ppa_efficiency_w` is the mean of `eff_ppa_w` over the `8` corners. `reference_ppa_ceiling_w` is this unit's **reference PPA target**: the best `8/8`-safe net PPA found for it, by a search over `trim` and `controller` with the hidden state known or by the task's own reference policy, whichever is higher. It is a best-found value, not a certified maximum; a re-trim that beats it is graded at ratio `1.0`.
|
| 122 |
+
- `ppa_ratio = clamp(net_ppa_efficiency_w / max(reference_ppa_ceiling_w, 1.0), 0.0, 1.0)`.
|
| 123 |
+
- **Pass (`binary_reward == 1`):** `fault_class` is the unit's fault class, AND all `8` corners are safe, AND `net_ppa_efficiency_w / reference_ppa_ceiling_w >= 0.93`.
|
| 124 |
+
- **Graded score:** `0.70 + 0.30 * ppa_ratio` when all `8` corners are safe, otherwise `0.10 + 0.55 * (corners_passed / 8)`; capped at `0.60` when `fault_class` is wrong.
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## 5. Submission Contract (`submission.json`)
|
| 129 |
+
```json
|
| 130 |
+
{
|
| 131 |
+
"task_id": "foundry-002",
|
| 132 |
+
"fault_class": "none | air_ingress | fouling_growth | sensor_drift | inverter_share_shift | battery_fade",
|
| 133 |
+
"trim": {
|
| 134 |
+
"supply_pressure_pa": 850000.0, "nominal_flow_m3_s": 0.016, "pump_speed_rpm": 2800.0, "valve_ramp_s": 0.72,
|
| 135 |
+
"pll_bandwidth_per_s": 22.0, "governor_droop": 14.0, "mount_active_kp": 3400.0, "sustained_compute_target_w": 9200.0
|
| 136 |
+
},
|
| 137 |
+
"controller": {
|
| 138 |
+
"throttle_onset_measured_k": 346.0, "throttle_gain_w_per_k": 440.0, "min_compute_fraction": 0.56,
|
| 139 |
+
"bess_emergency_current_a": 6.5, "surge_flow_multiplier": 1.25
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
```
|
| 143 |
+
- **`trim` bounds (field-adjustable settings):** `supply_pressure_pa` `[3.0e5, 2.4e6]`, `nominal_flow_m3_s` `[0.004, 0.045]`, `pump_speed_rpm` `[900.0, 5600.0]`, `valve_ramp_s` `[0.05, 2.50]`, `pll_bandwidth_per_s` `[4.0, 75.0]`, `governor_droop` `[4.0, 28.0]`, `mount_active_kp` `[0.0, 25000.0]`, `sustained_compute_target_w` `[3000.0, 22000.0]`.
|
| 144 |
+
- **`controller` bounds:** `throttle_onset_measured_k` `[315.0, 370.0]`, `throttle_gain_w_per_k` `[0.0, 1200.0]`, `min_compute_fraction` `[0.35, 1.00]`, `bess_emergency_current_a` `[0.5, 14.0]`, `surge_flow_multiplier` `[1.00, 1.50]`.
|
| 145 |
+
- **Installed hardware (from `incumbent_design`, not submitted):** `pipe_length_m`, `pipe_diameter_m`, `fin_area_multiplier`, `tim_thickness_um`, `clamp_preload_mpa`, `bess_parallel_strings`, `parallel_feeder_legs`, `mount_natural_freq_hz`, `mount_damping_ratio`.
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## 6. Fault Classes, Sizes and Service Aging (declared ranges)
|
| 150 |
+
Exactly one class applies. Sizes are drawn uniformly from the stated range.
|
| 151 |
+
|
| 152 |
+
| `fault_class` | What changed since commissioning | Size |
|
| 153 |
+
|---|---|---|
|
| 154 |
+
| `none` | nothing | |
|
| 155 |
+
| `air_ingress` | `entrained_air_fraction` multiplied by `m` | `m` in `[2.8, 8.5]` |
|
| 156 |
+
| `fouling_growth` | `fouling_factor` raised by `a` | `a` in `[0.2, 0.42]` |
|
| 157 |
+
| `sensor_drift` | `temp_sensor_bias_k` shifted by `+d` or `-d` | `d` in `[1.8, 4.5] K` |
|
| 158 |
+
| `inverter_share_shift` | `grid_inverter_fraction` raised by `a` (at most `0.74`) | `a` in `[0.1, 0.22]` |
|
| 159 |
+
| `battery_fade` | battery state of charge lowered by `s` (not below `0.08`) | `s` in `[0.16, 0.26]` |
|
| 160 |
+
|
| 161 |
+
Service aging, present on every unit whatever its class:
|
| 162 |
+
- `accumulated_wear_factor` in `[0.01, 0.09]` (it adds to fouling everywhere fouling appears);
|
| 163 |
+
- coolant warm-up in `[0.0, 6.5] C` above the `22.0 C` standby;
|
| 164 |
+
- battery charge drift in `[-0.04, 0.0]`.
|
| 165 |
+
|
| 166 |
+
Commissioning values come from the `foundry-001` ranges, except `entrained_air_fraction` in `[0.00025, 0.0038]` (so entrained air never exceeds `0.0323`) and `rested_bess_soc` in `[0.52, 0.88]`. The installed hardware was sized at commissioning for the largest declared fault in every class at once; the incumbent settings were tuned for the commissioning state only.
|
preview_tasks.jsonl
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"case_id": "foundry-001-dev-00", "template_id": "foundry-001", "archetype": "SYN (Stateful Commissioning & 8-Corner Co-Design)", "max_stateful_probes": 3, "max_component_solvers": 36, "max_discovery_calls": 60, "component_solvers": ["die_coldplate_fe", "cdu_loop_moc", "rack_power_pll", "chassis_mount_duffing"], "pass_rule": "8/8 stress corners safe on post-probe unit AND net_ppa >= 0.92 * reference_ppa_target", "blind_redteam_eval_ceiling": "<= 1/12 across 9 equation-free ML & solver-search attackers", "harbor_path": "tasks/harbor/foundry-001-dev-00", "prompt": "You are Principal Commissioning & Systems Synthesis Engineer for a newly delivered liquid-cooled AI compute rack specimen (`48`-sled manifold, `4x4` silicon-to-copper cold-plate + Q8 bondline FEM, hybrid synchronous/IBR SRF-PLL microgrid + cold-bay `2170` BESS + `48 V` copper bus, and cubic Duffing chassis mount + O-band expanded-beam optical interconnect).\n\nRead `/workspace/SPEC_SHEET.md` (or call `describe_plant` and `describe_solver`) for the complete, exact rules of the game: every commissioning bench dimension, irreversible probe carry-over law, component solver schema, all `8` stress-corner multipliers (`C1`–`C8`), inter-stage coupling equations, safety limits, and net-PPA efficiency formula. Nothing about the physics, limits, corners, or objective is hidden — ONLY this specific hardware unit's `6` physical state parameters (`entrained_air_fraction`, `fouling_factor`, `cold_bay_ambient_c`, `temp_sensor_bias_k`, `grid_inverter_fraction`, `rested_bess_soc`) are unknown.\n\n## Physical & Game-Theoretic Ground Rules\n1. **Stateful Non-Resetting Commissioning (`commission_probe`, max `3` probes):** Probing the specimen mutates the real unit that gets graded (`current_bess_soc` depletes, `current_coolant_temp_c` warms up, `accumulated_wear_factor` increments). Design gentle, informative probes that disambiguate static hydraulic aliases (via acoustic echo transit time), separate die RTD bias from microchannel fouling, and separate cold-bay BESS polarization from rested SOC and microgrid inertia without abusing the hardware.\n2. **Component Solvers Only (`solve`, max `36` calls):** Use `die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, and `chassis_mount_duffing` selectively with physical scaling laws to invert the specimen state and verify the binding stress corners. Blind grid sweeps will exhaust `max_sim_calls = 36` (`1` full 8-corner × 4-solver sweep alone would cost `32` calls).\n3. **Zero-Bureaucracy Submission (`submission.json`):** Write ONLY the flat 3-key JSON object `{\"task_id\": \"foundry-001\", \"design\": {...17 numeric fields...}, \"controller\": {...5 numeric fields...}}` to `submission.json` (zero SHA-384 hex seals required). Passing requires `8/8` stress corners safe AND `net_ppa_efficiency_w >= 0.92 * reference_ppa_ceiling_w` for this specimen."}
|
| 2 |
+
{"case_id": "foundry-002-dev-00", "template_id": "foundry-002", "archetype": "FLT (Live Fault Forensics & Safe Installed-Hardware Re-Trim)", "max_stateful_probes": 2, "max_component_solvers": 24, "max_discovery_calls": 40, "component_solvers": ["die_coldplate_fe", "cdu_loop_moc", "rack_power_pll", "chassis_mount_duffing"], "pass_rule": "Exact fault_class AND 8/8 stress corners safe on post-probe unit AND net_ppa >= 0.93 * reference_ppa_target", "blind_redteam_eval_ceiling": "0/12 across all 8 fixed, regression, true-diagnosis-median & 24-solve black-box baselines", "harbor_path": "tasks/harbor/foundry-002-dev-00", "prompt": "You are the service engineer on call for a liquid-cooled AI compute rack that has been in service since commissioning (`48`-sled manifold, `4x4` silicon-to-copper cold plate, hybrid synchronous/inverter microgrid with a cold-bay `2170` battery string, Duffing chassis mount with an O-band optical backplane). Its monitoring has raised an alarm.\n\nCall `describe_plant` (or read `/workspace/SPEC_SHEET.md`) for the complete rules: the unit's **service record** (its six commissioning state values, the incumbent design and controller it was accepted with, and its acceptance report), the service bench, every coupling equation, all `8` stress corners, the safety limits, the fault classes with their declared size ranges, and the scoring rule. Nothing about the physics is hidden. What you are not told is the unit's condition now: **at most one fault** from the declared classes (or none), and how far it has **aged in service** (wear, coolant warm-up, battery drift).\n\n## Ground rules\n1. **Stateful service probes (`service_probe`, max `2`).** Each probe runs on the real unit and changes it (battery charge falls, coolant warms, wear accumulates). The changed unit is the one that is graded.\n2. **Component solvers only (`solve`, max `24` calls)** across `die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll` and `chassis_mount_duffing`. There is no whole-plant simulator on your side.\n3. **You cannot change installed hardware.** Submit only the field-adjustable settings (`trim`, 8 numbers) and the controller (5 numbers), plus the fault class you diagnosed.\n4. **Submission (`submission.json`):** `{\"task_id\": \"foundry-002\", \"fault_class\": \"<class>\", \"trim\": {...8 numbers...}, \"controller\": {...5 numbers...}}`. A pass needs the correct fault class, all `8` corners safe on the unit as you left it, and net PPA of at least `93%` of this unit's reference PPA target."}
|
reference/foundry-001-dev-00_reference_episode.json
ADDED
|
@@ -0,0 +1,1957 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"case_id": "foundry-001-dev-00",
|
| 3 |
+
"task_id": "foundry-001",
|
| 4 |
+
"submission": {
|
| 5 |
+
"task_id": "foundry-001",
|
| 6 |
+
"design": {
|
| 7 |
+
"pipe_length_m": 14.5,
|
| 8 |
+
"pipe_diameter_m": 0.079,
|
| 9 |
+
"supply_pressure_pa": 512838.88044,
|
| 10 |
+
"nominal_flow_m3_s": 0.0262,
|
| 11 |
+
"pump_speed_rpm": 3682.41567,
|
| 12 |
+
"valve_ramp_s": 0.66885,
|
| 13 |
+
"fin_area_multiplier": 5.49,
|
| 14 |
+
"tim_thickness_um": 52.8,
|
| 15 |
+
"clamp_preload_mpa": 4.1,
|
| 16 |
+
"pll_bandwidth_per_s": 21.00359,
|
| 17 |
+
"governor_droop": 5.0,
|
| 18 |
+
"bess_parallel_strings": 106,
|
| 19 |
+
"parallel_feeder_legs": 21,
|
| 20 |
+
"mount_natural_freq_hz": 29.15246,
|
| 21 |
+
"mount_damping_ratio": 0.23,
|
| 22 |
+
"mount_active_kp": 0.0,
|
| 23 |
+
"sustained_compute_target_w": 19450.0
|
| 24 |
+
},
|
| 25 |
+
"controller": {
|
| 26 |
+
"throttle_onset_measured_k": 339.28112,
|
| 27 |
+
"throttle_gain_w_per_k": 440.0,
|
| 28 |
+
"min_compute_fraction": 0.66,
|
| 29 |
+
"bess_emergency_current_a": 8.41175,
|
| 30 |
+
"surge_flow_multiplier": 1.15
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
"grade_report": {
|
| 34 |
+
"task_id": "foundry-001",
|
| 35 |
+
"binary_reward": 1,
|
| 36 |
+
"passed": true,
|
| 37 |
+
"shaped_score": 1.0,
|
| 38 |
+
"seals_verified": true,
|
| 39 |
+
"failure_reason": "none",
|
| 40 |
+
"autopsy": "PASS [SHA-384 suite_seal=f63f7b04531922e9...]: 8/8 stress corners safe on post-commissioning unit (probes_used=3, carried_soc=0.8322, warmup=0.16 C, wear=0.0060); net_ppa=10515.0 W / 10872.1 W (96.72% >= 92.00%).",
|
| 41 |
+
"stage_breakdown": {
|
| 42 |
+
"all_corners_safe": true,
|
| 43 |
+
"corners_passed": 8,
|
| 44 |
+
"total_corners": 8,
|
| 45 |
+
"binary_reward": 1,
|
| 46 |
+
"shaped_score": 0.9901468177987933,
|
| 47 |
+
"net_ppa_efficiency_w": 10515.026397824273,
|
| 48 |
+
"reference_ppa_ceiling_w": 10872.109311,
|
| 49 |
+
"ppa_ratio": 0.9671560593293111,
|
| 50 |
+
"carried_probes_used": 3,
|
| 51 |
+
"carried_bess_soc": 0.8322224338624337,
|
| 52 |
+
"carried_coolant_warmup_c": 0.1559999999999988,
|
| 53 |
+
"carried_wear_factor": 0.006,
|
| 54 |
+
"suite_seal_sha384": "f63f7b04531922e9e115c99c6236fb7ec47b9323e169a0d3c37b77c27a9d0de6f9de30e505585d6667f855dcdbf66f1b",
|
| 55 |
+
"corners": [
|
| 56 |
+
{
|
| 57 |
+
"corner_id": "C1_nominal_steady",
|
| 58 |
+
"safe": true,
|
| 59 |
+
"violations": [],
|
| 60 |
+
"effective_compute_w": 19336.004010954864,
|
| 61 |
+
"peak_junction_temp_k": 347.6857359477671,
|
| 62 |
+
"peak_hammer_pressure_pa": 734655.960939005,
|
| 63 |
+
"containment_spill_liters": 0.0,
|
| 64 |
+
"pump_lambda_ratio": 1.6534166040643934,
|
| 65 |
+
"min_bus_voltage_v": 44.04976865623031,
|
| 66 |
+
"min_grid_freq_hz": 59.92258535922929,
|
| 67 |
+
"inverter_tripped": false,
|
| 68 |
+
"tim_fatigue_cycles": 174398098.46552396,
|
| 69 |
+
"linear_transmissibility": 0.390355411656557,
|
| 70 |
+
"optical_degraded": false,
|
| 71 |
+
"max_conservation_residual": 4.775836600225794e-14,
|
| 72 |
+
"corner_field_sha384": "3d20c4cdddf4f623f9906457222937f3b4d2f31022bd27ba6d38a23644805f76de3e1d362dd63c5790dcf93afc5cd5f8"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"corner_id": "C2_pump_partial_coastdown",
|
| 76 |
+
"safe": true,
|
| 77 |
+
"violations": [],
|
| 78 |
+
"effective_compute_w": 13679.458871074392,
|
| 79 |
+
"peak_junction_temp_k": 341.40201685078296,
|
| 80 |
+
"peak_hammer_pressure_pa": 667992.1223099476,
|
| 81 |
+
"containment_spill_liters": 0.0,
|
| 82 |
+
"pump_lambda_ratio": 1.6293567116155736,
|
| 83 |
+
"min_bus_voltage_v": 45.100759176730335,
|
| 84 |
+
"min_grid_freq_hz": 59.88724061641414,
|
| 85 |
+
"inverter_tripped": false,
|
| 86 |
+
"tim_fatigue_cycles": 656109621.8851002,
|
| 87 |
+
"linear_transmissibility": 0.30010679381369704,
|
| 88 |
+
"optical_degraded": false,
|
| 89 |
+
"max_conservation_residual": 4.083254840876385e-14,
|
| 90 |
+
"corner_field_sha384": "4b0a552caccb607a903ea51b6d7f45e940ac05b81b8952f8b56ded495d8b3637d821c3d49864fd7fd63f6ccddf8e45ac"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"corner_id": "C3_ai_step_and_ibr_cloud_drop",
|
| 94 |
+
"safe": true,
|
| 95 |
+
"violations": [],
|
| 96 |
+
"effective_compute_w": 18744.147788867194,
|
| 97 |
+
"peak_junction_temp_k": 346.0519724022483,
|
| 98 |
+
"peak_hammer_pressure_pa": 802748.3442942968,
|
| 99 |
+
"containment_spill_liters": 0.0,
|
| 100 |
+
"pump_lambda_ratio": 1.6818596643749968,
|
| 101 |
+
"min_bus_voltage_v": 43.905148825359056,
|
| 102 |
+
"min_grid_freq_hz": 59.711167018078676,
|
| 103 |
+
"inverter_tripped": false,
|
| 104 |
+
"tim_fatigue_cycles": 241768018.5930833,
|
| 105 |
+
"linear_transmissibility": 0.30010679381369704,
|
| 106 |
+
"optical_degraded": false,
|
| 107 |
+
"max_conservation_residual": 9.502794362999973e-14,
|
| 108 |
+
"corner_field_sha384": "180a83ab55fe112440f9e98fccb1a6955089e041ff6dedb3a7bc7b475254c585b292e2fd513eb1ee1803babcb4ad93ee"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"corner_id": "C4_cold_soak_high_viscosity_start",
|
| 112 |
+
"safe": true,
|
| 113 |
+
"violations": [],
|
| 114 |
+
"effective_compute_w": 18477.5,
|
| 115 |
+
"peak_junction_temp_k": 313.40934024624744,
|
| 116 |
+
"peak_hammer_pressure_pa": 740216.5493922543,
|
| 117 |
+
"containment_spill_liters": 0.0,
|
| 118 |
+
"pump_lambda_ratio": 5.891518246753112,
|
| 119 |
+
"min_bus_voltage_v": 44.13143642096121,
|
| 120 |
+
"min_grid_freq_hz": 59.831345001472734,
|
| 121 |
+
"inverter_tripped": false,
|
| 122 |
+
"tim_fatigue_cycles": 22649994273442.375,
|
| 123 |
+
"linear_transmissibility": 0.390355411656557,
|
| 124 |
+
"optical_degraded": false,
|
| 125 |
+
"max_conservation_residual": 1.0602849388492021e-13,
|
| 126 |
+
"corner_field_sha384": "19f9c4de33dc350ba92682f08d7887076f7bff78c3b5d6c31f060c56999745d3720ff810039471818b0f030eee454181"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"corner_id": "C5_hot_return_chf_margin",
|
| 130 |
+
"safe": true,
|
| 131 |
+
"violations": [],
|
| 132 |
+
"effective_compute_w": 12837.0,
|
| 133 |
+
"peak_junction_temp_k": 346.33830008239556,
|
| 134 |
+
"peak_hammer_pressure_pa": 764031.7557219968,
|
| 135 |
+
"containment_spill_liters": 0.0,
|
| 136 |
+
"pump_lambda_ratio": 1.1902959864988816,
|
| 137 |
+
"min_bus_voltage_v": 45.21136020197306,
|
| 138 |
+
"min_grid_freq_hz": 59.86128094773916,
|
| 139 |
+
"inverter_tripped": false,
|
| 140 |
+
"tim_fatigue_cycles": 228124401.31659803,
|
| 141 |
+
"linear_transmissibility": 0.30010679381369704,
|
| 142 |
+
"optical_degraded": false,
|
| 143 |
+
"max_conservation_residual": 6.631521551162634e-14,
|
| 144 |
+
"corner_field_sha384": "9f7a21c6727ac00b65f7eb876c720ba536f8749795b84f94c2dd2f8663a91fb1b9d42de91575bca722ba3959d170e2c3"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"corner_id": "C6_adverse_2sigma_sensor_underread",
|
| 148 |
+
"safe": true,
|
| 149 |
+
"violations": [],
|
| 150 |
+
"effective_compute_w": 15941.81091412311,
|
| 151 |
+
"peak_junction_temp_k": 347.6699087046964,
|
| 152 |
+
"peak_hammer_pressure_pa": 750644.5721599155,
|
| 153 |
+
"containment_spill_liters": 0.0,
|
| 154 |
+
"pump_lambda_ratio": 1.4149283320810808,
|
| 155 |
+
"min_bus_voltage_v": 44.62464821324068,
|
| 156 |
+
"min_grid_freq_hz": 59.86960518885948,
|
| 157 |
+
"inverter_tripped": false,
|
| 158 |
+
"tim_fatigue_cycles": 174941231.5551022,
|
| 159 |
+
"linear_transmissibility": 0.30010679381369704,
|
| 160 |
+
"optical_degraded": false,
|
| 161 |
+
"max_conservation_residual": 3.097134885811738e-14,
|
| 162 |
+
"corner_field_sha384": "f9633fa5b0f556be03fbabf8557a8c5eb58423a1b679f4833f3ff10ae407b46334facf9fb783020c06ccae07af9c04fd"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"corner_id": "C7_fast_isolation_valve_hammer",
|
| 166 |
+
"safe": true,
|
| 167 |
+
"violations": [],
|
| 168 |
+
"effective_compute_w": 19450.0,
|
| 169 |
+
"peak_junction_temp_k": 346.9095777631749,
|
| 170 |
+
"peak_hammer_pressure_pa": 1257033.7137095707,
|
| 171 |
+
"containment_spill_liters": 4.1400142875,
|
| 172 |
+
"pump_lambda_ratio": 1.6015688660587135,
|
| 173 |
+
"min_bus_voltage_v": 44.0039443549902,
|
| 174 |
+
"min_grid_freq_hz": 59.90462948143592,
|
| 175 |
+
"inverter_tripped": false,
|
| 176 |
+
"tim_fatigue_cycles": 203380105.01545826,
|
| 177 |
+
"linear_transmissibility": 0.390355411656557,
|
| 178 |
+
"optical_degraded": false,
|
| 179 |
+
"max_conservation_residual": 3.825972013099265e-14,
|
| 180 |
+
"corner_field_sha384": "0205b52dc91e00935912de474c893172a8350415a07ad950ad75af3eeef54c1a7fd339e8f6c8346a8956e358a7ae5d81"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"corner_id": "C8_aged_1000h_fouled_envelope",
|
| 184 |
+
"safe": true,
|
| 185 |
+
"violations": [],
|
| 186 |
+
"effective_compute_w": 15551.191419755372,
|
| 187 |
+
"peak_junction_temp_k": 345.4872956361658,
|
| 188 |
+
"peak_hammer_pressure_pa": 865812.2716317762,
|
| 189 |
+
"containment_spill_liters": 0.0,
|
| 190 |
+
"pump_lambda_ratio": 1.339272444812502,
|
| 191 |
+
"min_bus_voltage_v": 44.64543938071213,
|
| 192 |
+
"min_grid_freq_hz": 59.816408381419194,
|
| 193 |
+
"inverter_tripped": false,
|
| 194 |
+
"tim_fatigue_cycles": 271406484.1619229,
|
| 195 |
+
"linear_transmissibility": 0.30010679381369704,
|
| 196 |
+
"optical_degraded": false,
|
| 197 |
+
"max_conservation_residual": 4.8925850104155636e-14,
|
| 198 |
+
"corner_field_sha384": "24d6973ec0edc5cdbd2a39fbc772a356694ff641a1aaf5745a6d7029f365bbe934e80d13a9720a2f0dce8509bc93bfd0"
|
| 199 |
+
}
|
| 200 |
+
]
|
| 201 |
+
},
|
| 202 |
+
"ledger_audit": {
|
| 203 |
+
"ledger_verified": true,
|
| 204 |
+
"errors": [],
|
| 205 |
+
"entry_count": 39,
|
| 206 |
+
"discovery_calls_used": 0,
|
| 207 |
+
"sim_calls_used": 36,
|
| 208 |
+
"disabled_tool_attempts": 0,
|
| 209 |
+
"budget_rejected_calls": 0
|
| 210 |
+
},
|
| 211 |
+
"verification_ms": 125.25
|
| 212 |
+
},
|
| 213 |
+
"ledger_records": [
|
| 214 |
+
{
|
| 215 |
+
"seq": 1,
|
| 216 |
+
"ts_unix": 1795138654.943426,
|
| 217 |
+
"task_id": "foundry-001",
|
| 218 |
+
"tool": "commission_probe",
|
| 219 |
+
"category": "exempt",
|
| 220 |
+
"discovery_used": 0,
|
| 221 |
+
"max_discovery_calls": 60,
|
| 222 |
+
"sim_used": 0,
|
| 223 |
+
"max_sim_calls": 36,
|
| 224 |
+
"budget_rejected": false,
|
| 225 |
+
"disabled_tool": false,
|
| 226 |
+
"is_error": false,
|
| 227 |
+
"args_sha384": "d598166c99746042d15adf2dcbb798ea9e95f20cd82e6656f85fe1f34a786fdf07355bd6707c889366d235ed1c41ee42",
|
| 228 |
+
"answer_sha384": "2f69798af0b41de229aaa1d52307c38231b05aa3778d4e7ab06eefc91fb62bd1bc610aad9fc3a8dcbf5504d7830621c6",
|
| 229 |
+
"call_spec": null,
|
| 230 |
+
"extracted_seals": [],
|
| 231 |
+
"step_call_records": [],
|
| 232 |
+
"plugin_event": {
|
| 233 |
+
"kind": "foundry_probe",
|
| 234 |
+
"probe_index": 1,
|
| 235 |
+
"request": {
|
| 236 |
+
"flow_m3_s": 0.006,
|
| 237 |
+
"valve_pulse_closure_s": 3.8,
|
| 238 |
+
"heater_test_power_w": 600.0,
|
| 239 |
+
"bess_test_current_a": 0.0,
|
| 240 |
+
"duration_s": 3.0
|
| 241 |
+
},
|
| 242 |
+
"observation": {
|
| 243 |
+
"probe_index": 1,
|
| 244 |
+
"probes_remaining": 2,
|
| 245 |
+
"measured_steady_drop_pa": 94298.93367740004,
|
| 246 |
+
"measured_echo_time_s": 0.14316186037103915,
|
| 247 |
+
"measured_peak_hammer_pa": 650653.5284890123,
|
| 248 |
+
"measured_inlet_temp_k": 295.1640519845036,
|
| 249 |
+
"measured_junction_temp_k": 295.9655086931462,
|
| 250 |
+
"measured_cell_terminal_v": 4.064683202501436,
|
| 251 |
+
"measured_grid_freq_nadir_hz": 59.85829165719164,
|
| 252 |
+
"bess_cutoff_triggered": false,
|
| 253 |
+
"cavitation_triggered": false
|
| 254 |
+
},
|
| 255 |
+
"post_probe_memory": {
|
| 256 |
+
"probes_used": 1,
|
| 257 |
+
"current_bess_soc": 0.83336,
|
| 258 |
+
"current_coolant_temp_c": 22.044727272727272,
|
| 259 |
+
"accumulated_wear_factor": 0.002
|
| 260 |
+
}
|
| 261 |
+
},
|
| 262 |
+
"prev_sha384": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
| 263 |
+
"entry_sha384": "67cb0b98737c6e821696a09b99e821dd8c01e0b582f86cddba12fb0fb5f7c5a37d77a547c11629c0df9fb40b729dd843"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"seq": 2,
|
| 267 |
+
"ts_unix": 1795138654.950903,
|
| 268 |
+
"task_id": "foundry-001",
|
| 269 |
+
"tool": "solve",
|
| 270 |
+
"category": "sim",
|
| 271 |
+
"discovery_used": 0,
|
| 272 |
+
"max_discovery_calls": 60,
|
| 273 |
+
"sim_used": 1,
|
| 274 |
+
"max_sim_calls": 36,
|
| 275 |
+
"budget_rejected": false,
|
| 276 |
+
"disabled_tool": false,
|
| 277 |
+
"is_error": false,
|
| 278 |
+
"args_sha384": "de0d1eaa6fcd725f33c3fe0a6eef51fb3dcdaa06f1ecc9edadc0bcd80856e09f005a95a778760f589f54da7a33352a25",
|
| 279 |
+
"answer_sha384": "3b328185099bc84ef629fdcac438972c7365b801cf04dbfcbc7daf1d3aacb050771f610781049730412fb705a81ea19f",
|
| 280 |
+
"call_spec": {
|
| 281 |
+
"tool": "solve",
|
| 282 |
+
"model_id": "cdu_loop_moc",
|
| 283 |
+
"args": {
|
| 284 |
+
"solver": "cdu_loop_moc",
|
| 285 |
+
"parameters": {
|
| 286 |
+
"supply_pressure_pa": 650000.0,
|
| 287 |
+
"return_pressure_pa": 180000.0,
|
| 288 |
+
"initial_flow_m3_s": 0.006,
|
| 289 |
+
"pipe_length_m": 24.0,
|
| 290 |
+
"pipe_diameter_m": 0.052,
|
| 291 |
+
"valve_closure_s": 3.8,
|
| 292 |
+
"coolant_temp_c": 22.0,
|
| 293 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 294 |
+
"fouling_factor": 0.05,
|
| 295 |
+
"pump_speed_rpm": 1800.0,
|
| 296 |
+
"duration_s": 0.6
|
| 297 |
+
}
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
"extracted_seals": [
|
| 301 |
+
"06dfebb21da49a9feccc8e1f2e01bf192d1af736a2cf0e7525364702157de2a077c2e5fc01552881f3eb944150bd53d5",
|
| 302 |
+
"1917f118911103b0ac467de1dcd5b7279511f2af47fc6b839d1be8c4b4c85e3b28c8174853a88836dd1d4f4255f62cb5"
|
| 303 |
+
],
|
| 304 |
+
"step_call_records": [],
|
| 305 |
+
"plugin_event": null,
|
| 306 |
+
"prev_sha384": "67cb0b98737c6e821696a09b99e821dd8c01e0b582f86cddba12fb0fb5f7c5a37d77a547c11629c0df9fb40b729dd843",
|
| 307 |
+
"entry_sha384": "9554c2867e6d8735111641c7827e936d566c1949213fd5a9db54c05ab61153763677e1add851813073531f30a08066e7"
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"seq": 3,
|
| 311 |
+
"ts_unix": 1795138654.95817,
|
| 312 |
+
"task_id": "foundry-001",
|
| 313 |
+
"tool": "solve",
|
| 314 |
+
"category": "sim",
|
| 315 |
+
"discovery_used": 0,
|
| 316 |
+
"max_discovery_calls": 60,
|
| 317 |
+
"sim_used": 2,
|
| 318 |
+
"max_sim_calls": 36,
|
| 319 |
+
"budget_rejected": false,
|
| 320 |
+
"disabled_tool": false,
|
| 321 |
+
"is_error": false,
|
| 322 |
+
"args_sha384": "3a734cde6dd35824dbe20887d2c0fc39c6eaa45a127e8e2e597dfd412f027a4179dcbd3178c4d5d0d1027fe2e4fecfc2",
|
| 323 |
+
"answer_sha384": "cfc04a4061f14ae134db3e0efa1d58a036570e34289736ad8824392ce71f3651ab0e38ed40e3e09fe937aef8015a215e",
|
| 324 |
+
"call_spec": {
|
| 325 |
+
"tool": "solve",
|
| 326 |
+
"model_id": "cdu_loop_moc",
|
| 327 |
+
"args": {
|
| 328 |
+
"solver": "cdu_loop_moc",
|
| 329 |
+
"parameters": {
|
| 330 |
+
"supply_pressure_pa": 650000.0,
|
| 331 |
+
"return_pressure_pa": 180000.0,
|
| 332 |
+
"initial_flow_m3_s": 0.006,
|
| 333 |
+
"pipe_length_m": 24.0,
|
| 334 |
+
"pipe_diameter_m": 0.052,
|
| 335 |
+
"valve_closure_s": 3.8,
|
| 336 |
+
"coolant_temp_c": 22.0,
|
| 337 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 338 |
+
"fouling_factor": 0.8,
|
| 339 |
+
"pump_speed_rpm": 1800.0,
|
| 340 |
+
"duration_s": 0.6
|
| 341 |
+
}
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
"extracted_seals": [
|
| 345 |
+
"9bcef85d0a5debb8bf3c60a299150f2c3f3bdb168dd13c52d5299dce3c5480ea9f198b0d03ed74cb0c08025ed9064747",
|
| 346 |
+
"33aab5ff661be211535b01793356a43be3fa52ec4adfe8488ba5500da4dd3479bbd9bc8d6cbdcb7fb7490627f2708b7b"
|
| 347 |
+
],
|
| 348 |
+
"step_call_records": [],
|
| 349 |
+
"plugin_event": null,
|
| 350 |
+
"prev_sha384": "9554c2867e6d8735111641c7827e936d566c1949213fd5a9db54c05ab61153763677e1add851813073531f30a08066e7",
|
| 351 |
+
"entry_sha384": "bd8ac9c956537caa049390d3abce98a0b4de7ae9f225b891eb77b6278d01a0bec2e6f6c7e130dfbfb48a013817f4100e"
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"seq": 4,
|
| 355 |
+
"ts_unix": 1795138654.96526,
|
| 356 |
+
"task_id": "foundry-001",
|
| 357 |
+
"tool": "solve",
|
| 358 |
+
"category": "sim",
|
| 359 |
+
"discovery_used": 0,
|
| 360 |
+
"max_discovery_calls": 60,
|
| 361 |
+
"sim_used": 3,
|
| 362 |
+
"max_sim_calls": 36,
|
| 363 |
+
"budget_rejected": false,
|
| 364 |
+
"disabled_tool": false,
|
| 365 |
+
"is_error": false,
|
| 366 |
+
"args_sha384": "1d814f9ee94791b3109df185def755541f6bab3893d199c28f0f725fcc806a33c476f8a9bbe27bc2940305192afdbdb5",
|
| 367 |
+
"answer_sha384": "bdd9df01b95e5a4cd56d53b2217e0fe0216ef7dad308f03a5aeeaf4938532d6420f9d541b63fafe119f9d93980eae908",
|
| 368 |
+
"call_spec": {
|
| 369 |
+
"tool": "solve",
|
| 370 |
+
"model_id": "cdu_loop_moc",
|
| 371 |
+
"args": {
|
| 372 |
+
"solver": "cdu_loop_moc",
|
| 373 |
+
"parameters": {
|
| 374 |
+
"supply_pressure_pa": 650000.0,
|
| 375 |
+
"return_pressure_pa": 180000.0,
|
| 376 |
+
"initial_flow_m3_s": 0.006,
|
| 377 |
+
"pipe_length_m": 24.0,
|
| 378 |
+
"pipe_diameter_m": 0.052,
|
| 379 |
+
"valve_closure_s": 3.8,
|
| 380 |
+
"coolant_temp_c": 22.0,
|
| 381 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 382 |
+
"fouling_factor": 0.6759287014682642,
|
| 383 |
+
"pump_speed_rpm": 1800.0,
|
| 384 |
+
"duration_s": 0.6
|
| 385 |
+
}
|
| 386 |
+
}
|
| 387 |
+
},
|
| 388 |
+
"extracted_seals": [
|
| 389 |
+
"6b480c305c355e1c5aca906c3a1958beb89e5c7cf8d26b301688ac7779ed715fe0217b7d32df0eac507a4cceaaf6a274",
|
| 390 |
+
"d800584685cbda4cef55a58d7dde1f44210f22b51d39757c830cf28dca96ed4525eb8d5344703909eca411fc53836f3d"
|
| 391 |
+
],
|
| 392 |
+
"step_call_records": [],
|
| 393 |
+
"plugin_event": null,
|
| 394 |
+
"prev_sha384": "bd8ac9c956537caa049390d3abce98a0b4de7ae9f225b891eb77b6278d01a0bec2e6f6c7e130dfbfb48a013817f4100e",
|
| 395 |
+
"entry_sha384": "faf5b69e65bfa56bb3a6ec89c2b6ba76077f3a1e25594cdc24be9daacfc2a60bd4c3cb4f50f525eb71db69a893531730"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"seq": 5,
|
| 399 |
+
"ts_unix": 1795138654.965943,
|
| 400 |
+
"task_id": "foundry-001",
|
| 401 |
+
"tool": "solve",
|
| 402 |
+
"category": "sim",
|
| 403 |
+
"discovery_used": 0,
|
| 404 |
+
"max_discovery_calls": 60,
|
| 405 |
+
"sim_used": 4,
|
| 406 |
+
"max_sim_calls": 36,
|
| 407 |
+
"budget_rejected": false,
|
| 408 |
+
"disabled_tool": false,
|
| 409 |
+
"is_error": false,
|
| 410 |
+
"args_sha384": "4e0c054aa7a2ba574b335b90bb0b8772d827f6c972846114ef350f2fa3d2f3d509af46c9c1d744bd93ac5fa352a65a08",
|
| 411 |
+
"answer_sha384": "59b441b99a3a608ea170b639efe704feae1f56436b6d85acf6a0cf413d736933be5af80e16e042ffe4d91a3ddb094535",
|
| 412 |
+
"call_spec": {
|
| 413 |
+
"tool": "solve",
|
| 414 |
+
"model_id": "rack_power_pll",
|
| 415 |
+
"args": {
|
| 416 |
+
"solver": "rack_power_pll",
|
| 417 |
+
"parameters": {
|
| 418 |
+
"step_rack_load_pu": 0.16,
|
| 419 |
+
"inverter_fraction": 0.14,
|
| 420 |
+
"pll_bandwidth_per_s": 20.0,
|
| 421 |
+
"governor_droop": 12.0,
|
| 422 |
+
"bess_support_current_a": 0.0,
|
| 423 |
+
"bess_parallel_strings": 140,
|
| 424 |
+
"bess_initial_soc": 0.5,
|
| 425 |
+
"bess_case_temp_c": 0.0,
|
| 426 |
+
"rack_dc_current_a": 160.0,
|
| 427 |
+
"parallel_feeder_legs": 20,
|
| 428 |
+
"duration_s": 3.0
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
"extracted_seals": [
|
| 433 |
+
"b93afc40b7eae88558165a75997bb8dc7b139089870505f1b1ccdb94455aed64de4c06773a7d9879b1cc37f61d30a62d",
|
| 434 |
+
"bcee8366d3e0eae7a7b8e32358474ba3f5dd9991697cfbc7b308fb97910ca6dab46737dcb1ec64044e46000acf21dc23"
|
| 435 |
+
],
|
| 436 |
+
"step_call_records": [],
|
| 437 |
+
"plugin_event": null,
|
| 438 |
+
"prev_sha384": "faf5b69e65bfa56bb3a6ec89c2b6ba76077f3a1e25594cdc24be9daacfc2a60bd4c3cb4f50f525eb71db69a893531730",
|
| 439 |
+
"entry_sha384": "6f0a69893bacebf415b6667fda93aa03a80ce82872e54260810841f1e7248bbef1073b4501b6a332094827efe78d7dd6"
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"seq": 6,
|
| 443 |
+
"ts_unix": 1795138654.966419,
|
| 444 |
+
"task_id": "foundry-001",
|
| 445 |
+
"tool": "solve",
|
| 446 |
+
"category": "sim",
|
| 447 |
+
"discovery_used": 0,
|
| 448 |
+
"max_discovery_calls": 60,
|
| 449 |
+
"sim_used": 5,
|
| 450 |
+
"max_sim_calls": 36,
|
| 451 |
+
"budget_rejected": false,
|
| 452 |
+
"disabled_tool": false,
|
| 453 |
+
"is_error": false,
|
| 454 |
+
"args_sha384": "20ee51f6f045bf726d0b67f7cf1cf12b5671417114de9bfe098237799117494c7256bb4b61bbe02b2cebd1e841f6944f",
|
| 455 |
+
"answer_sha384": "2251febd78d50cb04c565564cfcc715f440cbf4fab9915282e49335fd7e5d9b717f43e0fe078eae8464514c63fea8e2e",
|
| 456 |
+
"call_spec": {
|
| 457 |
+
"tool": "solve",
|
| 458 |
+
"model_id": "rack_power_pll",
|
| 459 |
+
"args": {
|
| 460 |
+
"solver": "rack_power_pll",
|
| 461 |
+
"parameters": {
|
| 462 |
+
"step_rack_load_pu": 0.16,
|
| 463 |
+
"inverter_fraction": 0.56,
|
| 464 |
+
"pll_bandwidth_per_s": 20.0,
|
| 465 |
+
"governor_droop": 12.0,
|
| 466 |
+
"bess_support_current_a": 0.0,
|
| 467 |
+
"bess_parallel_strings": 140,
|
| 468 |
+
"bess_initial_soc": 0.5,
|
| 469 |
+
"bess_case_temp_c": 0.0,
|
| 470 |
+
"rack_dc_current_a": 160.0,
|
| 471 |
+
"parallel_feeder_legs": 20,
|
| 472 |
+
"duration_s": 3.0
|
| 473 |
+
}
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
"extracted_seals": [
|
| 477 |
+
"1081db8ce02f9466762a710b5e9ac9280de086895e298d9e248bd1ab1d63082b351ab3ba81bf5b80b4a7c19d0af83405",
|
| 478 |
+
"6c5d7e0df36fb570fa4b32bbc7bd42665e31610982f3a29a76238065def1e8eae186d25375c481a6a895f2db898be741"
|
| 479 |
+
],
|
| 480 |
+
"step_call_records": [],
|
| 481 |
+
"plugin_event": null,
|
| 482 |
+
"prev_sha384": "6f0a69893bacebf415b6667fda93aa03a80ce82872e54260810841f1e7248bbef1073b4501b6a332094827efe78d7dd6",
|
| 483 |
+
"entry_sha384": "b413a3231654f7ec412abb268ef1605d9c76b622a1855d967e9865ccd36d89883aa8aaf306fa55092500ece5ce00984d"
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"seq": 7,
|
| 487 |
+
"ts_unix": 1795138654.966855,
|
| 488 |
+
"task_id": "foundry-001",
|
| 489 |
+
"tool": "solve",
|
| 490 |
+
"category": "sim",
|
| 491 |
+
"discovery_used": 0,
|
| 492 |
+
"max_discovery_calls": 60,
|
| 493 |
+
"sim_used": 6,
|
| 494 |
+
"max_sim_calls": 36,
|
| 495 |
+
"budget_rejected": false,
|
| 496 |
+
"disabled_tool": false,
|
| 497 |
+
"is_error": false,
|
| 498 |
+
"args_sha384": "ca505c5e25bb7cb5f434eb03ca033d1742f3cf6e57d4febef0b2b305c0263d87835b32848681c6aeeca293f4addc60a6",
|
| 499 |
+
"answer_sha384": "44fcfb43a543c650b0c7bda5608448ac5d455f5266766a9cd252cf642a3390ae3ce77d580774f9a495a390b03be1e802",
|
| 500 |
+
"call_spec": {
|
| 501 |
+
"tool": "solve",
|
| 502 |
+
"model_id": "rack_power_pll",
|
| 503 |
+
"args": {
|
| 504 |
+
"solver": "rack_power_pll",
|
| 505 |
+
"parameters": {
|
| 506 |
+
"step_rack_load_pu": 0.16,
|
| 507 |
+
"inverter_fraction": 0.2711921150820793,
|
| 508 |
+
"pll_bandwidth_per_s": 20.0,
|
| 509 |
+
"governor_droop": 12.0,
|
| 510 |
+
"bess_support_current_a": 0.0,
|
| 511 |
+
"bess_parallel_strings": 140,
|
| 512 |
+
"bess_initial_soc": 0.5,
|
| 513 |
+
"bess_case_temp_c": 0.0,
|
| 514 |
+
"rack_dc_current_a": 160.0,
|
| 515 |
+
"parallel_feeder_legs": 20,
|
| 516 |
+
"duration_s": 3.0
|
| 517 |
+
}
|
| 518 |
+
}
|
| 519 |
+
},
|
| 520 |
+
"extracted_seals": [
|
| 521 |
+
"a24a99f303f9d5897350417816e70dd8a7ef411f6b94b94838dbb7fc997b471f9936e64a2da3c49e20a05b6495329947",
|
| 522 |
+
"6bd491b9469ae5b55c85afeaccfb8017f6f37a8119863422c97c416f0911a59359caecf7e2d9cca168c610761e35d3b9"
|
| 523 |
+
],
|
| 524 |
+
"step_call_records": [],
|
| 525 |
+
"plugin_event": null,
|
| 526 |
+
"prev_sha384": "b413a3231654f7ec412abb268ef1605d9c76b622a1855d967e9865ccd36d89883aa8aaf306fa55092500ece5ce00984d",
|
| 527 |
+
"entry_sha384": "b2f4f86b7906d4b6c71d59aba2d2c8e0de4776fc8e92948a2be38816960601cd357579dc05f82a9edc85567d66051879"
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"seq": 8,
|
| 531 |
+
"ts_unix": 1795138654.978382,
|
| 532 |
+
"task_id": "foundry-001",
|
| 533 |
+
"tool": "commission_probe",
|
| 534 |
+
"category": "exempt",
|
| 535 |
+
"discovery_used": 0,
|
| 536 |
+
"max_discovery_calls": 60,
|
| 537 |
+
"sim_used": 6,
|
| 538 |
+
"max_sim_calls": 36,
|
| 539 |
+
"budget_rejected": false,
|
| 540 |
+
"disabled_tool": false,
|
| 541 |
+
"is_error": false,
|
| 542 |
+
"args_sha384": "fc7d8a8e98425f2e650bed0e436cbdbdb34d91113ee6d0c75827add07a81562e4f202d304b7894cbf415de69d083342d",
|
| 543 |
+
"answer_sha384": "5cfa1147134fd94523d42fafbaf9ac66a6ea89ca4c1ae407b8c36811ed1d01738ff0821ea723ec846f4d3c7e6e820145",
|
| 544 |
+
"call_spec": null,
|
| 545 |
+
"extracted_seals": [],
|
| 546 |
+
"step_call_records": [],
|
| 547 |
+
"plugin_event": {
|
| 548 |
+
"kind": "foundry_probe",
|
| 549 |
+
"probe_index": 2,
|
| 550 |
+
"request": {
|
| 551 |
+
"flow_m3_s": 0.006,
|
| 552 |
+
"valve_pulse_closure_s": 4.0,
|
| 553 |
+
"heater_test_power_w": 2400.0,
|
| 554 |
+
"bess_test_current_a": 0.2,
|
| 555 |
+
"duration_s": 2.0
|
| 556 |
+
},
|
| 557 |
+
"observation": {
|
| 558 |
+
"probe_index": 2,
|
| 559 |
+
"probes_remaining": 1,
|
| 560 |
+
"measured_steady_drop_pa": 94335.7915907742,
|
| 561 |
+
"measured_echo_time_s": 0.14302686591636893,
|
| 562 |
+
"measured_peak_hammer_pa": 649817.3419574975,
|
| 563 |
+
"measured_inlet_temp_k": 295.18133891831997,
|
| 564 |
+
"measured_junction_temp_k": 298.40403027231633,
|
| 565 |
+
"measured_cell_terminal_v": 4.035969453705264,
|
| 566 |
+
"measured_grid_freq_nadir_hz": 59.85986767436092,
|
| 567 |
+
"bess_cutoff_triggered": false,
|
| 568 |
+
"cavitation_triggered": false
|
| 569 |
+
},
|
| 570 |
+
"post_probe_memory": {
|
| 571 |
+
"probes_used": 2,
|
| 572 |
+
"current_bess_soc": 0.833333544973545,
|
| 573 |
+
"current_coolant_temp_c": 22.14,
|
| 574 |
+
"accumulated_wear_factor": 0.004
|
| 575 |
+
}
|
| 576 |
+
},
|
| 577 |
+
"prev_sha384": "b2f4f86b7906d4b6c71d59aba2d2c8e0de4776fc8e92948a2be38816960601cd357579dc05f82a9edc85567d66051879",
|
| 578 |
+
"entry_sha384": "afc2680bfe7c5dc9152fe17d5bbaff366dcf691377c3d115f46d0b2e4f6cdc8bd12a1d0c8c393c8a4ffba2710e7c96c0"
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"seq": 9,
|
| 582 |
+
"ts_unix": 1795138654.979119,
|
| 583 |
+
"task_id": "foundry-001",
|
| 584 |
+
"tool": "solve",
|
| 585 |
+
"category": "sim",
|
| 586 |
+
"discovery_used": 0,
|
| 587 |
+
"max_discovery_calls": 60,
|
| 588 |
+
"sim_used": 7,
|
| 589 |
+
"max_sim_calls": 36,
|
| 590 |
+
"budget_rejected": false,
|
| 591 |
+
"disabled_tool": false,
|
| 592 |
+
"is_error": false,
|
| 593 |
+
"args_sha384": "901045ba470414e75aa3cfef8a4f2f9a9d309944cdefc313371743a0acbd7149ecdc389250b349b9187958738d3ff32e",
|
| 594 |
+
"answer_sha384": "b64ce3107d826dfc3742591114ff04700e92b994367a8b0f62327acaa7cd34239112d87f376ac8b83dcab5b9051c0ba5",
|
| 595 |
+
"call_spec": {
|
| 596 |
+
"tool": "solve",
|
| 597 |
+
"model_id": "die_coldplate_fe",
|
| 598 |
+
"args": {
|
| 599 |
+
"solver": "die_coldplate_fe",
|
| 600 |
+
"parameters": {
|
| 601 |
+
"base_compute_power_w": 600.0,
|
| 602 |
+
"leakage_ref_power_w": 220.0,
|
| 603 |
+
"coolant_mass_flow_kg_s": 0.13,
|
| 604 |
+
"coolant_inlet_temp_k": 295.15,
|
| 605 |
+
"saturation_temp_k": 368.15,
|
| 606 |
+
"fin_area_multiplier": 3.0,
|
| 607 |
+
"tim_thickness_um": 60.0,
|
| 608 |
+
"clamp_preload_mpa": 5.0,
|
| 609 |
+
"fouling_factor": 0.6879898221791575,
|
| 610 |
+
"duration_s": 3.0,
|
| 611 |
+
"dt_s": 0.05,
|
| 612 |
+
"initial_vapor_lock": false
|
| 613 |
+
}
|
| 614 |
+
}
|
| 615 |
+
},
|
| 616 |
+
"extracted_seals": [
|
| 617 |
+
"808ac171f84572ecf257247ca35892174dd6228345d80ca9786c08919aa0ed956995cad97a610aa641454cf46d0462dc",
|
| 618 |
+
"0cce2a32832fb03f43958cf88e3d7e8ef9bbe8ccf543dd55b5902d71fbd92d166515ea7f2b12fb6e57623c1b75148e00"
|
| 619 |
+
],
|
| 620 |
+
"step_call_records": [],
|
| 621 |
+
"plugin_event": null,
|
| 622 |
+
"prev_sha384": "afc2680bfe7c5dc9152fe17d5bbaff366dcf691377c3d115f46d0b2e4f6cdc8bd12a1d0c8c393c8a4ffba2710e7c96c0",
|
| 623 |
+
"entry_sha384": "78c5525ba49ad912663310e26b73ee260f5c240d59966bf37081690ba70efc7e12d04890f90e7f9b399e762ba7bcc66f"
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"seq": 10,
|
| 627 |
+
"ts_unix": 1795138654.979596,
|
| 628 |
+
"task_id": "foundry-001",
|
| 629 |
+
"tool": "solve",
|
| 630 |
+
"category": "sim",
|
| 631 |
+
"discovery_used": 0,
|
| 632 |
+
"max_discovery_calls": 60,
|
| 633 |
+
"sim_used": 8,
|
| 634 |
+
"max_sim_calls": 36,
|
| 635 |
+
"budget_rejected": false,
|
| 636 |
+
"disabled_tool": false,
|
| 637 |
+
"is_error": false,
|
| 638 |
+
"args_sha384": "7b79d17232a18e556cf90e85b6dd9963e6e9cf4028c17c35fc8802a1347519660eee9ac91214c7c48b55b5862d77f6e1",
|
| 639 |
+
"answer_sha384": "edd35d349a8c14864986dee373a2f8f63221a0a4fa2a3299e07849ccfd93a58ec8fd72370e6be11b3c324e2d00d2a6b3",
|
| 640 |
+
"call_spec": {
|
| 641 |
+
"tool": "solve",
|
| 642 |
+
"model_id": "die_coldplate_fe",
|
| 643 |
+
"args": {
|
| 644 |
+
"solver": "die_coldplate_fe",
|
| 645 |
+
"parameters": {
|
| 646 |
+
"base_compute_power_w": 2400.0,
|
| 647 |
+
"leakage_ref_power_w": 220.0,
|
| 648 |
+
"coolant_mass_flow_kg_s": 0.13,
|
| 649 |
+
"coolant_inlet_temp_k": 295.1947272727273,
|
| 650 |
+
"saturation_temp_k": 368.15,
|
| 651 |
+
"fin_area_multiplier": 3.0,
|
| 652 |
+
"tim_thickness_um": 60.0,
|
| 653 |
+
"clamp_preload_mpa": 5.0,
|
| 654 |
+
"fouling_factor": 0.6899898221791575,
|
| 655 |
+
"duration_s": 2.0,
|
| 656 |
+
"dt_s": 0.05,
|
| 657 |
+
"initial_vapor_lock": false
|
| 658 |
+
}
|
| 659 |
+
}
|
| 660 |
+
},
|
| 661 |
+
"extracted_seals": [
|
| 662 |
+
"f551eaed9f457e372e36cc3b497270e2bfb2ac88e3588088a274738f3e3ba0e5a73db47c5434fb24eb31c234a771b4c2",
|
| 663 |
+
"5987f7c688c434f0181e56094db8d698515cee23c9e15138b226f33c1ae3571db72787ed581dcd7914a6962db8d93647"
|
| 664 |
+
],
|
| 665 |
+
"step_call_records": [],
|
| 666 |
+
"plugin_event": null,
|
| 667 |
+
"prev_sha384": "78c5525ba49ad912663310e26b73ee260f5c240d59966bf37081690ba70efc7e12d04890f90e7f9b399e762ba7bcc66f",
|
| 668 |
+
"entry_sha384": "321789fd39ab23fee2abfc42906d0a056450882b2641ee8891f18747bf068d98a919e7d6f905ba4d1b62606bfc408724"
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"seq": 11,
|
| 672 |
+
"ts_unix": 1795138654.991392,
|
| 673 |
+
"task_id": "foundry-001",
|
| 674 |
+
"tool": "commission_probe",
|
| 675 |
+
"category": "exempt",
|
| 676 |
+
"discovery_used": 0,
|
| 677 |
+
"max_discovery_calls": 60,
|
| 678 |
+
"sim_used": 8,
|
| 679 |
+
"max_sim_calls": 36,
|
| 680 |
+
"budget_rejected": false,
|
| 681 |
+
"disabled_tool": false,
|
| 682 |
+
"is_error": false,
|
| 683 |
+
"args_sha384": "7cfa20547b9b9a39ad7e7b8402f1d13d5bcc83166af405d8c9b684868782330394fd03c8c49061b00172398624c553a1",
|
| 684 |
+
"answer_sha384": "418bb535ab717fc99afd8143aa9611ae428e5f22523d07001235523b6447a17ddb83f82f53b08c5c0633b97a16b473a7",
|
| 685 |
+
"call_spec": null,
|
| 686 |
+
"extracted_seals": [],
|
| 687 |
+
"step_call_records": [],
|
| 688 |
+
"plugin_event": {
|
| 689 |
+
"kind": "foundry_probe",
|
| 690 |
+
"probe_index": 3,
|
| 691 |
+
"request": {
|
| 692 |
+
"flow_m3_s": 0.006,
|
| 693 |
+
"valve_pulse_closure_s": 4.0,
|
| 694 |
+
"heater_test_power_w": 0.0,
|
| 695 |
+
"bess_test_current_a": 4.2,
|
| 696 |
+
"duration_s": 4.0
|
| 697 |
+
},
|
| 698 |
+
"observation": {
|
| 699 |
+
"probe_index": 3,
|
| 700 |
+
"probes_remaining": 0,
|
| 701 |
+
"measured_steady_drop_pa": 94360.10147019027,
|
| 702 |
+
"measured_echo_time_s": 0.14308864715670425,
|
| 703 |
+
"measured_peak_hammer_pa": 650525.8556705499,
|
| 704 |
+
"measured_inlet_temp_k": 295.2979133687555,
|
| 705 |
+
"measured_junction_temp_k": 295.0200491466553,
|
| 706 |
+
"measured_cell_terminal_v": 3.5425869707118793,
|
| 707 |
+
"measured_grid_freq_nadir_hz": 59.91943934039068,
|
| 708 |
+
"bess_cutoff_triggered": false,
|
| 709 |
+
"cavitation_triggered": false
|
| 710 |
+
},
|
| 711 |
+
"post_probe_memory": {
|
| 712 |
+
"probes_used": 3,
|
| 713 |
+
"current_bess_soc": 0.8322224338624337,
|
| 714 |
+
"current_coolant_temp_c": 22.156,
|
| 715 |
+
"accumulated_wear_factor": 0.006
|
| 716 |
+
}
|
| 717 |
+
},
|
| 718 |
+
"prev_sha384": "321789fd39ab23fee2abfc42906d0a056450882b2641ee8891f18747bf068d98a919e7d6f905ba4d1b62606bfc408724",
|
| 719 |
+
"entry_sha384": "adaf29ea7847414c52ebce5984c70b80d06f198d8f7db8ea2b0f8e1cb193347233383661841428b86524e959e62fd5e6"
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"seq": 12,
|
| 723 |
+
"ts_unix": 1795138654.992213,
|
| 724 |
+
"task_id": "foundry-001",
|
| 725 |
+
"tool": "solve",
|
| 726 |
+
"category": "sim",
|
| 727 |
+
"discovery_used": 0,
|
| 728 |
+
"max_discovery_calls": 60,
|
| 729 |
+
"sim_used": 9,
|
| 730 |
+
"max_sim_calls": 36,
|
| 731 |
+
"budget_rejected": false,
|
| 732 |
+
"disabled_tool": false,
|
| 733 |
+
"is_error": false,
|
| 734 |
+
"args_sha384": "e5ddf7b2bee7b9f002a1374c471824ebcc8c85f258975de877e9472985da28239bcf18785b7fb9749286b5fe20ebcb23",
|
| 735 |
+
"answer_sha384": "7116830ad80622e51f16717d942e18e5441509df5eea66cef20ad65ec2018f418e5f2a5b9f5347bbc0e1263d3068b689",
|
| 736 |
+
"call_spec": {
|
| 737 |
+
"tool": "solve",
|
| 738 |
+
"model_id": "rack_power_pll",
|
| 739 |
+
"args": {
|
| 740 |
+
"solver": "rack_power_pll",
|
| 741 |
+
"parameters": {
|
| 742 |
+
"step_rack_load_pu": 0.16,
|
| 743 |
+
"inverter_fraction": 0.304035615487262,
|
| 744 |
+
"pll_bandwidth_per_s": 20.0,
|
| 745 |
+
"governor_droop": 12.0,
|
| 746 |
+
"bess_support_current_a": 0.2,
|
| 747 |
+
"bess_parallel_strings": 140,
|
| 748 |
+
"bess_initial_soc": 0.8118384507185074,
|
| 749 |
+
"bess_case_temp_c": -11.302861847697553,
|
| 750 |
+
"rack_dc_current_a": 160.0,
|
| 751 |
+
"parallel_feeder_legs": 20,
|
| 752 |
+
"duration_s": 2.0
|
| 753 |
+
}
|
| 754 |
+
}
|
| 755 |
+
},
|
| 756 |
+
"extracted_seals": [
|
| 757 |
+
"3cc6b625e83d5a417d843e25b0c8a939df678138c18551df784e48f8d25b92874759f495dd60a8072ab82b83f52cfc3c",
|
| 758 |
+
"a71bd9152dc5a852e4757ade60e6463c0dc1459fa31e949bb32bc8f86625a208c85bbd16301dfa5aca39272e76af6dfc"
|
| 759 |
+
],
|
| 760 |
+
"step_call_records": [],
|
| 761 |
+
"plugin_event": null,
|
| 762 |
+
"prev_sha384": "adaf29ea7847414c52ebce5984c70b80d06f198d8f7db8ea2b0f8e1cb193347233383661841428b86524e959e62fd5e6",
|
| 763 |
+
"entry_sha384": "5e38e92b764c84d571a8714f41bf98ae3e0318adf37577de8ca9a93851ca1405369b7c3e3487a288375bdee0d79892dd"
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"seq": 13,
|
| 767 |
+
"ts_unix": 1795138654.992802,
|
| 768 |
+
"task_id": "foundry-001",
|
| 769 |
+
"tool": "solve",
|
| 770 |
+
"category": "sim",
|
| 771 |
+
"discovery_used": 0,
|
| 772 |
+
"max_discovery_calls": 60,
|
| 773 |
+
"sim_used": 10,
|
| 774 |
+
"max_sim_calls": 36,
|
| 775 |
+
"budget_rejected": false,
|
| 776 |
+
"disabled_tool": false,
|
| 777 |
+
"is_error": false,
|
| 778 |
+
"args_sha384": "cc9c083b1b69411d25bc3c616bae813ff336018bb5e23a9ca726beba319345aed78ca25748c4b70aee487d34926a1fac",
|
| 779 |
+
"answer_sha384": "b3262c598f9241050972ec6135e0d9f021479a0633b5e7bcddffe4bfa9aaf6450316a2fe00094f6c43f44805b7249453",
|
| 780 |
+
"call_spec": {
|
| 781 |
+
"tool": "solve",
|
| 782 |
+
"model_id": "rack_power_pll",
|
| 783 |
+
"args": {
|
| 784 |
+
"solver": "rack_power_pll",
|
| 785 |
+
"parameters": {
|
| 786 |
+
"step_rack_load_pu": 0.16,
|
| 787 |
+
"inverter_fraction": 0.304035615487262,
|
| 788 |
+
"pll_bandwidth_per_s": 20.0,
|
| 789 |
+
"governor_droop": 12.0,
|
| 790 |
+
"bess_support_current_a": 4.2,
|
| 791 |
+
"bess_parallel_strings": 140,
|
| 792 |
+
"bess_initial_soc": 0.8118119956920523,
|
| 793 |
+
"bess_case_temp_c": -11.302861847697553,
|
| 794 |
+
"rack_dc_current_a": 160.0,
|
| 795 |
+
"parallel_feeder_legs": 20,
|
| 796 |
+
"duration_s": 4.0
|
| 797 |
+
}
|
| 798 |
+
}
|
| 799 |
+
},
|
| 800 |
+
"extracted_seals": [
|
| 801 |
+
"d87ee1c23ea41c9ac10f5a3b3920484b6697cb82eeb7a4ff62a694493e2e2ac81c2815cb3c8cb0b7f205fbdac88cd8c5",
|
| 802 |
+
"f4eb9d0baacdfb15e1910f1bbca4cec70d490bb909aece336bd482ba229981b34ba1e515c08f5b6f5d980aaf766ea59f"
|
| 803 |
+
],
|
| 804 |
+
"step_call_records": [],
|
| 805 |
+
"plugin_event": null,
|
| 806 |
+
"prev_sha384": "5e38e92b764c84d571a8714f41bf98ae3e0318adf37577de8ca9a93851ca1405369b7c3e3487a288375bdee0d79892dd",
|
| 807 |
+
"entry_sha384": "e59e058d4c7776a52d1d7e8a3ff3f31222e14c00debdd5104aa9eeaa1ede30ed787209e2e4517528aad8294e7f20ca7d"
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"seq": 14,
|
| 811 |
+
"ts_unix": 1795138654.993375,
|
| 812 |
+
"task_id": "foundry-001",
|
| 813 |
+
"tool": "solve",
|
| 814 |
+
"category": "sim",
|
| 815 |
+
"discovery_used": 0,
|
| 816 |
+
"max_discovery_calls": 60,
|
| 817 |
+
"sim_used": 11,
|
| 818 |
+
"max_sim_calls": 36,
|
| 819 |
+
"budget_rejected": false,
|
| 820 |
+
"disabled_tool": false,
|
| 821 |
+
"is_error": false,
|
| 822 |
+
"args_sha384": "c67eb07a8034132251c927dd6eb09d878595d1b23039d17b0a23341f1a422429e1df678c6c56a5bba118dd5efe5ebdab",
|
| 823 |
+
"answer_sha384": "7cc1b5704ffb7891055c69756264897728d0c711601dce65eaf9e33716fd2709b464218b0ca244b3e541a747aaf1ee3c",
|
| 824 |
+
"call_spec": {
|
| 825 |
+
"tool": "solve",
|
| 826 |
+
"model_id": "rack_power_pll",
|
| 827 |
+
"args": {
|
| 828 |
+
"solver": "rack_power_pll",
|
| 829 |
+
"parameters": {
|
| 830 |
+
"step_rack_load_pu": 0.16,
|
| 831 |
+
"inverter_fraction": 0.304035615487262,
|
| 832 |
+
"pll_bandwidth_per_s": 20.0,
|
| 833 |
+
"governor_droop": 12.0,
|
| 834 |
+
"bess_support_current_a": 0.2,
|
| 835 |
+
"bess_parallel_strings": 140,
|
| 836 |
+
"bess_initial_soc": 0.8468384507185074,
|
| 837 |
+
"bess_case_temp_c": -11.302861847697553,
|
| 838 |
+
"rack_dc_current_a": 160.0,
|
| 839 |
+
"parallel_feeder_legs": 20,
|
| 840 |
+
"duration_s": 2.0
|
| 841 |
+
}
|
| 842 |
+
}
|
| 843 |
+
},
|
| 844 |
+
"extracted_seals": [
|
| 845 |
+
"641cc763373f48aa5a4a7781192b970e780ec6dd72ce9557fd56cb5244ae81a171dc729ccf52a6858a1e0ca8e67a203a",
|
| 846 |
+
"e49a42f5213e8adcb570771836b693e9a71999f332ffde4cb6a2a0a600b2e0adf7934ae179bf6d413f5b18277aa50c15"
|
| 847 |
+
],
|
| 848 |
+
"step_call_records": [],
|
| 849 |
+
"plugin_event": null,
|
| 850 |
+
"prev_sha384": "e59e058d4c7776a52d1d7e8a3ff3f31222e14c00debdd5104aa9eeaa1ede30ed787209e2e4517528aad8294e7f20ca7d",
|
| 851 |
+
"entry_sha384": "0059e76570fcde3ee3aba99bffae11b540b66e0a484e6a5a039db90ffebcda42a3326c969ccf009a6de59781fe373ca1"
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"seq": 15,
|
| 855 |
+
"ts_unix": 1795138654.993814,
|
| 856 |
+
"task_id": "foundry-001",
|
| 857 |
+
"tool": "solve",
|
| 858 |
+
"category": "sim",
|
| 859 |
+
"discovery_used": 0,
|
| 860 |
+
"max_discovery_calls": 60,
|
| 861 |
+
"sim_used": 12,
|
| 862 |
+
"max_sim_calls": 36,
|
| 863 |
+
"budget_rejected": false,
|
| 864 |
+
"disabled_tool": false,
|
| 865 |
+
"is_error": false,
|
| 866 |
+
"args_sha384": "96c84ffd7355628d1a5212a9858df118bc6c23805292a0293d4cf1c94cdcd205c60ebac6193f848f72319b0e11eec285",
|
| 867 |
+
"answer_sha384": "67227f42b7714075ff70ad91fb46655b8ede961838cb9ff4f80a75b1c85e2b3119a3d65617eb14f6e3fc26182b01138d",
|
| 868 |
+
"call_spec": {
|
| 869 |
+
"tool": "solve",
|
| 870 |
+
"model_id": "rack_power_pll",
|
| 871 |
+
"args": {
|
| 872 |
+
"solver": "rack_power_pll",
|
| 873 |
+
"parameters": {
|
| 874 |
+
"step_rack_load_pu": 0.16,
|
| 875 |
+
"inverter_fraction": 0.304035615487262,
|
| 876 |
+
"pll_bandwidth_per_s": 20.0,
|
| 877 |
+
"governor_droop": 12.0,
|
| 878 |
+
"bess_support_current_a": 4.2,
|
| 879 |
+
"bess_parallel_strings": 140,
|
| 880 |
+
"bess_initial_soc": 0.8468119956920523,
|
| 881 |
+
"bess_case_temp_c": -11.302861847697553,
|
| 882 |
+
"rack_dc_current_a": 160.0,
|
| 883 |
+
"parallel_feeder_legs": 20,
|
| 884 |
+
"duration_s": 4.0
|
| 885 |
+
}
|
| 886 |
+
}
|
| 887 |
+
},
|
| 888 |
+
"extracted_seals": [
|
| 889 |
+
"612598726fc12ba53747266efeedf59d098d23266e636d17993c662ece86b644fcf8656ae7c3f60cdceaf5faeab0e8fa",
|
| 890 |
+
"e61ea88f55cc680228085a8e873f21a09ff1a75b5a3f40e2372cdd000e05894de6d18efe1a841a3d0c71a5054726c99c"
|
| 891 |
+
],
|
| 892 |
+
"step_call_records": [],
|
| 893 |
+
"plugin_event": null,
|
| 894 |
+
"prev_sha384": "0059e76570fcde3ee3aba99bffae11b540b66e0a484e6a5a039db90ffebcda42a3326c969ccf009a6de59781fe373ca1",
|
| 895 |
+
"entry_sha384": "8038b73c235e5d9ab31474025a21ac959a54259b7d72c97fa090b616b04b6fe7fa1ae93eb7293cdc7a1689e9a4c05fec"
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"seq": 16,
|
| 899 |
+
"ts_unix": 1795138654.994285,
|
| 900 |
+
"task_id": "foundry-001",
|
| 901 |
+
"tool": "solve",
|
| 902 |
+
"category": "sim",
|
| 903 |
+
"discovery_used": 0,
|
| 904 |
+
"max_discovery_calls": 60,
|
| 905 |
+
"sim_used": 13,
|
| 906 |
+
"max_sim_calls": 36,
|
| 907 |
+
"budget_rejected": false,
|
| 908 |
+
"disabled_tool": false,
|
| 909 |
+
"is_error": false,
|
| 910 |
+
"args_sha384": "829e52dabf27b3d34b0d540dff18ed7c59660de3b1f47734588058c443af95c2047bbbb5bc3e34c9b268765de93603da",
|
| 911 |
+
"answer_sha384": "91ab4046cd012ebb6eee36bb9bd729309d35dcf28bc839e3921c78a14526a6353ad37626096afd2c5183d85c2d6abaf7",
|
| 912 |
+
"call_spec": {
|
| 913 |
+
"tool": "solve",
|
| 914 |
+
"model_id": "rack_power_pll",
|
| 915 |
+
"args": {
|
| 916 |
+
"solver": "rack_power_pll",
|
| 917 |
+
"parameters": {
|
| 918 |
+
"step_rack_load_pu": 0.16,
|
| 919 |
+
"inverter_fraction": 0.304035615487262,
|
| 920 |
+
"pll_bandwidth_per_s": 20.0,
|
| 921 |
+
"governor_droop": 12.0,
|
| 922 |
+
"bess_support_current_a": 0.2,
|
| 923 |
+
"bess_parallel_strings": 140,
|
| 924 |
+
"bess_initial_soc": 0.8118384507185074,
|
| 925 |
+
"bess_case_temp_c": -8.302861847697553,
|
| 926 |
+
"rack_dc_current_a": 160.0,
|
| 927 |
+
"parallel_feeder_legs": 20,
|
| 928 |
+
"duration_s": 2.0
|
| 929 |
+
}
|
| 930 |
+
}
|
| 931 |
+
},
|
| 932 |
+
"extracted_seals": [
|
| 933 |
+
"766cf9db257942d868fb7ff047ca822fa0dcbce27a13f0542814063f492c0bcf8550d9828d897105ae9477c79241db4f",
|
| 934 |
+
"f5256bae8d60e0e19c66c7ea77554c664c3dd013b94b0a77bb7c118a80fc763a36772fa4e857f38016dbc95d77774509"
|
| 935 |
+
],
|
| 936 |
+
"step_call_records": [],
|
| 937 |
+
"plugin_event": null,
|
| 938 |
+
"prev_sha384": "8038b73c235e5d9ab31474025a21ac959a54259b7d72c97fa090b616b04b6fe7fa1ae93eb7293cdc7a1689e9a4c05fec",
|
| 939 |
+
"entry_sha384": "fe295f1f5d08f48a37f1d5e5f8950706b713c5b92d9e8f2b86b3fc57ba7aedd028a18c5c1282158be9f15da6d3fb1950"
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"seq": 17,
|
| 943 |
+
"ts_unix": 1795138654.994759,
|
| 944 |
+
"task_id": "foundry-001",
|
| 945 |
+
"tool": "solve",
|
| 946 |
+
"category": "sim",
|
| 947 |
+
"discovery_used": 0,
|
| 948 |
+
"max_discovery_calls": 60,
|
| 949 |
+
"sim_used": 14,
|
| 950 |
+
"max_sim_calls": 36,
|
| 951 |
+
"budget_rejected": false,
|
| 952 |
+
"disabled_tool": false,
|
| 953 |
+
"is_error": false,
|
| 954 |
+
"args_sha384": "daa7e36554a9b4513424c33b7216389927c5a635516a392d058b7f3ede38fbac132174b3504d93a1cffa4ae1c58fda4b",
|
| 955 |
+
"answer_sha384": "fa3def2da33450731a1f879b2fefc202fa15ee45a087af10c1a06b6645cf13bb15f8dfd88a33c7b1c0a2889824e76b4b",
|
| 956 |
+
"call_spec": {
|
| 957 |
+
"tool": "solve",
|
| 958 |
+
"model_id": "rack_power_pll",
|
| 959 |
+
"args": {
|
| 960 |
+
"solver": "rack_power_pll",
|
| 961 |
+
"parameters": {
|
| 962 |
+
"step_rack_load_pu": 0.16,
|
| 963 |
+
"inverter_fraction": 0.304035615487262,
|
| 964 |
+
"pll_bandwidth_per_s": 20.0,
|
| 965 |
+
"governor_droop": 12.0,
|
| 966 |
+
"bess_support_current_a": 4.2,
|
| 967 |
+
"bess_parallel_strings": 140,
|
| 968 |
+
"bess_initial_soc": 0.8118119956920523,
|
| 969 |
+
"bess_case_temp_c": -8.302861847697553,
|
| 970 |
+
"rack_dc_current_a": 160.0,
|
| 971 |
+
"parallel_feeder_legs": 20,
|
| 972 |
+
"duration_s": 4.0
|
| 973 |
+
}
|
| 974 |
+
}
|
| 975 |
+
},
|
| 976 |
+
"extracted_seals": [
|
| 977 |
+
"e874d5acbde6c8e8c50dac897117563262acc56bb0063c510feecf334eef7b3631e32a1914f5580a35a578f88efb9111",
|
| 978 |
+
"2f7f27e68a83b2d48b82b3d72816ecca51177823cb49033596e0e84715a3f57d6572ed78d51bac665c162279207dadd9"
|
| 979 |
+
],
|
| 980 |
+
"step_call_records": [],
|
| 981 |
+
"plugin_event": null,
|
| 982 |
+
"prev_sha384": "fe295f1f5d08f48a37f1d5e5f8950706b713c5b92d9e8f2b86b3fc57ba7aedd028a18c5c1282158be9f15da6d3fb1950",
|
| 983 |
+
"entry_sha384": "66b49b4a7650b46440be6deeaf20447f4c1dc04d6d0d6ddfe40edb3fffc0c0a7a7cf79ce0d4bfdc5c6c4a4c839ff266d"
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"seq": 18,
|
| 987 |
+
"ts_unix": 1795138654.99505,
|
| 988 |
+
"task_id": "foundry-001",
|
| 989 |
+
"tool": "solve",
|
| 990 |
+
"category": "sim",
|
| 991 |
+
"discovery_used": 0,
|
| 992 |
+
"max_discovery_calls": 60,
|
| 993 |
+
"sim_used": 15,
|
| 994 |
+
"max_sim_calls": 36,
|
| 995 |
+
"budget_rejected": false,
|
| 996 |
+
"disabled_tool": false,
|
| 997 |
+
"is_error": true,
|
| 998 |
+
"args_sha384": "bbff4b9db7ce6f216fa2178a0684a9ea3f9f13f071e1d67510feaff3a85a86110722ec4c90f6d98abc4d3d8c7de38443",
|
| 999 |
+
"answer_sha384": "db4afa3f067f60db3f16d52719b2190cbf34737101944f72709a3215acc75c74cd50b0073600a7e7d8faedc64d8e124a",
|
| 1000 |
+
"call_spec": {
|
| 1001 |
+
"tool": "solve",
|
| 1002 |
+
"model_id": "cdu_loop_moc",
|
| 1003 |
+
"args": {
|
| 1004 |
+
"solver": "cdu_loop_moc",
|
| 1005 |
+
"parameters": {
|
| 1006 |
+
"supply_pressure_pa": 480000.0,
|
| 1007 |
+
"return_pressure_pa": 180000.0,
|
| 1008 |
+
"initial_flow_m3_s": 0.025,
|
| 1009 |
+
"pipe_length_m": 17.0,
|
| 1010 |
+
"pipe_diameter_m": 0.064,
|
| 1011 |
+
"valve_closure_s": 0.85,
|
| 1012 |
+
"coolant_temp_c": 26.69090731101752,
|
| 1013 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 1014 |
+
"fouling_factor": 0.6939898221791575,
|
| 1015 |
+
"pump_speed_rpm": 3586.4608803874326,
|
| 1016 |
+
"duration_s": 0.8
|
| 1017 |
+
}
|
| 1018 |
+
}
|
| 1019 |
+
},
|
| 1020 |
+
"extracted_seals": [],
|
| 1021 |
+
"step_call_records": [],
|
| 1022 |
+
"plugin_event": null,
|
| 1023 |
+
"prev_sha384": "66b49b4a7650b46440be6deeaf20447f4c1dc04d6d0d6ddfe40edb3fffc0c0a7a7cf79ce0d4bfdc5c6c4a4c839ff266d",
|
| 1024 |
+
"entry_sha384": "1af919fb6303f0edb924bb6ee61ed0d02bf255dbd7d0800be63688f9da8196b493b60ebd624128004b80465d07c424f0"
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"seq": 19,
|
| 1028 |
+
"ts_unix": 1795138654.995321,
|
| 1029 |
+
"task_id": "foundry-001",
|
| 1030 |
+
"tool": "solve",
|
| 1031 |
+
"category": "sim",
|
| 1032 |
+
"discovery_used": 0,
|
| 1033 |
+
"max_discovery_calls": 60,
|
| 1034 |
+
"sim_used": 16,
|
| 1035 |
+
"max_sim_calls": 36,
|
| 1036 |
+
"budget_rejected": false,
|
| 1037 |
+
"disabled_tool": false,
|
| 1038 |
+
"is_error": true,
|
| 1039 |
+
"args_sha384": "988c79368924824d8dd0dd733dea8221a11a649d260f6183a71976da3255ddb33e20cfce560a237f84b4998adddaa91e",
|
| 1040 |
+
"answer_sha384": "92f454a659caeb9cfb7f99c0551f6520bc637412e57fe4203cdaeffa6e8fc2a8bae35eb905ad092042e94aecbd6515cd",
|
| 1041 |
+
"call_spec": {
|
| 1042 |
+
"tool": "solve",
|
| 1043 |
+
"model_id": "cdu_loop_moc",
|
| 1044 |
+
"args": {
|
| 1045 |
+
"solver": "cdu_loop_moc",
|
| 1046 |
+
"parameters": {
|
| 1047 |
+
"supply_pressure_pa": 480000.0,
|
| 1048 |
+
"return_pressure_pa": 180000.0,
|
| 1049 |
+
"initial_flow_m3_s": 0.025990000000000003,
|
| 1050 |
+
"pipe_length_m": 17.0,
|
| 1051 |
+
"pipe_diameter_m": 0.064,
|
| 1052 |
+
"valve_closure_s": 0.85,
|
| 1053 |
+
"coolant_temp_c": 41.69090731101752,
|
| 1054 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 1055 |
+
"fouling_factor": 0.7939898221791575,
|
| 1056 |
+
"pump_speed_rpm": 4052.700794837798,
|
| 1057 |
+
"duration_s": 0.8
|
| 1058 |
+
}
|
| 1059 |
+
}
|
| 1060 |
+
},
|
| 1061 |
+
"extracted_seals": [],
|
| 1062 |
+
"step_call_records": [],
|
| 1063 |
+
"plugin_event": null,
|
| 1064 |
+
"prev_sha384": "1af919fb6303f0edb924bb6ee61ed0d02bf255dbd7d0800be63688f9da8196b493b60ebd624128004b80465d07c424f0",
|
| 1065 |
+
"entry_sha384": "7bd30c497da5483d82ad5ea6b6b5f47547a01ab986e803b01bbffabf651046487fd47cdb5e1736b24c6e52e70d33c1a3"
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"seq": 20,
|
| 1069 |
+
"ts_unix": 1795138654.995857,
|
| 1070 |
+
"task_id": "foundry-001",
|
| 1071 |
+
"tool": "solve",
|
| 1072 |
+
"category": "sim",
|
| 1073 |
+
"discovery_used": 0,
|
| 1074 |
+
"max_discovery_calls": 60,
|
| 1075 |
+
"sim_used": 17,
|
| 1076 |
+
"max_sim_calls": 36,
|
| 1077 |
+
"budget_rejected": false,
|
| 1078 |
+
"disabled_tool": false,
|
| 1079 |
+
"is_error": false,
|
| 1080 |
+
"args_sha384": "72914f62842f79b050da4348abfde955db4aefb48aee59056ec0c944b993c87583be51a926d4b0de6c75590232aa10a9",
|
| 1081 |
+
"answer_sha384": "373f126261211687f584bd8dd12d66ffc638708e1ad69357b25d56d2468b086e44b8e7cc9c4ce73e6604eab3db9b089a",
|
| 1082 |
+
"call_spec": {
|
| 1083 |
+
"tool": "solve",
|
| 1084 |
+
"model_id": "rack_power_pll",
|
| 1085 |
+
"args": {
|
| 1086 |
+
"solver": "rack_power_pll",
|
| 1087 |
+
"parameters": {
|
| 1088 |
+
"step_rack_load_pu": 0.285,
|
| 1089 |
+
"inverter_fraction": 0.304035615487262,
|
| 1090 |
+
"pll_bandwidth_per_s": 21.003590421896487,
|
| 1091 |
+
"governor_droop": 12.0,
|
| 1092 |
+
"bess_support_current_a": 7.3145625189618535,
|
| 1093 |
+
"bess_parallel_strings": 120,
|
| 1094 |
+
"bess_initial_soc": 0.8335089312802649,
|
| 1095 |
+
"bess_case_temp_c": -11.599834906126894,
|
| 1096 |
+
"rack_dc_current_a": 340.0,
|
| 1097 |
+
"parallel_feeder_legs": 22,
|
| 1098 |
+
"duration_s": 15.0
|
| 1099 |
+
}
|
| 1100 |
+
}
|
| 1101 |
+
},
|
| 1102 |
+
"extracted_seals": [
|
| 1103 |
+
"219ffb65cbea468165e2d554e1da7b09e509ed94177aca3c84a253ba3ab71cae3557227a2ed477ad82aafa1bc709f9a0",
|
| 1104 |
+
"defbb59b7a4fc13bc9f83eb49fd2750b686c377b261362abcc3c3aa6ead1c2fda6cf3ae265c61fd47d146591149c6234"
|
| 1105 |
+
],
|
| 1106 |
+
"step_call_records": [],
|
| 1107 |
+
"plugin_event": null,
|
| 1108 |
+
"prev_sha384": "7bd30c497da5483d82ad5ea6b6b5f47547a01ab986e803b01bbffabf651046487fd47cdb5e1736b24c6e52e70d33c1a3",
|
| 1109 |
+
"entry_sha384": "e1fa714e8c0dbf7b9fd1ac50f2ea91f208943ff1553e4b31b31f7d6502c5f01ad953779a83a1d3af96c30519883dfe88"
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"seq": 21,
|
| 1113 |
+
"ts_unix": 1795138654.996415,
|
| 1114 |
+
"task_id": "foundry-001",
|
| 1115 |
+
"tool": "solve",
|
| 1116 |
+
"category": "sim",
|
| 1117 |
+
"discovery_used": 0,
|
| 1118 |
+
"max_discovery_calls": 60,
|
| 1119 |
+
"sim_used": 18,
|
| 1120 |
+
"max_sim_calls": 36,
|
| 1121 |
+
"budget_rejected": false,
|
| 1122 |
+
"disabled_tool": false,
|
| 1123 |
+
"is_error": false,
|
| 1124 |
+
"args_sha384": "79e359d01da96cbcca6788e6d0f3a4ed8f5283101e249fcb416ca5f736dce745d3b8b37e21512fa90769bdc83db3b39e",
|
| 1125 |
+
"answer_sha384": "32b82e601545c77f12718632ec1b94ba05f47e32555c51d5eee77daae69ae2a85ebd61e5b05f2f3d4033ddddd258a672",
|
| 1126 |
+
"call_spec": {
|
| 1127 |
+
"tool": "solve",
|
| 1128 |
+
"model_id": "rack_power_pll",
|
| 1129 |
+
"args": {
|
| 1130 |
+
"solver": "rack_power_pll",
|
| 1131 |
+
"parameters": {
|
| 1132 |
+
"step_rack_load_pu": 0.285,
|
| 1133 |
+
"inverter_fraction": 0.304035615487262,
|
| 1134 |
+
"pll_bandwidth_per_s": 21.003590421896487,
|
| 1135 |
+
"governor_droop": 12.0,
|
| 1136 |
+
"bess_support_current_a": 8.41174689680613,
|
| 1137 |
+
"bess_parallel_strings": 120,
|
| 1138 |
+
"bess_initial_soc": 0.8335089312802649,
|
| 1139 |
+
"bess_case_temp_c": -11.599834906126894,
|
| 1140 |
+
"rack_dc_current_a": 340.0,
|
| 1141 |
+
"parallel_feeder_legs": 22,
|
| 1142 |
+
"duration_s": 15.0
|
| 1143 |
+
}
|
| 1144 |
+
}
|
| 1145 |
+
},
|
| 1146 |
+
"extracted_seals": [
|
| 1147 |
+
"7da829e9361aa1e704a459efc5c1e403b9bbba767199889f283f955a02b99c8f07b87f40174b549e1c3a2fa0b7fbcf26",
|
| 1148 |
+
"bee1ea9dc0146c92d13298cb24381da1820f7d03439c960d0cb860bf2d7860f33fe91bef4932d822586e450ffef48d6c"
|
| 1149 |
+
],
|
| 1150 |
+
"step_call_records": [],
|
| 1151 |
+
"plugin_event": null,
|
| 1152 |
+
"prev_sha384": "e1fa714e8c0dbf7b9fd1ac50f2ea91f208943ff1553e4b31b31f7d6502c5f01ad953779a83a1d3af96c30519883dfe88",
|
| 1153 |
+
"entry_sha384": "9aecc3803e5776c97b5cb791f343d2ea3506ad03dc8bb266076a44e50b7c68631a592ab6b7cd4183b4f644887b7cf4da"
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"seq": 22,
|
| 1157 |
+
"ts_unix": 1795138654.997246,
|
| 1158 |
+
"task_id": "foundry-001",
|
| 1159 |
+
"tool": "solve",
|
| 1160 |
+
"category": "sim",
|
| 1161 |
+
"discovery_used": 0,
|
| 1162 |
+
"max_discovery_calls": 60,
|
| 1163 |
+
"sim_used": 19,
|
| 1164 |
+
"max_sim_calls": 36,
|
| 1165 |
+
"budget_rejected": false,
|
| 1166 |
+
"disabled_tool": false,
|
| 1167 |
+
"is_error": false,
|
| 1168 |
+
"args_sha384": "2aa2241df13eddc1fe56875e7e54a27876e80704dc2eb42c447360ededba08189bbdb0c80dea0e03e01b877ba7565fa2",
|
| 1169 |
+
"answer_sha384": "f7c7c8ff924a1ab84d5e480709bbf70e78e06430a7de608b71777984493e5601d646bd465eb1ade83133018e0993961a",
|
| 1170 |
+
"call_spec": {
|
| 1171 |
+
"tool": "solve",
|
| 1172 |
+
"model_id": "rack_power_pll",
|
| 1173 |
+
"args": {
|
| 1174 |
+
"solver": "rack_power_pll",
|
| 1175 |
+
"parameters": {
|
| 1176 |
+
"step_rack_load_pu": 0.425,
|
| 1177 |
+
"inverter_fraction": 0.304035615487262,
|
| 1178 |
+
"pll_bandwidth_per_s": 21.003590421896487,
|
| 1179 |
+
"governor_droop": 5.0,
|
| 1180 |
+
"bess_support_current_a": 8.41174689680613,
|
| 1181 |
+
"bess_parallel_strings": 117,
|
| 1182 |
+
"bess_initial_soc": 0.8335089312802649,
|
| 1183 |
+
"bess_case_temp_c": -7.999834906126895,
|
| 1184 |
+
"rack_dc_current_a": 360.0,
|
| 1185 |
+
"parallel_feeder_legs": 22,
|
| 1186 |
+
"duration_s": 15.0
|
| 1187 |
+
}
|
| 1188 |
+
}
|
| 1189 |
+
},
|
| 1190 |
+
"extracted_seals": [
|
| 1191 |
+
"9a93c3e6d8dfd16b462a72be7948ab1ed02bc88063d091a1038803688980262f2fe233e4e6536f1a9eeb7f1e15f6574d",
|
| 1192 |
+
"814d7bd221560b47a7f379e92a99579d4806de903b4c4c616e3f42a1c7675b725ffcf1d114f00842db3b35d075be0f7e"
|
| 1193 |
+
],
|
| 1194 |
+
"step_call_records": [],
|
| 1195 |
+
"plugin_event": null,
|
| 1196 |
+
"prev_sha384": "9aecc3803e5776c97b5cb791f343d2ea3506ad03dc8bb266076a44e50b7c68631a592ab6b7cd4183b4f644887b7cf4da",
|
| 1197 |
+
"entry_sha384": "fae684ae400d5d3ccd9180405ab27889c8d8121e091dc313409c9088c063d267261ca4d6821f7e93117bb89f5dc24399"
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"seq": 23,
|
| 1201 |
+
"ts_unix": 1795138654.998016,
|
| 1202 |
+
"task_id": "foundry-001",
|
| 1203 |
+
"tool": "solve",
|
| 1204 |
+
"category": "sim",
|
| 1205 |
+
"discovery_used": 0,
|
| 1206 |
+
"max_discovery_calls": 60,
|
| 1207 |
+
"sim_used": 20,
|
| 1208 |
+
"max_sim_calls": 36,
|
| 1209 |
+
"budget_rejected": false,
|
| 1210 |
+
"disabled_tool": false,
|
| 1211 |
+
"is_error": false,
|
| 1212 |
+
"args_sha384": "4ab66b428c3a928503fad1fb831acbda6cce5904b4ca3e8a90fddb60b15ad4e2cc0c57a3e13d2910a37d701fbb07f5c6",
|
| 1213 |
+
"answer_sha384": "8616cf930803a9b04102f479c3caeffe38caab961d3d46aa5c9b439f3cd742fea6264b0dfff0b402314a8abdeb0c96aa",
|
| 1214 |
+
"call_spec": {
|
| 1215 |
+
"tool": "solve",
|
| 1216 |
+
"model_id": "rack_power_pll",
|
| 1217 |
+
"args": {
|
| 1218 |
+
"solver": "rack_power_pll",
|
| 1219 |
+
"parameters": {
|
| 1220 |
+
"step_rack_load_pu": 0.425,
|
| 1221 |
+
"inverter_fraction": 0.304035615487262,
|
| 1222 |
+
"pll_bandwidth_per_s": 21.003590421896487,
|
| 1223 |
+
"governor_droop": 5.0,
|
| 1224 |
+
"bess_support_current_a": 8.41174689680613,
|
| 1225 |
+
"bess_parallel_strings": 82,
|
| 1226 |
+
"bess_initial_soc": 0.8335089312802649,
|
| 1227 |
+
"bess_case_temp_c": -7.999834906126895,
|
| 1228 |
+
"rack_dc_current_a": 360.0,
|
| 1229 |
+
"parallel_feeder_legs": 22,
|
| 1230 |
+
"duration_s": 15.0
|
| 1231 |
+
}
|
| 1232 |
+
}
|
| 1233 |
+
},
|
| 1234 |
+
"extracted_seals": [
|
| 1235 |
+
"ed74b67add7b0bdd18c199516bf001d3ba69dce287c75ec1c807f5bc595e6fab06121ef9f1dde225fa13983d4e17caf0",
|
| 1236 |
+
"a1665682f825eb5fdb91434b138abfc8fa1a9de0b0e9153d5e8730a57f6111795cc23c1916ab5200b2b348c875aface2"
|
| 1237 |
+
],
|
| 1238 |
+
"step_call_records": [],
|
| 1239 |
+
"plugin_event": null,
|
| 1240 |
+
"prev_sha384": "fae684ae400d5d3ccd9180405ab27889c8d8121e091dc313409c9088c063d267261ca4d6821f7e93117bb89f5dc24399",
|
| 1241 |
+
"entry_sha384": "4569e9c41b236f0033482415a96b0d0b3853da44061a281a5fde8465a06d85f7216911ff6eeeee6e7501577cae61f849"
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"seq": 24,
|
| 1245 |
+
"ts_unix": 1795138654.998632,
|
| 1246 |
+
"task_id": "foundry-001",
|
| 1247 |
+
"tool": "solve",
|
| 1248 |
+
"category": "sim",
|
| 1249 |
+
"discovery_used": 0,
|
| 1250 |
+
"max_discovery_calls": 60,
|
| 1251 |
+
"sim_used": 21,
|
| 1252 |
+
"max_sim_calls": 36,
|
| 1253 |
+
"budget_rejected": false,
|
| 1254 |
+
"disabled_tool": false,
|
| 1255 |
+
"is_error": false,
|
| 1256 |
+
"args_sha384": "f61087fd2517db5ec2951c66ddfe071c6955e79628dcdc10829b7f7ef59b11965dc839d67e23e2f66992410e98024c01",
|
| 1257 |
+
"answer_sha384": "1300e7400017c2e5c6e51b974cfb6a8f4c0778dd08fd24bea972addc3f3e3a0d233dcd85b5558a07a9854ba41d248a7a",
|
| 1258 |
+
"call_spec": {
|
| 1259 |
+
"tool": "solve",
|
| 1260 |
+
"model_id": "rack_power_pll",
|
| 1261 |
+
"args": {
|
| 1262 |
+
"solver": "rack_power_pll",
|
| 1263 |
+
"parameters": {
|
| 1264 |
+
"step_rack_load_pu": 0.425,
|
| 1265 |
+
"inverter_fraction": 0.304035615487262,
|
| 1266 |
+
"pll_bandwidth_per_s": 21.003590421896487,
|
| 1267 |
+
"governor_droop": 5.0,
|
| 1268 |
+
"bess_support_current_a": 8.41174689680613,
|
| 1269 |
+
"bess_parallel_strings": 102,
|
| 1270 |
+
"bess_initial_soc": 0.8335089312802649,
|
| 1271 |
+
"bess_case_temp_c": -7.999834906126895,
|
| 1272 |
+
"rack_dc_current_a": 360.0,
|
| 1273 |
+
"parallel_feeder_legs": 22,
|
| 1274 |
+
"duration_s": 15.0
|
| 1275 |
+
}
|
| 1276 |
+
}
|
| 1277 |
+
},
|
| 1278 |
+
"extracted_seals": [
|
| 1279 |
+
"0750330727f76cc5cd7ca67f11fbc7a4c5da1e77c4ff4784ab1892ae4cbcd54dee53faa550aaa4e3dbbf14308bf348f6",
|
| 1280 |
+
"817158e3da03a46a7c7e1501918bfec029967e5f3f182cba01acf99ae1d2876745465c02e5480078b31dd50846bddeca"
|
| 1281 |
+
],
|
| 1282 |
+
"step_call_records": [],
|
| 1283 |
+
"plugin_event": null,
|
| 1284 |
+
"prev_sha384": "4569e9c41b236f0033482415a96b0d0b3853da44061a281a5fde8465a06d85f7216911ff6eeeee6e7501577cae61f849",
|
| 1285 |
+
"entry_sha384": "8d470e4bc97b155bf0e04ede496cecdfc9c6392a9d3bf833dc3da9f6056ec64bf648f40086cbfbd5a30ea331067232b8"
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"seq": 25,
|
| 1289 |
+
"ts_unix": 1795138654.999263,
|
| 1290 |
+
"task_id": "foundry-001",
|
| 1291 |
+
"tool": "solve",
|
| 1292 |
+
"category": "sim",
|
| 1293 |
+
"discovery_used": 0,
|
| 1294 |
+
"max_discovery_calls": 60,
|
| 1295 |
+
"sim_used": 22,
|
| 1296 |
+
"max_sim_calls": 36,
|
| 1297 |
+
"budget_rejected": false,
|
| 1298 |
+
"disabled_tool": false,
|
| 1299 |
+
"is_error": false,
|
| 1300 |
+
"args_sha384": "8e2f94d43ebe09669b5e357c9afc2067c9c6f27dd619aab4bd1ab52f27f0dd90120b0ba29d88233d61369437c76e4939",
|
| 1301 |
+
"answer_sha384": "35b3bf4a2612d494bfdff15968ea6987e9dbd28c6a7ef62966c2414aabd64b0f98c4f2e4bf474c27d9b6a3cf062e7ef5",
|
| 1302 |
+
"call_spec": {
|
| 1303 |
+
"tool": "solve",
|
| 1304 |
+
"model_id": "die_coldplate_fe",
|
| 1305 |
+
"args": {
|
| 1306 |
+
"solver": "die_coldplate_fe",
|
| 1307 |
+
"parameters": {
|
| 1308 |
+
"base_compute_power_w": 12300.0,
|
| 1309 |
+
"leakage_ref_power_w": 220.0,
|
| 1310 |
+
"coolant_mass_flow_kg_s": 0.5525,
|
| 1311 |
+
"coolant_inlet_temp_k": 301.8409073110175,
|
| 1312 |
+
"saturation_temp_k": 346.6063307093563,
|
| 1313 |
+
"fin_area_multiplier": 5.49,
|
| 1314 |
+
"tim_thickness_um": 52.8,
|
| 1315 |
+
"clamp_preload_mpa": 4.1,
|
| 1316 |
+
"fouling_factor": 0.6939898221791575,
|
| 1317 |
+
"duration_s": 12.0,
|
| 1318 |
+
"dt_s": 0.05,
|
| 1319 |
+
"initial_vapor_lock": false
|
| 1320 |
+
}
|
| 1321 |
+
}
|
| 1322 |
+
},
|
| 1323 |
+
"extracted_seals": [
|
| 1324 |
+
"1e7a21e782b58e57a45b75f3c07ed31227a2452767f0fbc28d43d33ed23bff76e45d7ed7913f5ad6e906d853e07c9998",
|
| 1325 |
+
"dfbaf6dba4f0ac71241e56df461bd0b43a7a9287f536a5346fe90da913e0ec518a94838275d192ae5aaf545f3931c12e"
|
| 1326 |
+
],
|
| 1327 |
+
"step_call_records": [],
|
| 1328 |
+
"plugin_event": null,
|
| 1329 |
+
"prev_sha384": "8d470e4bc97b155bf0e04ede496cecdfc9c6392a9d3bf833dc3da9f6056ec64bf648f40086cbfbd5a30ea331067232b8",
|
| 1330 |
+
"entry_sha384": "628e394f2c36b070daa3b13acc1bdcb57297984ec714ab2504e8e61f52c195bca4c0db5f8507a1d2e341197ba40ef0b3"
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"seq": 26,
|
| 1334 |
+
"ts_unix": 1795138654.999846,
|
| 1335 |
+
"task_id": "foundry-001",
|
| 1336 |
+
"tool": "solve",
|
| 1337 |
+
"category": "sim",
|
| 1338 |
+
"discovery_used": 0,
|
| 1339 |
+
"max_discovery_calls": 60,
|
| 1340 |
+
"sim_used": 23,
|
| 1341 |
+
"max_sim_calls": 36,
|
| 1342 |
+
"budget_rejected": false,
|
| 1343 |
+
"disabled_tool": false,
|
| 1344 |
+
"is_error": false,
|
| 1345 |
+
"args_sha384": "ed7de12dcafffa925647ad65e7ab693e2d09402e42ef0e05f0b87d5b506832c2cf9b2e2275968898f3987768354d220f",
|
| 1346 |
+
"answer_sha384": "559bd1a9da7c496aca0f16136d0ddf6628a41fc1fa75796865a808782e55cfa73e810b01d4a2b5d17e19d32f2e8ffbc2",
|
| 1347 |
+
"call_spec": {
|
| 1348 |
+
"tool": "solve",
|
| 1349 |
+
"model_id": "die_coldplate_fe",
|
| 1350 |
+
"args": {
|
| 1351 |
+
"solver": "die_coldplate_fe",
|
| 1352 |
+
"parameters": {
|
| 1353 |
+
"base_compute_power_w": 17500.0,
|
| 1354 |
+
"leakage_ref_power_w": 220.0,
|
| 1355 |
+
"coolant_mass_flow_kg_s": 0.5525,
|
| 1356 |
+
"coolant_inlet_temp_k": 301.8409073110175,
|
| 1357 |
+
"saturation_temp_k": 346.6063307093563,
|
| 1358 |
+
"fin_area_multiplier": 5.49,
|
| 1359 |
+
"tim_thickness_um": 52.8,
|
| 1360 |
+
"clamp_preload_mpa": 4.1,
|
| 1361 |
+
"fouling_factor": 0.6939898221791575,
|
| 1362 |
+
"duration_s": 12.0,
|
| 1363 |
+
"dt_s": 0.05,
|
| 1364 |
+
"initial_vapor_lock": false
|
| 1365 |
+
}
|
| 1366 |
+
}
|
| 1367 |
+
},
|
| 1368 |
+
"extracted_seals": [
|
| 1369 |
+
"2fc93e473882360fc4398721a2d20fecd44a67d210e3175151116619b49988d5f1f50f2754939b8d15a4bbab0fdcaff4",
|
| 1370 |
+
"45a5249df509553858f054adb6d8b93953e012bbcccb9fb17e5279408e9ab82f05737de68e322a8c482db79007ad684b"
|
| 1371 |
+
],
|
| 1372 |
+
"step_call_records": [],
|
| 1373 |
+
"plugin_event": null,
|
| 1374 |
+
"prev_sha384": "628e394f2c36b070daa3b13acc1bdcb57297984ec714ab2504e8e61f52c195bca4c0db5f8507a1d2e341197ba40ef0b3",
|
| 1375 |
+
"entry_sha384": "bcdda10c72737d1d886ca6ae3302d452fe21c9fed48589c919e7fdf04196ad508cffb4e1b934e4f2bc44e1114a741b64"
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"seq": 27,
|
| 1379 |
+
"ts_unix": 1795138655.000479,
|
| 1380 |
+
"task_id": "foundry-001",
|
| 1381 |
+
"tool": "solve",
|
| 1382 |
+
"category": "sim",
|
| 1383 |
+
"discovery_used": 0,
|
| 1384 |
+
"max_discovery_calls": 60,
|
| 1385 |
+
"sim_used": 24,
|
| 1386 |
+
"max_sim_calls": 36,
|
| 1387 |
+
"budget_rejected": false,
|
| 1388 |
+
"disabled_tool": false,
|
| 1389 |
+
"is_error": false,
|
| 1390 |
+
"args_sha384": "f38cc46bfe601004a9de88476fa520f04d0592da5c6e004539eb0db4c7975b01ee664ec27a4b4ebf38af1d08096332c4",
|
| 1391 |
+
"answer_sha384": "ba9f06b9d003d60b6572c5dcdd6f4165226d06ad7ef1b6eb1ac37af59899b8dd6d33c921c1e2b4d0a55fd17d9231d368",
|
| 1392 |
+
"call_spec": {
|
| 1393 |
+
"tool": "solve",
|
| 1394 |
+
"model_id": "die_coldplate_fe",
|
| 1395 |
+
"args": {
|
| 1396 |
+
"solver": "die_coldplate_fe",
|
| 1397 |
+
"parameters": {
|
| 1398 |
+
"base_compute_power_w": 14900.0,
|
| 1399 |
+
"leakage_ref_power_w": 220.0,
|
| 1400 |
+
"coolant_mass_flow_kg_s": 0.31416666666666665,
|
| 1401 |
+
"coolant_inlet_temp_k": 301.8409073110175,
|
| 1402 |
+
"saturation_temp_k": 346.6063307093563,
|
| 1403 |
+
"fin_area_multiplier": 5.49,
|
| 1404 |
+
"tim_thickness_um": 52.8,
|
| 1405 |
+
"clamp_preload_mpa": 4.1,
|
| 1406 |
+
"fouling_factor": 0.6939898221791575,
|
| 1407 |
+
"duration_s": 12.0,
|
| 1408 |
+
"dt_s": 0.05,
|
| 1409 |
+
"initial_vapor_lock": false
|
| 1410 |
+
}
|
| 1411 |
+
}
|
| 1412 |
+
},
|
| 1413 |
+
"extracted_seals": [
|
| 1414 |
+
"13fcfb9f64852a0fd1110664a6009138966c51f8ed80297bc4e6d06ebffb011b43d3df73b3de471f9a18be0411b1c8be",
|
| 1415 |
+
"d3cb1d31f18631764ccc58923e3024b675813170e22995a9b1f4cd14e31518482d05c9f3b3d150259fd978905a30a85f"
|
| 1416 |
+
],
|
| 1417 |
+
"step_call_records": [],
|
| 1418 |
+
"plugin_event": null,
|
| 1419 |
+
"prev_sha384": "bcdda10c72737d1d886ca6ae3302d452fe21c9fed48589c919e7fdf04196ad508cffb4e1b934e4f2bc44e1114a741b64",
|
| 1420 |
+
"entry_sha384": "79c701361d7b742c20e540f97c37743b30b25ff58715c6e7c98c51cc10a5c8d1fb7779afe9cf59836810ce88818a596c"
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"seq": 28,
|
| 1424 |
+
"ts_unix": 1795138655.001119,
|
| 1425 |
+
"task_id": "foundry-001",
|
| 1426 |
+
"tool": "solve",
|
| 1427 |
+
"category": "sim",
|
| 1428 |
+
"discovery_used": 0,
|
| 1429 |
+
"max_discovery_calls": 60,
|
| 1430 |
+
"sim_used": 25,
|
| 1431 |
+
"max_sim_calls": 36,
|
| 1432 |
+
"budget_rejected": false,
|
| 1433 |
+
"disabled_tool": false,
|
| 1434 |
+
"is_error": false,
|
| 1435 |
+
"args_sha384": "5d2bbff71d7c71c6e93e9e589cf1ba6c2f526286a607581a812f210f3531c81ac6ca699e26747100411cbaf85519d2dc",
|
| 1436 |
+
"answer_sha384": "1c59f9174a2e303aa8644a6d09d0ca08cc2c736a96394254367b510e2e18672dcb2344d1b95ffd72d9b5425ec5f335b0",
|
| 1437 |
+
"call_spec": {
|
| 1438 |
+
"tool": "solve",
|
| 1439 |
+
"model_id": "die_coldplate_fe",
|
| 1440 |
+
"args": {
|
| 1441 |
+
"solver": "die_coldplate_fe",
|
| 1442 |
+
"parameters": {
|
| 1443 |
+
"base_compute_power_w": 14900.0,
|
| 1444 |
+
"leakage_ref_power_w": 220.0,
|
| 1445 |
+
"coolant_mass_flow_kg_s": 0.5525,
|
| 1446 |
+
"coolant_inlet_temp_k": 301.8409073110175,
|
| 1447 |
+
"saturation_temp_k": 346.6063307093563,
|
| 1448 |
+
"fin_area_multiplier": 5.49,
|
| 1449 |
+
"tim_thickness_um": 52.8,
|
| 1450 |
+
"clamp_preload_mpa": 4.1,
|
| 1451 |
+
"fouling_factor": 1.0439898221791575,
|
| 1452 |
+
"duration_s": 12.0,
|
| 1453 |
+
"dt_s": 0.05,
|
| 1454 |
+
"initial_vapor_lock": false
|
| 1455 |
+
}
|
| 1456 |
+
}
|
| 1457 |
+
},
|
| 1458 |
+
"extracted_seals": [
|
| 1459 |
+
"b0d3ef2cc1b9eb2079bd28bd7b158350ffc84308e8f00b478d72c8b16dd5dd6bf998f6fe3dfeed685278ac14092fce3a",
|
| 1460 |
+
"101e89a14d0c34397e02cb9c0366f16cc704c94f263f5e691f6c94cf5908618181df41d504dd5fb292546c7f20446a59"
|
| 1461 |
+
],
|
| 1462 |
+
"step_call_records": [],
|
| 1463 |
+
"plugin_event": null,
|
| 1464 |
+
"prev_sha384": "79c701361d7b742c20e540f97c37743b30b25ff58715c6e7c98c51cc10a5c8d1fb7779afe9cf59836810ce88818a596c",
|
| 1465 |
+
"entry_sha384": "9fad80e8e237d96d516102cf913e4c4632404b6a6cb91a97b2c637002424d5ab00a3bd3a1402b4abf689642bf36d6e32"
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"seq": 29,
|
| 1469 |
+
"ts_unix": 1795138655.013265,
|
| 1470 |
+
"task_id": "foundry-001",
|
| 1471 |
+
"tool": "solve",
|
| 1472 |
+
"category": "sim",
|
| 1473 |
+
"discovery_used": 0,
|
| 1474 |
+
"max_discovery_calls": 60,
|
| 1475 |
+
"sim_used": 26,
|
| 1476 |
+
"max_sim_calls": 36,
|
| 1477 |
+
"budget_rejected": false,
|
| 1478 |
+
"disabled_tool": false,
|
| 1479 |
+
"is_error": false,
|
| 1480 |
+
"args_sha384": "17d335242ea7f27395db87669aa2e73019976396df33af153827c11c80e39971a711f8b087df5119ad588a102c3f1fd5",
|
| 1481 |
+
"answer_sha384": "50a5d180de1f2b34c3708db183871b42925edb880af407f31a3dd68cc09497be82ff1d1fb69708cc9afbc03978ab0107",
|
| 1482 |
+
"call_spec": {
|
| 1483 |
+
"tool": "solve",
|
| 1484 |
+
"model_id": "cdu_loop_moc",
|
| 1485 |
+
"args": {
|
| 1486 |
+
"solver": "cdu_loop_moc",
|
| 1487 |
+
"parameters": {
|
| 1488 |
+
"supply_pressure_pa": 512838.8804397073,
|
| 1489 |
+
"return_pressure_pa": 180000.0,
|
| 1490 |
+
"initial_flow_m3_s": 0.027510000000000003,
|
| 1491 |
+
"pipe_length_m": 16.5,
|
| 1492 |
+
"pipe_diameter_m": 0.07,
|
| 1493 |
+
"valve_closure_s": 0.30098146128680475,
|
| 1494 |
+
"coolant_temp_c": 26.69090731101752,
|
| 1495 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 1496 |
+
"fouling_factor": 0.6939898221791575,
|
| 1497 |
+
"pump_speed_rpm": 3682.415666332304,
|
| 1498 |
+
"duration_s": 0.8
|
| 1499 |
+
}
|
| 1500 |
+
}
|
| 1501 |
+
},
|
| 1502 |
+
"extracted_seals": [
|
| 1503 |
+
"6533db54475898d1528a732dfc2ffe9e1efcc006d34dde5e0d54562fce22c14d7575c0cb03c60da1884fa9b8f8663640",
|
| 1504 |
+
"7d84402a41fe494b8c33627ce0e849d1a8f1914353d5fb5c6f3a8a323e413e372acdf27dc05b6d6995eb90afae175c10"
|
| 1505 |
+
],
|
| 1506 |
+
"step_call_records": [],
|
| 1507 |
+
"plugin_event": null,
|
| 1508 |
+
"prev_sha384": "9fad80e8e237d96d516102cf913e4c4632404b6a6cb91a97b2c637002424d5ab00a3bd3a1402b4abf689642bf36d6e32",
|
| 1509 |
+
"entry_sha384": "0a1c334ec5e5f0040d24c2f15472e9e203f5189ef4e6816029a5ef429c8fb226825dc82b8652a4711854c0b05dd36f38"
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"seq": 30,
|
| 1513 |
+
"ts_unix": 1795138655.025423,
|
| 1514 |
+
"task_id": "foundry-001",
|
| 1515 |
+
"tool": "solve",
|
| 1516 |
+
"category": "sim",
|
| 1517 |
+
"discovery_used": 0,
|
| 1518 |
+
"max_discovery_calls": 60,
|
| 1519 |
+
"sim_used": 27,
|
| 1520 |
+
"max_sim_calls": 36,
|
| 1521 |
+
"budget_rejected": false,
|
| 1522 |
+
"disabled_tool": false,
|
| 1523 |
+
"is_error": false,
|
| 1524 |
+
"args_sha384": "05c9d6a6889a3e9b526a543d99c4782701ab1a8b66771a92c0e34a4c4b8ca911cf79216d7998f0a94b21238d6de8ccf7",
|
| 1525 |
+
"answer_sha384": "a3db5cd155d9058b630545c7145a3089a8ce0ce7b382793f4210025ee3465dbf3473b927ca23bd667563a262abeadb86",
|
| 1526 |
+
"call_spec": {
|
| 1527 |
+
"tool": "solve",
|
| 1528 |
+
"model_id": "cdu_loop_moc",
|
| 1529 |
+
"args": {
|
| 1530 |
+
"solver": "cdu_loop_moc",
|
| 1531 |
+
"parameters": {
|
| 1532 |
+
"supply_pressure_pa": 512838.8804397073,
|
| 1533 |
+
"return_pressure_pa": 180000.0,
|
| 1534 |
+
"initial_flow_m3_s": 0.0265144,
|
| 1535 |
+
"pipe_length_m": 16.5,
|
| 1536 |
+
"pipe_diameter_m": 0.07,
|
| 1537 |
+
"valve_closure_s": 0.5350781533987641,
|
| 1538 |
+
"coolant_temp_c": 33.69090731101752,
|
| 1539 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 1540 |
+
"fouling_factor": 1.0439898221791575,
|
| 1541 |
+
"pump_speed_rpm": 4234.778016282149,
|
| 1542 |
+
"duration_s": 0.8
|
| 1543 |
+
}
|
| 1544 |
+
}
|
| 1545 |
+
},
|
| 1546 |
+
"extracted_seals": [
|
| 1547 |
+
"480e7f8bf4ca8898ba1ee1e50e52229fb5a76b706df506f7a1fe996579d904d158fa52d6ab06d1a852757bb3660a27d4",
|
| 1548 |
+
"da195c92b3d917118d900e0b364c8a111f792efe7284e37f73d6c36c7df233c2ce4e7b6fa2536c696ba9e91914580b0d"
|
| 1549 |
+
],
|
| 1550 |
+
"step_call_records": [],
|
| 1551 |
+
"plugin_event": null,
|
| 1552 |
+
"prev_sha384": "0a1c334ec5e5f0040d24c2f15472e9e203f5189ef4e6816029a5ef429c8fb226825dc82b8652a4711854c0b05dd36f38",
|
| 1553 |
+
"entry_sha384": "3edc4a3931aa31c758141550b0f7bfb9a45fc063dc0d8ea79782c5a92f58e9157a7d127828595b00a7433e5b44003520"
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"seq": 31,
|
| 1557 |
+
"ts_unix": 1795138655.03799,
|
| 1558 |
+
"task_id": "foundry-001",
|
| 1559 |
+
"tool": "solve",
|
| 1560 |
+
"category": "sim",
|
| 1561 |
+
"discovery_used": 0,
|
| 1562 |
+
"max_discovery_calls": 60,
|
| 1563 |
+
"sim_used": 28,
|
| 1564 |
+
"max_sim_calls": 36,
|
| 1565 |
+
"budget_rejected": false,
|
| 1566 |
+
"disabled_tool": false,
|
| 1567 |
+
"is_error": false,
|
| 1568 |
+
"args_sha384": "19a155a46c77b5c25e3b3dfac08111fe10d14d2506999175bb7daccccb2bef5df06d479e1ad4b5a884f8f9e8b1eff45f",
|
| 1569 |
+
"answer_sha384": "6bd9c5d028025d695794570b58aafa4ddce7ef9b5ec61bdffdf0884aeccc3ad5e5eb071a5ac30e6c14642ac1eed59ec6",
|
| 1570 |
+
"call_spec": {
|
| 1571 |
+
"tool": "solve",
|
| 1572 |
+
"model_id": "cdu_loop_moc",
|
| 1573 |
+
"args": {
|
| 1574 |
+
"solver": "cdu_loop_moc",
|
| 1575 |
+
"parameters": {
|
| 1576 |
+
"supply_pressure_pa": 512838.8804397073,
|
| 1577 |
+
"return_pressure_pa": 180000.0,
|
| 1578 |
+
"initial_flow_m3_s": 0.027510000000000003,
|
| 1579 |
+
"pipe_length_m": 14.5,
|
| 1580 |
+
"pipe_diameter_m": 0.079,
|
| 1581 |
+
"valve_closure_s": 0.30098146128680475,
|
| 1582 |
+
"coolant_temp_c": 26.69090731101752,
|
| 1583 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 1584 |
+
"fouling_factor": 0.6939898221791575,
|
| 1585 |
+
"pump_speed_rpm": 3682.415666332304,
|
| 1586 |
+
"duration_s": 0.8
|
| 1587 |
+
}
|
| 1588 |
+
}
|
| 1589 |
+
},
|
| 1590 |
+
"extracted_seals": [
|
| 1591 |
+
"336cc027b563cc1f74dbfa50a003b279bc101d5a65a81fcecf57171d306dabc2b5903948677cd2524c9aab8effc67f63",
|
| 1592 |
+
"dac54359a3bdd570b2dbd6614af169af53597e9e3a58fa619fef5d0190b0bc8fdfb2b9114ea6afd1bbde53bcdc2d432d"
|
| 1593 |
+
],
|
| 1594 |
+
"step_call_records": [],
|
| 1595 |
+
"plugin_event": null,
|
| 1596 |
+
"prev_sha384": "3edc4a3931aa31c758141550b0f7bfb9a45fc063dc0d8ea79782c5a92f58e9157a7d127828595b00a7433e5b44003520",
|
| 1597 |
+
"entry_sha384": "557c6b015823fc0e60243677f69566e2f635e9a27b75d0130d7e5c654732fb1b7f8bbc0b1e79cefb4db0469972fd4f02"
|
| 1598 |
+
},
|
| 1599 |
+
{
|
| 1600 |
+
"seq": 32,
|
| 1601 |
+
"ts_unix": 1795138655.051128,
|
| 1602 |
+
"task_id": "foundry-001",
|
| 1603 |
+
"tool": "solve",
|
| 1604 |
+
"category": "sim",
|
| 1605 |
+
"discovery_used": 0,
|
| 1606 |
+
"max_discovery_calls": 60,
|
| 1607 |
+
"sim_used": 29,
|
| 1608 |
+
"max_sim_calls": 36,
|
| 1609 |
+
"budget_rejected": false,
|
| 1610 |
+
"disabled_tool": false,
|
| 1611 |
+
"is_error": false,
|
| 1612 |
+
"args_sha384": "0522cdcd82c8f7202e1268464c9b81c7555c819c4032628bcddd4b9e5d6dafe3643a934f4ed92d5a45a52c42f3ad3ab8",
|
| 1613 |
+
"answer_sha384": "0dfb9ffef359f31e779d8e1eeaa38dd3c60ba5357417a7024932eab1327a7e564d528f41c9593aa53688daefd5938e4a",
|
| 1614 |
+
"call_spec": {
|
| 1615 |
+
"tool": "solve",
|
| 1616 |
+
"model_id": "cdu_loop_moc",
|
| 1617 |
+
"args": {
|
| 1618 |
+
"solver": "cdu_loop_moc",
|
| 1619 |
+
"parameters": {
|
| 1620 |
+
"supply_pressure_pa": 512838.8804397073,
|
| 1621 |
+
"return_pressure_pa": 180000.0,
|
| 1622 |
+
"initial_flow_m3_s": 0.0265144,
|
| 1623 |
+
"pipe_length_m": 14.5,
|
| 1624 |
+
"pipe_diameter_m": 0.079,
|
| 1625 |
+
"valve_closure_s": 0.5350781533987641,
|
| 1626 |
+
"coolant_temp_c": 33.69090731101752,
|
| 1627 |
+
"entrained_air_fraction": 0.005238197936155923,
|
| 1628 |
+
"fouling_factor": 1.0439898221791575,
|
| 1629 |
+
"pump_speed_rpm": 4234.778016282149,
|
| 1630 |
+
"duration_s": 0.8
|
| 1631 |
+
}
|
| 1632 |
+
}
|
| 1633 |
+
},
|
| 1634 |
+
"extracted_seals": [
|
| 1635 |
+
"77367b57786769ff81fbc4eb28a7ecbe882ab52aebfed4be5b488473d98b0b3984bc92e90d07c449921ce08d17e2aa5d",
|
| 1636 |
+
"25e7346d675a722b486ed15438d72bcf5027314a12dbd6a7606e892758e0418e5e1a3f68a2b0dd486707060fdaa61c8b"
|
| 1637 |
+
],
|
| 1638 |
+
"step_call_records": [],
|
| 1639 |
+
"plugin_event": null,
|
| 1640 |
+
"prev_sha384": "557c6b015823fc0e60243677f69566e2f635e9a27b75d0130d7e5c654732fb1b7f8bbc0b1e79cefb4db0469972fd4f02",
|
| 1641 |
+
"entry_sha384": "fbfa0f97fb36159aeeaf034230372abceffdfcf6dcd098cf2ddcbff4d382231ed70580e4507cb9b254ae41adbba58a72"
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"seq": 33,
|
| 1645 |
+
"ts_unix": 1795138655.051907,
|
| 1646 |
+
"task_id": "foundry-001",
|
| 1647 |
+
"tool": "solve",
|
| 1648 |
+
"category": "sim",
|
| 1649 |
+
"discovery_used": 0,
|
| 1650 |
+
"max_discovery_calls": 60,
|
| 1651 |
+
"sim_used": 30,
|
| 1652 |
+
"max_sim_calls": 36,
|
| 1653 |
+
"budget_rejected": false,
|
| 1654 |
+
"disabled_tool": false,
|
| 1655 |
+
"is_error": false,
|
| 1656 |
+
"args_sha384": "58d215e61cf7af8225674dd6df2cd3b837396ea98cd7b230617e66f8aa31598c2a00dcee05dc1debb92c84025eeae89c",
|
| 1657 |
+
"answer_sha384": "e700c76cdbbacecee35725965144ab70c02c17368e452070c74ffaf87e6fb2e56f9f196e8d2459f774b4fd98b76dc295",
|
| 1658 |
+
"call_spec": {
|
| 1659 |
+
"tool": "solve",
|
| 1660 |
+
"model_id": "chassis_mount_duffing",
|
| 1661 |
+
"args": {
|
| 1662 |
+
"solver": "chassis_mount_duffing",
|
| 1663 |
+
"parameters": {
|
| 1664 |
+
"natural_freq_hz": 29.152457358464073,
|
| 1665 |
+
"damping_ratio": 0.23,
|
| 1666 |
+
"duffing_alpha": 16000000.0,
|
| 1667 |
+
"excitation_freq_hz": 70.57963360470248,
|
| 1668 |
+
"harmonic_accel_m_s2": 6.5,
|
| 1669 |
+
"impulse_shock_m_s2": 218.47611303173048,
|
| 1670 |
+
"active_kp": 0.0,
|
| 1671 |
+
"active_kd": 140.0,
|
| 1672 |
+
"optical_delta_temp_c": 22.3875,
|
| 1673 |
+
"duration_s": 0.6
|
| 1674 |
+
}
|
| 1675 |
+
}
|
| 1676 |
+
},
|
| 1677 |
+
"extracted_seals": [
|
| 1678 |
+
"c54d954fc8edeb24d8fc3ccaf8c40a6b6d5dc192da093a8fa5dd4be065befc52fe42c16abf69f182747667016778dbaf",
|
| 1679 |
+
"b4a81dad23c948f492350de817c7028a9fd720d586a0e7cf4e93f3d2a2d789b2d1b091d9d85e28adf337984ebf7702c9"
|
| 1680 |
+
],
|
| 1681 |
+
"step_call_records": [],
|
| 1682 |
+
"plugin_event": null,
|
| 1683 |
+
"prev_sha384": "fbfa0f97fb36159aeeaf034230372abceffdfcf6dcd098cf2ddcbff4d382231ed70580e4507cb9b254ae41adbba58a72",
|
| 1684 |
+
"entry_sha384": "cf3c48160b99af0cafe3d2fc2476ff9f7f51829c0e3d27b31230e47ddf59ac1c28058254c1f8135ff11e0b96f78d8319"
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"seq": 34,
|
| 1688 |
+
"ts_unix": 1795138657.898168,
|
| 1689 |
+
"task_id": "foundry-001",
|
| 1690 |
+
"tool": "solve",
|
| 1691 |
+
"category": "sim",
|
| 1692 |
+
"discovery_used": 0,
|
| 1693 |
+
"max_discovery_calls": 60,
|
| 1694 |
+
"sim_used": 31,
|
| 1695 |
+
"max_sim_calls": 36,
|
| 1696 |
+
"budget_rejected": false,
|
| 1697 |
+
"disabled_tool": false,
|
| 1698 |
+
"is_error": false,
|
| 1699 |
+
"args_sha384": "7efeeeb917cfe85ea2fe75b9a5ad07e9f471abb1c735c12d7f8338e08d1fefba6e52bc3dcb4a5e33482720ce07f49934",
|
| 1700 |
+
"answer_sha384": "b59350907d1b108bd9abc64e91d63629afa210e246719f13b69cd2c0f0004608885e4170eaf75a5ef7ba8f67aa679622",
|
| 1701 |
+
"call_spec": {
|
| 1702 |
+
"tool": "solve",
|
| 1703 |
+
"model_id": "die_coldplate_fe",
|
| 1704 |
+
"args": {
|
| 1705 |
+
"solver": "die_coldplate_fe",
|
| 1706 |
+
"parameters": {
|
| 1707 |
+
"base_compute_power_w": 18750.0,
|
| 1708 |
+
"leakage_ref_power_w": 220.0,
|
| 1709 |
+
"coolant_mass_flow_kg_s": 0.5676666666666667,
|
| 1710 |
+
"coolant_inlet_temp_k": 300.2820590767918,
|
| 1711 |
+
"saturation_temp_k": 349.47791065985075,
|
| 1712 |
+
"fin_area_multiplier": 5.49,
|
| 1713 |
+
"tim_thickness_um": 52.8,
|
| 1714 |
+
"clamp_preload_mpa": 4.1,
|
| 1715 |
+
"fouling_factor": 0.6939898221791575,
|
| 1716 |
+
"duration_s": 12.0,
|
| 1717 |
+
"dt_s": 0.05,
|
| 1718 |
+
"initial_vapor_lock": false
|
| 1719 |
+
}
|
| 1720 |
+
}
|
| 1721 |
+
},
|
| 1722 |
+
"extracted_seals": [
|
| 1723 |
+
"219655ee9101508aa4fb9701918e9888d6cae3d6206f6c5df71bc877078bba6074b22a867ce2377ed7b384d42604349a",
|
| 1724 |
+
"8d92a9f6e7fa96cc9589d4caa4e562c6491151f72d6dbc74f6db5ea5dc7db965885e4104212422bded5232d57dc01b00"
|
| 1725 |
+
],
|
| 1726 |
+
"step_call_records": [],
|
| 1727 |
+
"plugin_event": null,
|
| 1728 |
+
"prev_sha384": "cf3c48160b99af0cafe3d2fc2476ff9f7f51829c0e3d27b31230e47ddf59ac1c28058254c1f8135ff11e0b96f78d8319",
|
| 1729 |
+
"entry_sha384": "e2d2720bba74aa8023875aafc47677caef3541592ceadf1fb38484b8594d0f2b23805257b10e08795f84860884331688"
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"seq": 35,
|
| 1733 |
+
"ts_unix": 1795138657.899122,
|
| 1734 |
+
"task_id": "foundry-001",
|
| 1735 |
+
"tool": "solve",
|
| 1736 |
+
"category": "sim",
|
| 1737 |
+
"discovery_used": 0,
|
| 1738 |
+
"max_discovery_calls": 60,
|
| 1739 |
+
"sim_used": 32,
|
| 1740 |
+
"max_sim_calls": 36,
|
| 1741 |
+
"budget_rejected": false,
|
| 1742 |
+
"disabled_tool": false,
|
| 1743 |
+
"is_error": false,
|
| 1744 |
+
"args_sha384": "76a6d5abed9bb32dcd89995e904935eb27f4396351cbe44af2d6eeabc2eb81252a207ea65de8a15cb467dfab4f607764",
|
| 1745 |
+
"answer_sha384": "2e15f616dcdc285eb7286921efba5b247fe26552f8553750112ad31318d9b2c65385e095f22b29604bba522ea5f794f3",
|
| 1746 |
+
"call_spec": {
|
| 1747 |
+
"tool": "solve",
|
| 1748 |
+
"model_id": "die_coldplate_fe",
|
| 1749 |
+
"args": {
|
| 1750 |
+
"solver": "die_coldplate_fe",
|
| 1751 |
+
"parameters": {
|
| 1752 |
+
"base_compute_power_w": 15888.767093656423,
|
| 1753 |
+
"leakage_ref_power_w": 220.0,
|
| 1754 |
+
"coolant_mass_flow_kg_s": 0.587535,
|
| 1755 |
+
"coolant_inlet_temp_k": 308.54675013625643,
|
| 1756 |
+
"saturation_temp_k": 349.47791065985075,
|
| 1757 |
+
"fin_area_multiplier": 5.49,
|
| 1758 |
+
"tim_thickness_um": 52.8,
|
| 1759 |
+
"clamp_preload_mpa": 4.1,
|
| 1760 |
+
"fouling_factor": 0.7439898221791575,
|
| 1761 |
+
"duration_s": 12.0,
|
| 1762 |
+
"dt_s": 0.05,
|
| 1763 |
+
"initial_vapor_lock": false
|
| 1764 |
+
}
|
| 1765 |
+
}
|
| 1766 |
+
},
|
| 1767 |
+
"extracted_seals": [
|
| 1768 |
+
"be1be8e317f354d6ab2a84a10050b93465e00c0b902f646d5f80a373e1e82596ee5a09532a2f2570845e80bfa74f7d19",
|
| 1769 |
+
"d5430e7259bb579105df5d7d23d42574db87e54f39f8fed200491bb533a1ee1b90b7c10fefedbbb1d8368c386d3452f6"
|
| 1770 |
+
],
|
| 1771 |
+
"step_call_records": [],
|
| 1772 |
+
"plugin_event": null,
|
| 1773 |
+
"prev_sha384": "e2d2720bba74aa8023875aafc47677caef3541592ceadf1fb38484b8594d0f2b23805257b10e08795f84860884331688",
|
| 1774 |
+
"entry_sha384": "203dafa9efb2e6b6d4018809df401cedbe35312354b42cf9ee7e39ce7b0e182214ef150c57e37d33a5deaf8e23c1a0ae"
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"seq": 36,
|
| 1778 |
+
"ts_unix": 1795138657.899803,
|
| 1779 |
+
"task_id": "foundry-001",
|
| 1780 |
+
"tool": "solve",
|
| 1781 |
+
"category": "sim",
|
| 1782 |
+
"discovery_used": 0,
|
| 1783 |
+
"max_discovery_calls": 60,
|
| 1784 |
+
"sim_used": 33,
|
| 1785 |
+
"max_sim_calls": 36,
|
| 1786 |
+
"budget_rejected": false,
|
| 1787 |
+
"disabled_tool": false,
|
| 1788 |
+
"is_error": false,
|
| 1789 |
+
"args_sha384": "57dc3a4a896b0c40419797c31893d9626275100af2bc8ed47fa3fc9b99ade867e3aa498fec6d4e4dfac2f2d88cee9e86",
|
| 1790 |
+
"answer_sha384": "942c7bf46e5ecc97f8f5b960aec259887b34b2c0f4648b5797437781cdc59c70d262c96271a7127ed433ba2031b49c3f",
|
| 1791 |
+
"call_spec": {
|
| 1792 |
+
"tool": "solve",
|
| 1793 |
+
"model_id": "die_coldplate_fe",
|
| 1794 |
+
"args": {
|
| 1795 |
+
"solver": "die_coldplate_fe",
|
| 1796 |
+
"parameters": {
|
| 1797 |
+
"base_compute_power_w": 13500.0,
|
| 1798 |
+
"leakage_ref_power_w": 220.0,
|
| 1799 |
+
"coolant_mass_flow_kg_s": 0.6005913333333333,
|
| 1800 |
+
"coolant_inlet_temp_k": 314.59968834814936,
|
| 1801 |
+
"saturation_temp_k": 349.47791065985075,
|
| 1802 |
+
"fin_area_multiplier": 5.49,
|
| 1803 |
+
"tim_thickness_um": 52.8,
|
| 1804 |
+
"clamp_preload_mpa": 4.1,
|
| 1805 |
+
"fouling_factor": 0.7939898221791575,
|
| 1806 |
+
"duration_s": 12.0,
|
| 1807 |
+
"dt_s": 0.05,
|
| 1808 |
+
"initial_vapor_lock": false
|
| 1809 |
+
}
|
| 1810 |
+
}
|
| 1811 |
+
},
|
| 1812 |
+
"extracted_seals": [
|
| 1813 |
+
"25bef512b164923a7e14f64e1ac590ecb9d8e183d136cfd37e3ca963e66afe6bb74282986517c360af5b24e8f16455a1",
|
| 1814 |
+
"809b9a6fabbf23d0734eef2e59cb49ee6ce8a62dd3ef5c8a75fa7021e557f9f966c5b8f689413f74d1e3562cbffb931e"
|
| 1815 |
+
],
|
| 1816 |
+
"step_call_records": [],
|
| 1817 |
+
"plugin_event": null,
|
| 1818 |
+
"prev_sha384": "203dafa9efb2e6b6d4018809df401cedbe35312354b42cf9ee7e39ce7b0e182214ef150c57e37d33a5deaf8e23c1a0ae",
|
| 1819 |
+
"entry_sha384": "11290986ede6cc6a1c0c73f963fe257c9d673a95a8f0975399f8e0f1e15709b21e0b444ee4d696dd1e0f66ec10994547"
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"seq": 37,
|
| 1823 |
+
"ts_unix": 1795138657.900809,
|
| 1824 |
+
"task_id": "foundry-001",
|
| 1825 |
+
"tool": "solve",
|
| 1826 |
+
"category": "sim",
|
| 1827 |
+
"discovery_used": 0,
|
| 1828 |
+
"max_discovery_calls": 60,
|
| 1829 |
+
"sim_used": 34,
|
| 1830 |
+
"max_sim_calls": 36,
|
| 1831 |
+
"budget_rejected": false,
|
| 1832 |
+
"disabled_tool": false,
|
| 1833 |
+
"is_error": false,
|
| 1834 |
+
"args_sha384": "f6aa5b25eaed3532c329588aa84874132ea8d126f4999906ef22e93b22d7f5cd6b4489e782a5dadf3bcfce41a0eb2153",
|
| 1835 |
+
"answer_sha384": "5d0084134ccb145f1430248c80d6ca2fbf1d6dfa47eb82d4c4df9980a8933cb8363c2b05130771d1f05960e2cf7a1563",
|
| 1836 |
+
"call_spec": {
|
| 1837 |
+
"tool": "solve",
|
| 1838 |
+
"model_id": "die_coldplate_fe",
|
| 1839 |
+
"args": {
|
| 1840 |
+
"solver": "die_coldplate_fe",
|
| 1841 |
+
"parameters": {
|
| 1842 |
+
"base_compute_power_w": 15518.614393119058,
|
| 1843 |
+
"leakage_ref_power_w": 220.0,
|
| 1844 |
+
"coolant_mass_flow_kg_s": 0.5744786666666666,
|
| 1845 |
+
"coolant_inlet_temp_k": 306.4232276418396,
|
| 1846 |
+
"saturation_temp_k": 349.47791065985075,
|
| 1847 |
+
"fin_area_multiplier": 5.49,
|
| 1848 |
+
"tim_thickness_um": 52.8,
|
| 1849 |
+
"clamp_preload_mpa": 4.1,
|
| 1850 |
+
"fouling_factor": 1.0439898221791575,
|
| 1851 |
+
"duration_s": 12.0,
|
| 1852 |
+
"dt_s": 0.05,
|
| 1853 |
+
"initial_vapor_lock": false
|
| 1854 |
+
}
|
| 1855 |
+
}
|
| 1856 |
+
},
|
| 1857 |
+
"extracted_seals": [
|
| 1858 |
+
"4e884c213d1b8ca5f32a9d6b2fb470949dacfc8a8aaf2fd268aaa99100a5d2f1e7a986ee429e7cb9519ecb207ada9ed6",
|
| 1859 |
+
"87327e0f2718358a73c8a2664c5547a8a3d8700283153b8f3c4f7389a9ec57d64c90a2cc4a86e67b2ad47ae3c731f0e9"
|
| 1860 |
+
],
|
| 1861 |
+
"step_call_records": [],
|
| 1862 |
+
"plugin_event": null,
|
| 1863 |
+
"prev_sha384": "11290986ede6cc6a1c0c73f963fe257c9d673a95a8f0975399f8e0f1e15709b21e0b444ee4d696dd1e0f66ec10994547",
|
| 1864 |
+
"entry_sha384": "eaabfdbe2d620d6fdb97e9968634462f77c02a7f7e850ad5fe78aebb9025989ddbdc8e3d3ee45c95ac3d33453d74eabc"
|
| 1865 |
+
},
|
| 1866 |
+
{
|
| 1867 |
+
"seq": 38,
|
| 1868 |
+
"ts_unix": 1795138657.901547,
|
| 1869 |
+
"task_id": "foundry-001",
|
| 1870 |
+
"tool": "solve",
|
| 1871 |
+
"category": "sim",
|
| 1872 |
+
"discovery_used": 0,
|
| 1873 |
+
"max_discovery_calls": 60,
|
| 1874 |
+
"sim_used": 35,
|
| 1875 |
+
"max_sim_calls": 36,
|
| 1876 |
+
"budget_rejected": false,
|
| 1877 |
+
"disabled_tool": false,
|
| 1878 |
+
"is_error": false,
|
| 1879 |
+
"args_sha384": "d9478aa6d80edf297d71329f2fb111c15ece6261963c2e64a95ad7c00bc29f25cfad3d39396bd238db14b361512c31d6",
|
| 1880 |
+
"answer_sha384": "818fb4edbd4cf825b8eed73cbdff250631f45d1d720b4307c1b6a21e520b01b184f453ae6c56e121f64e19c676ff4a9d",
|
| 1881 |
+
"call_spec": {
|
| 1882 |
+
"tool": "solve",
|
| 1883 |
+
"model_id": "die_coldplate_fe",
|
| 1884 |
+
"args": {
|
| 1885 |
+
"solver": "die_coldplate_fe",
|
| 1886 |
+
"parameters": {
|
| 1887 |
+
"base_compute_power_w": 18640.784158576655,
|
| 1888 |
+
"leakage_ref_power_w": 220.0,
|
| 1889 |
+
"coolant_mass_flow_kg_s": 0.6528166666666667,
|
| 1890 |
+
"coolant_inlet_temp_k": 302.7761490544591,
|
| 1891 |
+
"saturation_temp_k": 349.47791065985075,
|
| 1892 |
+
"fin_area_multiplier": 5.49,
|
| 1893 |
+
"tim_thickness_um": 52.8,
|
| 1894 |
+
"clamp_preload_mpa": 4.1,
|
| 1895 |
+
"fouling_factor": 0.6939898221791575,
|
| 1896 |
+
"duration_s": 12.0,
|
| 1897 |
+
"dt_s": 0.05,
|
| 1898 |
+
"initial_vapor_lock": false
|
| 1899 |
+
}
|
| 1900 |
+
}
|
| 1901 |
+
},
|
| 1902 |
+
"extracted_seals": [
|
| 1903 |
+
"1a905fb01efb8a9d61c01dbd1a8992d4cc4527f05df1c5b5f9ff38736c6b87f12aa9cc410e04df6fb2cf1880bae97002",
|
| 1904 |
+
"45285b5a505c2eec320b56e062f6dfb98c3d7c7c6001fa18b2c136bc70b80a5a7e67c8d5d68afefa153dc19136dacabe"
|
| 1905 |
+
],
|
| 1906 |
+
"step_call_records": [],
|
| 1907 |
+
"plugin_event": null,
|
| 1908 |
+
"prev_sha384": "eaabfdbe2d620d6fdb97e9968634462f77c02a7f7e850ad5fe78aebb9025989ddbdc8e3d3ee45c95ac3d33453d74eabc",
|
| 1909 |
+
"entry_sha384": "81ee2d63ab354c6b9d22480a353c325ad17da603c72fead330de8d368e63a45053eae3958dd81e05e2c7a111d4122b68"
|
| 1910 |
+
},
|
| 1911 |
+
{
|
| 1912 |
+
"seq": 39,
|
| 1913 |
+
"ts_unix": 1795138660.760492,
|
| 1914 |
+
"task_id": "foundry-001",
|
| 1915 |
+
"tool": "solve",
|
| 1916 |
+
"category": "sim",
|
| 1917 |
+
"discovery_used": 0,
|
| 1918 |
+
"max_discovery_calls": 60,
|
| 1919 |
+
"sim_used": 36,
|
| 1920 |
+
"max_sim_calls": 36,
|
| 1921 |
+
"budget_rejected": false,
|
| 1922 |
+
"disabled_tool": false,
|
| 1923 |
+
"is_error": false,
|
| 1924 |
+
"args_sha384": "906faa3d200883207a74ff64eedd50a17ab314de23664fa333f576be021b49acc56e0905b34e8d50fad8059d7289e97f",
|
| 1925 |
+
"answer_sha384": "fab6e43e9489ad25cb3be53357af95dda17dad2a354cd487f005c11a8b6fa2f932586889fc24ea5f26ab0209d118b5ad",
|
| 1926 |
+
"call_spec": {
|
| 1927 |
+
"tool": "solve",
|
| 1928 |
+
"model_id": "die_coldplate_fe",
|
| 1929 |
+
"args": {
|
| 1930 |
+
"solver": "die_coldplate_fe",
|
| 1931 |
+
"parameters": {
|
| 1932 |
+
"base_compute_power_w": 19302.044665388188,
|
| 1933 |
+
"leakage_ref_power_w": 220.0,
|
| 1934 |
+
"coolant_mass_flow_kg_s": 0.5676666666666667,
|
| 1935 |
+
"coolant_inlet_temp_k": 300.2985287427141,
|
| 1936 |
+
"saturation_temp_k": 349.47791065985075,
|
| 1937 |
+
"fin_area_multiplier": 5.49,
|
| 1938 |
+
"tim_thickness_um": 52.8,
|
| 1939 |
+
"clamp_preload_mpa": 4.1,
|
| 1940 |
+
"fouling_factor": 0.6939898221791575,
|
| 1941 |
+
"duration_s": 12.0,
|
| 1942 |
+
"dt_s": 0.05,
|
| 1943 |
+
"initial_vapor_lock": false
|
| 1944 |
+
}
|
| 1945 |
+
}
|
| 1946 |
+
},
|
| 1947 |
+
"extracted_seals": [
|
| 1948 |
+
"9a064a78cf64e4be3ba0fb92050ed32c4737ccdeac8de36d432263c2defa793b0ee5c6befaf575f4daef60d8dbe42831",
|
| 1949 |
+
"8a276512c612adee8345b3a9a07301274ad6c2c46fa7bbeb773b6b2db04bb4a2848d1b913817752355c301c2a8ad9851"
|
| 1950 |
+
],
|
| 1951 |
+
"step_call_records": [],
|
| 1952 |
+
"plugin_event": null,
|
| 1953 |
+
"prev_sha384": "81ee2d63ab354c6b9d22480a353c325ad17da603c72fead330de8d368e63a45053eae3958dd81e05e2c7a111d4122b68",
|
| 1954 |
+
"entry_sha384": "57ec03c2e7461cbe5043c705a2fed9d1ff0abe9e21a26c6c90f6c7a10ee367f25a0e7f733cce734e11b6f56d48c4fe9f"
|
| 1955 |
+
}
|
| 1956 |
+
]
|
| 1957 |
+
}
|
reference/foundry-002-dev-00_reference_episode.json
ADDED
|
@@ -0,0 +1,1260 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"case_id": "foundry-002-dev-00",
|
| 3 |
+
"task_id": "foundry-002",
|
| 4 |
+
"submission": {
|
| 5 |
+
"task_id": "foundry-002",
|
| 6 |
+
"fault_class": "sensor_drift",
|
| 7 |
+
"trim": {
|
| 8 |
+
"supply_pressure_pa": 445364.2,
|
| 9 |
+
"nominal_flow_m3_s": 0.0254,
|
| 10 |
+
"pump_speed_rpm": 2984.861769,
|
| 11 |
+
"valve_ramp_s": 0.609079,
|
| 12 |
+
"pll_bandwidth_per_s": 18.70653,
|
| 13 |
+
"governor_droop": 4.35,
|
| 14 |
+
"mount_active_kp": 8254.868941008936,
|
| 15 |
+
"sustained_compute_target_w": 15483.0
|
| 16 |
+
},
|
| 17 |
+
"controller": {
|
| 18 |
+
"throttle_onset_measured_k": 330.02623581115483,
|
| 19 |
+
"throttle_gain_w_per_k": 546.5,
|
| 20 |
+
"min_compute_fraction": 1.0,
|
| 21 |
+
"bess_emergency_current_a": 3.293198,
|
| 22 |
+
"surge_flow_multiplier": 1.1575
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"grade_report": {
|
| 26 |
+
"task_id": "foundry-002",
|
| 27 |
+
"binary_reward": 1,
|
| 28 |
+
"passed": true,
|
| 29 |
+
"shaped_score": 1.0,
|
| 30 |
+
"seals_verified": true,
|
| 31 |
+
"failure_reason": "none",
|
| 32 |
+
"autopsy": "PASS [suite hash 7e4d0d5bf2a8c025...]: fault class correct; 8/8 corners safe on the unit as serviced (probes_used=2, carried_soc=0.5598, warmup=2.46 C, wear=0.0811); net_ppa=10003.1 W / 10219.7 W (97.88% >= 93.00%).",
|
| 33 |
+
"stage_breakdown": {
|
| 34 |
+
"fault_class_correct": true,
|
| 35 |
+
"all_corners_safe": true,
|
| 36 |
+
"corners_passed": 8,
|
| 37 |
+
"total_corners": 8,
|
| 38 |
+
"net_ppa_efficiency_w": 10003.115025695355,
|
| 39 |
+
"reference_ppa_ceiling_w": 10219.659399,
|
| 40 |
+
"ppa_ratio": 0.9788109989922136,
|
| 41 |
+
"ppa_ratio_unclipped": 0.9788109989922136,
|
| 42 |
+
"carried_probes_used": 2,
|
| 43 |
+
"carried_bess_soc": 0.5598,
|
| 44 |
+
"carried_coolant_warmup_c": 2.4597272727272745,
|
| 45 |
+
"carried_wear_factor": 0.0811,
|
| 46 |
+
"suite_seal_sha384": "7e4d0d5bf2a8c0252cf50d4b3f14ac5ba02359369e0df87bb11b9eacbee1b704c3dbe4b7abf7a0cd16a7d3e4cf7cda79",
|
| 47 |
+
"corners": [
|
| 48 |
+
{
|
| 49 |
+
"corner_id": "C1_nominal_steady",
|
| 50 |
+
"safe": true,
|
| 51 |
+
"violations": [],
|
| 52 |
+
"effective_compute_w": 15483.0,
|
| 53 |
+
"peak_junction_temp_k": 332.86306349182615,
|
| 54 |
+
"peak_hammer_pressure_pa": 956652.5388596398,
|
| 55 |
+
"containment_spill_liters": 0.0,
|
| 56 |
+
"pump_lambda_ratio": 1.8205044877876895,
|
| 57 |
+
"min_bus_voltage_v": 44.70800572790462,
|
| 58 |
+
"min_grid_freq_hz": 59.94954898505038,
|
| 59 |
+
"inverter_tripped": false,
|
| 60 |
+
"tim_fatigue_cycles": 5316681976.168249,
|
| 61 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 62 |
+
"optical_degraded": false,
|
| 63 |
+
"max_conservation_residual": 5.63494201522973e-13,
|
| 64 |
+
"corner_field_sha384": "9ca6fa79072983164033f9d950f6800732c7ef72ea6877a8de182191db7c6e961a70e2793a9676746d15ca340b00e9b3"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"corner_id": "C2_pump_partial_coastdown",
|
| 68 |
+
"safe": true,
|
| 69 |
+
"violations": [],
|
| 70 |
+
"effective_compute_w": 15483.0,
|
| 71 |
+
"peak_junction_temp_k": 343.7771727144981,
|
| 72 |
+
"peak_hammer_pressure_pa": 664239.2220591052,
|
| 73 |
+
"containment_spill_liters": 0.0,
|
| 74 |
+
"pump_lambda_ratio": 1.6442335569549378,
|
| 75 |
+
"min_bus_voltage_v": 44.69328252616491,
|
| 76 |
+
"min_grid_freq_hz": 59.914079424116245,
|
| 77 |
+
"inverter_tripped": false,
|
| 78 |
+
"tim_fatigue_cycles": 359328026.79829764,
|
| 79 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 80 |
+
"optical_degraded": false,
|
| 81 |
+
"max_conservation_residual": 1.2875496283700544e-13,
|
| 82 |
+
"corner_field_sha384": "0299a3f0a934fd45a8ff1f027a182163de1d5e0fd3ec9559946a89326f2bfcf6e39f8c4ea77de60558ffe96ec330ed51"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"corner_id": "C3_ai_step_and_ibr_cloud_drop",
|
| 86 |
+
"safe": true,
|
| 87 |
+
"violations": [],
|
| 88 |
+
"effective_compute_w": 19785.25332962014,
|
| 89 |
+
"peak_junction_temp_k": 346.0358808988786,
|
| 90 |
+
"peak_hammer_pressure_pa": 949155.6939998493,
|
| 91 |
+
"containment_spill_liters": 0.0,
|
| 92 |
+
"pump_lambda_ratio": 1.6890733456358735,
|
| 93 |
+
"min_bus_voltage_v": 43.610623763761104,
|
| 94 |
+
"min_grid_freq_hz": 59.736591386828096,
|
| 95 |
+
"inverter_tripped": false,
|
| 96 |
+
"tim_fatigue_cycles": 224181443.96759516,
|
| 97 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 98 |
+
"optical_degraded": false,
|
| 99 |
+
"max_conservation_residual": 2.477799852014972e-13,
|
| 100 |
+
"corner_field_sha384": "000b77dfa5c22963defd0a8df374782ee3f40244dee8855235da2664f4a5e2b3b68d5424702e273583e295bfc79e475b"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"corner_id": "C4_cold_soak_high_viscosity_start",
|
| 104 |
+
"safe": true,
|
| 105 |
+
"violations": [],
|
| 106 |
+
"effective_compute_w": 15483.0,
|
| 107 |
+
"peak_junction_temp_k": 297.0476173396115,
|
| 108 |
+
"peak_hammer_pressure_pa": 1140484.0878023177,
|
| 109 |
+
"containment_spill_liters": 0.0,
|
| 110 |
+
"pump_lambda_ratio": 8.606176075686216,
|
| 111 |
+
"min_bus_voltage_v": 44.62086821272428,
|
| 112 |
+
"min_grid_freq_hz": 59.857576834320696,
|
| 113 |
+
"inverter_tripped": false,
|
| 114 |
+
"tim_fatigue_cycles": 7254984126239833.0,
|
| 115 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 116 |
+
"optical_degraded": false,
|
| 117 |
+
"max_conservation_residual": 1.4462696282657862e-13,
|
| 118 |
+
"corner_field_sha384": "e061e8326034c11e02012307c2278b3905b3e05e12da7b7af8f30038b4b4354ea1bc8d5795a700bb582a15fb64d6e5c1"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"corner_id": "C5_hot_return_chf_margin",
|
| 122 |
+
"safe": true,
|
| 123 |
+
"violations": [],
|
| 124 |
+
"effective_compute_w": 15483.0,
|
| 125 |
+
"peak_junction_temp_k": 347.30032651026676,
|
| 126 |
+
"peak_hammer_pressure_pa": 1114840.4129329224,
|
| 127 |
+
"containment_spill_liters": 0.0,
|
| 128 |
+
"pump_lambda_ratio": 1.271085292563363,
|
| 129 |
+
"min_bus_voltage_v": 44.62341724805375,
|
| 130 |
+
"min_grid_freq_hz": 59.88754523134934,
|
| 131 |
+
"inverter_tripped": false,
|
| 132 |
+
"tim_fatigue_cycles": 173903869.77743614,
|
| 133 |
+
"linear_transmissibility": 0.3354738337223406,
|
| 134 |
+
"optical_degraded": false,
|
| 135 |
+
"max_conservation_residual": 2.5036267363534196e-13,
|
| 136 |
+
"corner_field_sha384": "8745fd17afebe4d273dd5eaf1b8e0ac08678caae2676ccf635fa215624eb16e367266df6bed7a82aeee3cd39c78b8938"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"corner_id": "C6_adverse_2sigma_sensor_underread",
|
| 140 |
+
"safe": true,
|
| 141 |
+
"violations": [],
|
| 142 |
+
"effective_compute_w": 17123.468985174393,
|
| 143 |
+
"peak_junction_temp_k": 347.9507054075134,
|
| 144 |
+
"peak_hammer_pressure_pa": 823502.7786036242,
|
| 145 |
+
"containment_spill_liters": 0.0,
|
| 146 |
+
"pump_lambda_ratio": 1.4078039519727075,
|
| 147 |
+
"min_bus_voltage_v": 44.32715597783523,
|
| 148 |
+
"min_grid_freq_hz": 59.89630331956515,
|
| 149 |
+
"inverter_tripped": false,
|
| 150 |
+
"tim_fatigue_cycles": 153017403.31039464,
|
| 151 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 152 |
+
"optical_degraded": false,
|
| 153 |
+
"max_conservation_residual": 4.663861092097006e-13,
|
| 154 |
+
"corner_field_sha384": "ab27ecc770c2a3c18b9a15dadeeeeba4a86ed81a4bec6447d668341d328ac0c5d4c9dff3daf12245188eff585e14b4f0"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"corner_id": "C7_fast_isolation_valve_hammer",
|
| 158 |
+
"safe": true,
|
| 159 |
+
"violations": [],
|
| 160 |
+
"effective_compute_w": 15483.0,
|
| 161 |
+
"peak_junction_temp_k": 332.03293536145594,
|
| 162 |
+
"peak_hammer_pressure_pa": 2727613.8829192985,
|
| 163 |
+
"containment_spill_liters": 3.6549308092499997,
|
| 164 |
+
"pump_lambda_ratio": 1.7024631557274998,
|
| 165 |
+
"min_bus_voltage_v": 44.684884298670596,
|
| 166 |
+
"min_grid_freq_hz": 59.93142976285513,
|
| 167 |
+
"inverter_tripped": false,
|
| 168 |
+
"tim_fatigue_cycles": 6763068529.785133,
|
| 169 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 170 |
+
"optical_degraded": false,
|
| 171 |
+
"max_conservation_residual": 1.0178629406046677e-13,
|
| 172 |
+
"corner_field_sha384": "c8b152a5d425f1ba444c33d797b343d886b9a1a46f23df60bc4313432934b47826169bb9a3003bf1d6c8127a42a8f726"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"corner_id": "C8_aged_1000h_fouled_envelope",
|
| 176 |
+
"safe": true,
|
| 177 |
+
"violations": [],
|
| 178 |
+
"effective_compute_w": 16721.64,
|
| 179 |
+
"peak_junction_temp_k": 345.7915302994144,
|
| 180 |
+
"peak_hammer_pressure_pa": 1089290.0866069146,
|
| 181 |
+
"containment_spill_liters": 0.0,
|
| 182 |
+
"pump_lambda_ratio": 1.3108428304760644,
|
| 183 |
+
"min_bus_voltage_v": 44.352890485637445,
|
| 184 |
+
"min_grid_freq_hz": 59.84264396537788,
|
| 185 |
+
"inverter_tripped": false,
|
| 186 |
+
"tim_fatigue_cycles": 235649883.6505199,
|
| 187 |
+
"linear_transmissibility": 0.44786378987677977,
|
| 188 |
+
"optical_degraded": false,
|
| 189 |
+
"max_conservation_residual": 2.8072207328582467e-13,
|
| 190 |
+
"corner_field_sha384": "a91d1ed3362f2773b4520fbf59d1bdc0c8a2b7f78cb552b87af0ca77f9cf2fd912225188a5a2d10546b0bddb8cdb7d8d"
|
| 191 |
+
}
|
| 192 |
+
]
|
| 193 |
+
},
|
| 194 |
+
"ledger_audit": {
|
| 195 |
+
"ledger_verified": true,
|
| 196 |
+
"errors": [],
|
| 197 |
+
"entry_count": 24,
|
| 198 |
+
"discovery_calls_used": 1,
|
| 199 |
+
"sim_calls_used": 21,
|
| 200 |
+
"disabled_tool_attempts": 0,
|
| 201 |
+
"budget_rejected_calls": 0
|
| 202 |
+
},
|
| 203 |
+
"verification_ms": 111.88
|
| 204 |
+
},
|
| 205 |
+
"ledger_records": [
|
| 206 |
+
{
|
| 207 |
+
"seq": 1,
|
| 208 |
+
"ts_unix": 1795226490.233173,
|
| 209 |
+
"task_id": "foundry-002",
|
| 210 |
+
"tool": "describe_plant",
|
| 211 |
+
"category": "discovery",
|
| 212 |
+
"discovery_used": 1,
|
| 213 |
+
"max_discovery_calls": 40,
|
| 214 |
+
"sim_used": 0,
|
| 215 |
+
"max_sim_calls": 24,
|
| 216 |
+
"budget_rejected": false,
|
| 217 |
+
"disabled_tool": false,
|
| 218 |
+
"is_error": false,
|
| 219 |
+
"args_sha384": "d2a23bc783e3aa38f401e13c7488505137c4954a7fd88331f1597c5ff71111dc807c7370a5b282c6da541c56ede69f30",
|
| 220 |
+
"answer_sha384": "5b0e95e74ca0841e1e0972895272a2c9c140bd7250627f3c50eadde3e0f5b9603c5eab7bcbcf892cfff1914ddd4d2857",
|
| 221 |
+
"call_spec": null,
|
| 222 |
+
"extracted_seals": [],
|
| 223 |
+
"step_call_records": [],
|
| 224 |
+
"plugin_event": null,
|
| 225 |
+
"prev_sha384": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
| 226 |
+
"entry_sha384": "64ec82f51ab459e300d86f31f405f2b05550552482e18f916f489ba304dd11671b6bb08fc6c97c60affb05be7b643480"
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"seq": 2,
|
| 230 |
+
"ts_unix": 1795226490.24571,
|
| 231 |
+
"task_id": "foundry-002",
|
| 232 |
+
"tool": "service_probe",
|
| 233 |
+
"category": "exempt",
|
| 234 |
+
"discovery_used": 1,
|
| 235 |
+
"max_discovery_calls": 40,
|
| 236 |
+
"sim_used": 0,
|
| 237 |
+
"max_sim_calls": 24,
|
| 238 |
+
"budget_rejected": false,
|
| 239 |
+
"disabled_tool": false,
|
| 240 |
+
"is_error": false,
|
| 241 |
+
"args_sha384": "4356ed3b5b6d93a2ec68204289cce286a165b195f3235c05fbcaeb967943f00de2441a217076e61384c551cdb038ecc9",
|
| 242 |
+
"answer_sha384": "e3a893888355811fd7dde555b1399257fa0b29de470b0975d2cc9edc07112c9bfbe9fc340d6b8655ec615dd161a40229",
|
| 243 |
+
"call_spec": null,
|
| 244 |
+
"extracted_seals": [],
|
| 245 |
+
"step_call_records": [],
|
| 246 |
+
"plugin_event": {
|
| 247 |
+
"kind": "foundry_service_probe",
|
| 248 |
+
"probe_index": 1,
|
| 249 |
+
"request": {
|
| 250 |
+
"flow_m3_s": 0.006,
|
| 251 |
+
"valve_pulse_closure_s": 3.5,
|
| 252 |
+
"heater_test_power_w": 2000.0,
|
| 253 |
+
"bess_test_current_a": 0.0,
|
| 254 |
+
"duration_s": 1.0
|
| 255 |
+
},
|
| 256 |
+
"observation": {
|
| 257 |
+
"probe_index": 1,
|
| 258 |
+
"probes_remaining": 1,
|
| 259 |
+
"measured_steady_drop_pa": 77478.14134092958,
|
| 260 |
+
"measured_echo_time_s": 0.06414142895378896,
|
| 261 |
+
"measured_peak_hammer_pa": 650367.881669038,
|
| 262 |
+
"measured_inlet_temp_k": 297.50952721911057,
|
| 263 |
+
"measured_junction_temp_k": 291.03499201117353,
|
| 264 |
+
"measured_cell_terminal_v": 3.8159164245424857,
|
| 265 |
+
"measured_grid_freq_nadir_hz": 59.858317022244925,
|
| 266 |
+
"bess_cutoff_triggered": false,
|
| 267 |
+
"cavitation_triggered": false
|
| 268 |
+
},
|
| 269 |
+
"post_probe_memory": {
|
| 270 |
+
"probes_used": 1,
|
| 271 |
+
"current_bess_soc": 0.5598,
|
| 272 |
+
"current_coolant_temp_c": 24.419363636363638,
|
| 273 |
+
"accumulated_wear_factor": 0.0791
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"prev_sha384": "64ec82f51ab459e300d86f31f405f2b05550552482e18f916f489ba304dd11671b6bb08fc6c97c60affb05be7b643480",
|
| 277 |
+
"entry_sha384": "4323a1706a240b245d94ab8ee36586a680ed3c3400f501d91c4ac67b075b6904b9dba365633291dd949f735096016073"
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"seq": 3,
|
| 281 |
+
"ts_unix": 1795226490.253168,
|
| 282 |
+
"task_id": "foundry-002",
|
| 283 |
+
"tool": "solve",
|
| 284 |
+
"category": "sim",
|
| 285 |
+
"discovery_used": 1,
|
| 286 |
+
"max_discovery_calls": 40,
|
| 287 |
+
"sim_used": 1,
|
| 288 |
+
"max_sim_calls": 24,
|
| 289 |
+
"budget_rejected": false,
|
| 290 |
+
"disabled_tool": false,
|
| 291 |
+
"is_error": false,
|
| 292 |
+
"args_sha384": "48a33281a39bb2562ae2ce78c72427a33fd22782354abe93962a142114bf77189a9f2737effce57a801822f5b084a608",
|
| 293 |
+
"answer_sha384": "c9f6fc1440cf0cd3b800ea78beef0f1e67cf1a25f4eace773ba8bc2ac441e86a54329544b41ed3204cdc470021fa66d8",
|
| 294 |
+
"call_spec": {
|
| 295 |
+
"tool": "solve",
|
| 296 |
+
"model_id": "cdu_loop_moc",
|
| 297 |
+
"args": {
|
| 298 |
+
"solver": "cdu_loop_moc",
|
| 299 |
+
"parameters": {
|
| 300 |
+
"supply_pressure_pa": 650000.0,
|
| 301 |
+
"return_pressure_pa": 180000.0,
|
| 302 |
+
"initial_flow_m3_s": 0.006,
|
| 303 |
+
"pipe_length_m": 24.0,
|
| 304 |
+
"pipe_diameter_m": 0.052,
|
| 305 |
+
"valve_closure_s": 3.5,
|
| 306 |
+
"coolant_temp_c": 24.35952721911059,
|
| 307 |
+
"entrained_air_fraction": 0.0008101,
|
| 308 |
+
"fouling_factor": 0.33038,
|
| 309 |
+
"pump_speed_rpm": 1800.0,
|
| 310 |
+
"duration_s": 0.6
|
| 311 |
+
}
|
| 312 |
+
}
|
| 313 |
+
},
|
| 314 |
+
"extracted_seals": [
|
| 315 |
+
"317f002ac3f8772630fb7cb78e54682fadcf6ee8d55fd2bcf8f58fa3de37c4bf6b6369d35c31d97e64fc8f882d23443a",
|
| 316 |
+
"11d6a78794538d132c92e00c0062a5fcfb12fbcd402d2cc95f97fd725252b0a582c7862ec72d55051b876d23204ce62d"
|
| 317 |
+
],
|
| 318 |
+
"step_call_records": [],
|
| 319 |
+
"plugin_event": null,
|
| 320 |
+
"prev_sha384": "4323a1706a240b245d94ab8ee36586a680ed3c3400f501d91c4ac67b075b6904b9dba365633291dd949f735096016073",
|
| 321 |
+
"entry_sha384": "185226df16edb4b12dd7b9f6c40896ac1dd4589c0658f215a7c63b5653c76a99fee47a4a1411ed03f79b3676fce899bf"
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"seq": 4,
|
| 325 |
+
"ts_unix": 1795226490.26036,
|
| 326 |
+
"task_id": "foundry-002",
|
| 327 |
+
"tool": "solve",
|
| 328 |
+
"category": "sim",
|
| 329 |
+
"discovery_used": 1,
|
| 330 |
+
"max_discovery_calls": 40,
|
| 331 |
+
"sim_used": 2,
|
| 332 |
+
"max_sim_calls": 24,
|
| 333 |
+
"budget_rejected": false,
|
| 334 |
+
"disabled_tool": false,
|
| 335 |
+
"is_error": false,
|
| 336 |
+
"args_sha384": "42e585d2a54db42717227e330a3169d493f24061d76620791fdd9e4e37451c6ae67044cabaebffcac5013a8acdaed200",
|
| 337 |
+
"answer_sha384": "58cc3bd082ee5f15b447c20b536f3cec13384a90c02aa985ec3ad0c6229c8e4f478504decaff97880dd18f2bbbf79684",
|
| 338 |
+
"call_spec": {
|
| 339 |
+
"tool": "solve",
|
| 340 |
+
"model_id": "cdu_loop_moc",
|
| 341 |
+
"args": {
|
| 342 |
+
"solver": "cdu_loop_moc",
|
| 343 |
+
"parameters": {
|
| 344 |
+
"supply_pressure_pa": 650000.0,
|
| 345 |
+
"return_pressure_pa": 180000.0,
|
| 346 |
+
"initial_flow_m3_s": 0.006,
|
| 347 |
+
"pipe_length_m": 24.0,
|
| 348 |
+
"pipe_diameter_m": 0.052,
|
| 349 |
+
"valve_closure_s": 3.5,
|
| 350 |
+
"coolant_temp_c": 24.35952721911059,
|
| 351 |
+
"entrained_air_fraction": 0.0024303,
|
| 352 |
+
"fouling_factor": 0.58038,
|
| 353 |
+
"pump_speed_rpm": 1800.0,
|
| 354 |
+
"duration_s": 0.6
|
| 355 |
+
}
|
| 356 |
+
}
|
| 357 |
+
},
|
| 358 |
+
"extracted_seals": [
|
| 359 |
+
"4049cdd648d47a65a04821e4dccdeb865f6dc01f388168b623232d5d426e707201b4da1b3fd99cf8827915aa4f2b1688",
|
| 360 |
+
"6097d6b844fae0e23bd806c0defb9cb7c74483623da78548596c123c9d8da157b310cd25c01ee5abce440dccd79009a0"
|
| 361 |
+
],
|
| 362 |
+
"step_call_records": [],
|
| 363 |
+
"plugin_event": null,
|
| 364 |
+
"prev_sha384": "185226df16edb4b12dd7b9f6c40896ac1dd4589c0658f215a7c63b5653c76a99fee47a4a1411ed03f79b3676fce899bf",
|
| 365 |
+
"entry_sha384": "a99aa751c2de161299a0d7cef416c2b645e2429c83c30a0a15eeb90c080a21c00d8264be9c75368c44fb8e548a837148"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"seq": 5,
|
| 369 |
+
"ts_unix": 1795226490.267682,
|
| 370 |
+
"task_id": "foundry-002",
|
| 371 |
+
"tool": "solve",
|
| 372 |
+
"category": "sim",
|
| 373 |
+
"discovery_used": 1,
|
| 374 |
+
"max_discovery_calls": 40,
|
| 375 |
+
"sim_used": 3,
|
| 376 |
+
"max_sim_calls": 24,
|
| 377 |
+
"budget_rejected": false,
|
| 378 |
+
"disabled_tool": false,
|
| 379 |
+
"is_error": false,
|
| 380 |
+
"args_sha384": "fd6cb6b157ba5eb56844f30775817eac77c39d2cc9d1f786a948138972f85343b92f5c7e0bc74dbda1e9bb1febd9688a",
|
| 381 |
+
"answer_sha384": "8507edeefc68c301d9ffead95645f00586f45a25e132b7e8d883e6f6557c08722038395d95636a69d63eb30bb82916cd",
|
| 382 |
+
"call_spec": {
|
| 383 |
+
"tool": "solve",
|
| 384 |
+
"model_id": "cdu_loop_moc",
|
| 385 |
+
"args": {
|
| 386 |
+
"solver": "cdu_loop_moc",
|
| 387 |
+
"parameters": {
|
| 388 |
+
"supply_pressure_pa": 650000.0,
|
| 389 |
+
"return_pressure_pa": 180000.0,
|
| 390 |
+
"initial_flow_m3_s": 0.006,
|
| 391 |
+
"pipe_length_m": 24.0,
|
| 392 |
+
"pipe_diameter_m": 0.052,
|
| 393 |
+
"valve_closure_s": 3.5,
|
| 394 |
+
"coolant_temp_c": 24.35952721911059,
|
| 395 |
+
"entrained_air_fraction": 0.0008111613945040945,
|
| 396 |
+
"fouling_factor": 0.4056965178941361,
|
| 397 |
+
"pump_speed_rpm": 1800.0,
|
| 398 |
+
"duration_s": 0.6
|
| 399 |
+
}
|
| 400 |
+
}
|
| 401 |
+
},
|
| 402 |
+
"extracted_seals": [
|
| 403 |
+
"faf119e4e194224ea5a6bdcc04e7a77ef7f8fd46f5fb7df5a7f9f9962c1606c9c44987fb555a5ee5718d7a27618d9f71",
|
| 404 |
+
"f3aef7bb9f15172211a9c79465a008fff327339a41697495b9db8a1649c4d2defd2c3a6fe90ec7ec18be9e6ca526becf"
|
| 405 |
+
],
|
| 406 |
+
"step_call_records": [],
|
| 407 |
+
"plugin_event": null,
|
| 408 |
+
"prev_sha384": "a99aa751c2de161299a0d7cef416c2b645e2429c83c30a0a15eeb90c080a21c00d8264be9c75368c44fb8e548a837148",
|
| 409 |
+
"entry_sha384": "63f947e5d09e4c7994ffa80fa97c4ad37b666ad78ca4479aaa32f5d8ad494605abe2a901cc0e9233cecc0d4ef7d028e0"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"seq": 6,
|
| 413 |
+
"ts_unix": 1795226490.279579,
|
| 414 |
+
"task_id": "foundry-002",
|
| 415 |
+
"tool": "service_probe",
|
| 416 |
+
"category": "exempt",
|
| 417 |
+
"discovery_used": 1,
|
| 418 |
+
"max_discovery_calls": 40,
|
| 419 |
+
"sim_used": 3,
|
| 420 |
+
"max_sim_calls": 24,
|
| 421 |
+
"budget_rejected": false,
|
| 422 |
+
"disabled_tool": false,
|
| 423 |
+
"is_error": false,
|
| 424 |
+
"args_sha384": "4356ed3b5b6d93a2ec68204289cce286a165b195f3235c05fbcaeb967943f00de2441a217076e61384c551cdb038ecc9",
|
| 425 |
+
"answer_sha384": "e61a1136d3cc95e0088aa7dff8bb4c9ae5ebb55be123d9aced16db308c7f6a4b9be19bab4113df0e8ec301394b978fa7",
|
| 426 |
+
"call_spec": null,
|
| 427 |
+
"extracted_seals": [],
|
| 428 |
+
"step_call_records": [],
|
| 429 |
+
"plugin_event": {
|
| 430 |
+
"kind": "foundry_service_probe",
|
| 431 |
+
"probe_index": 2,
|
| 432 |
+
"request": {
|
| 433 |
+
"flow_m3_s": 0.006,
|
| 434 |
+
"valve_pulse_closure_s": 3.5,
|
| 435 |
+
"heater_test_power_w": 2000.0,
|
| 436 |
+
"bess_test_current_a": 0.0,
|
| 437 |
+
"duration_s": 1.0
|
| 438 |
+
},
|
| 439 |
+
"observation": {
|
| 440 |
+
"probe_index": 2,
|
| 441 |
+
"probes_remaining": 0,
|
| 442 |
+
"measured_steady_drop_pa": 77549.93993800158,
|
| 443 |
+
"measured_echo_time_s": 0.06413009982234434,
|
| 444 |
+
"measured_peak_hammer_pa": 651061.8755118732,
|
| 445 |
+
"measured_inlet_temp_k": 297.5573419138775,
|
| 446 |
+
"measured_junction_temp_k": 291.071466391459,
|
| 447 |
+
"measured_cell_terminal_v": 3.81666240629525,
|
| 448 |
+
"measured_grid_freq_nadir_hz": 59.85890940043905,
|
| 449 |
+
"bess_cutoff_triggered": false,
|
| 450 |
+
"cavitation_triggered": false
|
| 451 |
+
},
|
| 452 |
+
"post_probe_memory": {
|
| 453 |
+
"probes_used": 2,
|
| 454 |
+
"current_bess_soc": 0.5598,
|
| 455 |
+
"current_coolant_temp_c": 24.459727272727275,
|
| 456 |
+
"accumulated_wear_factor": 0.0811
|
| 457 |
+
}
|
| 458 |
+
},
|
| 459 |
+
"prev_sha384": "63f947e5d09e4c7994ffa80fa97c4ad37b666ad78ca4479aaa32f5d8ad494605abe2a901cc0e9233cecc0d4ef7d028e0",
|
| 460 |
+
"entry_sha384": "b047545a1b2b5cf02f70947216755381998a6c5b2e8341e32090bfd256980a728102b7971678ddc8323b72b9073e27ff"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"seq": 7,
|
| 464 |
+
"ts_unix": 1795226490.280509,
|
| 465 |
+
"task_id": "foundry-002",
|
| 466 |
+
"tool": "solve",
|
| 467 |
+
"category": "sim",
|
| 468 |
+
"discovery_used": 1,
|
| 469 |
+
"max_discovery_calls": 40,
|
| 470 |
+
"sim_used": 4,
|
| 471 |
+
"max_sim_calls": 24,
|
| 472 |
+
"budget_rejected": false,
|
| 473 |
+
"disabled_tool": false,
|
| 474 |
+
"is_error": false,
|
| 475 |
+
"args_sha384": "10a8d611bec69e85e07e197f3e7fda86147539753ac53d3ed90a0f0b5a5b4c254fb9368affcf5a9cae20fb94962b528e",
|
| 476 |
+
"answer_sha384": "fe1de5d00172dcd78fb1234cdea19dc553cda0a353c245bd4f18c774394655fcfe4cbf9b998ac80ef00516e3d0c5b796",
|
| 477 |
+
"call_spec": {
|
| 478 |
+
"tool": "solve",
|
| 479 |
+
"model_id": "die_coldplate_fe",
|
| 480 |
+
"args": {
|
| 481 |
+
"solver": "die_coldplate_fe",
|
| 482 |
+
"parameters": {
|
| 483 |
+
"base_compute_power_w": 2000.0,
|
| 484 |
+
"leakage_ref_power_w": 220.0,
|
| 485 |
+
"coolant_mass_flow_kg_s": 0.13,
|
| 486 |
+
"coolant_inlet_temp_k": 297.50952721911057,
|
| 487 |
+
"saturation_temp_k": 368.15,
|
| 488 |
+
"fin_area_multiplier": 3.0,
|
| 489 |
+
"tim_thickness_um": 60.0,
|
| 490 |
+
"clamp_preload_mpa": 5.0,
|
| 491 |
+
"fouling_factor": 0.4077735979431096,
|
| 492 |
+
"duration_s": 1.0,
|
| 493 |
+
"dt_s": 0.05,
|
| 494 |
+
"initial_vapor_lock": false
|
| 495 |
+
}
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"extracted_seals": [
|
| 499 |
+
"90db28a4fb325cbcfa87bfd1bba0b7be9e1c91fc86decc5ccdcc17c5dba617ae1ac98044e7f3198bc1032372fe28a1c9",
|
| 500 |
+
"98b52a305c280f94bf629b54db4ba0572204606afde1698dc9c5d1154cdbb82ae62d3dbef107f438cc178d8f0336b279"
|
| 501 |
+
],
|
| 502 |
+
"step_call_records": [],
|
| 503 |
+
"plugin_event": null,
|
| 504 |
+
"prev_sha384": "b047545a1b2b5cf02f70947216755381998a6c5b2e8341e32090bfd256980a728102b7971678ddc8323b72b9073e27ff",
|
| 505 |
+
"entry_sha384": "89ddeccc8a0fcfc98d86050283c431e127991a28e59741d819b3f34d7ab481707818b2032bb881acccfbacb9c304e8c5"
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"seq": 8,
|
| 509 |
+
"ts_unix": 1795226490.281092,
|
| 510 |
+
"task_id": "foundry-002",
|
| 511 |
+
"tool": "solve",
|
| 512 |
+
"category": "sim",
|
| 513 |
+
"discovery_used": 1,
|
| 514 |
+
"max_discovery_calls": 40,
|
| 515 |
+
"sim_used": 5,
|
| 516 |
+
"max_sim_calls": 24,
|
| 517 |
+
"budget_rejected": false,
|
| 518 |
+
"disabled_tool": false,
|
| 519 |
+
"is_error": false,
|
| 520 |
+
"args_sha384": "957e2ec5d2769480a5d2b1ac715d25576b7990b46c01b53113e91f1bf440444cc84a8a1ba9ddc026e96b033542463bf7",
|
| 521 |
+
"answer_sha384": "e484094ef9550d3cd3244c2a1af3e5d2ad72e1537d9eb2c88a04a6d47662ef1fddcbd075edd727bc2781b8f721fc8ff9",
|
| 522 |
+
"call_spec": {
|
| 523 |
+
"tool": "solve",
|
| 524 |
+
"model_id": "rack_power_pll",
|
| 525 |
+
"args": {
|
| 526 |
+
"solver": "rack_power_pll",
|
| 527 |
+
"parameters": {
|
| 528 |
+
"step_rack_load_pu": 0.16,
|
| 529 |
+
"inverter_fraction": 0.31678,
|
| 530 |
+
"pll_bandwidth_per_s": 20.0,
|
| 531 |
+
"governor_droop": 12.0,
|
| 532 |
+
"bess_support_current_a": 0.0,
|
| 533 |
+
"bess_parallel_strings": 140,
|
| 534 |
+
"bess_initial_soc": 0.56503,
|
| 535 |
+
"bess_case_temp_c": -17.492,
|
| 536 |
+
"rack_dc_current_a": 160.0,
|
| 537 |
+
"parallel_feeder_legs": 20,
|
| 538 |
+
"duration_s": 1.0
|
| 539 |
+
}
|
| 540 |
+
}
|
| 541 |
+
},
|
| 542 |
+
"extracted_seals": [
|
| 543 |
+
"e63007a39f05b2078578fe17350ef97c89b77da82973c8d52c5dfd3d34d09c2bb55d91d020b115403136b05922501722",
|
| 544 |
+
"eb74315cf580f2d44e19694ed7fbe4441f9a295743ca6612d55cb4ca00bd61ad25a5a66c6424c76bb421fc1311379c90"
|
| 545 |
+
],
|
| 546 |
+
"step_call_records": [],
|
| 547 |
+
"plugin_event": null,
|
| 548 |
+
"prev_sha384": "89ddeccc8a0fcfc98d86050283c431e127991a28e59741d819b3f34d7ab481707818b2032bb881acccfbacb9c304e8c5",
|
| 549 |
+
"entry_sha384": "3d42f19f08b9d36fcefc69112e68a5fbcccc1724012dde3908cd507cbffa9aebe6b42da2c429fe9c1f4224cc6ed37038"
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"seq": 9,
|
| 553 |
+
"ts_unix": 1795226490.281567,
|
| 554 |
+
"task_id": "foundry-002",
|
| 555 |
+
"tool": "solve",
|
| 556 |
+
"category": "sim",
|
| 557 |
+
"discovery_used": 1,
|
| 558 |
+
"max_discovery_calls": 40,
|
| 559 |
+
"sim_used": 6,
|
| 560 |
+
"max_sim_calls": 24,
|
| 561 |
+
"budget_rejected": false,
|
| 562 |
+
"disabled_tool": false,
|
| 563 |
+
"is_error": false,
|
| 564 |
+
"args_sha384": "4e8dab4d796fa05d2221e6c7708c78c69745e124a09c4b72cc77c5b23d7085e831979629b5be7f02fe0d569a11d47327",
|
| 565 |
+
"answer_sha384": "a7ef23a24d94517e43ba64750c8ee6a51fb4747ffd527dbfe29c43bd3a8e66443e2d18e19c9d3db458beee1ad4748611",
|
| 566 |
+
"call_spec": {
|
| 567 |
+
"tool": "solve",
|
| 568 |
+
"model_id": "rack_power_pll",
|
| 569 |
+
"args": {
|
| 570 |
+
"solver": "rack_power_pll",
|
| 571 |
+
"parameters": {
|
| 572 |
+
"step_rack_load_pu": 0.16,
|
| 573 |
+
"inverter_fraction": 0.41678000000000004,
|
| 574 |
+
"pll_bandwidth_per_s": 20.0,
|
| 575 |
+
"governor_droop": 12.0,
|
| 576 |
+
"bess_support_current_a": 0.0,
|
| 577 |
+
"bess_parallel_strings": 140,
|
| 578 |
+
"bess_initial_soc": 0.41503,
|
| 579 |
+
"bess_case_temp_c": -17.492,
|
| 580 |
+
"rack_dc_current_a": 160.0,
|
| 581 |
+
"parallel_feeder_legs": 20,
|
| 582 |
+
"duration_s": 1.0
|
| 583 |
+
}
|
| 584 |
+
}
|
| 585 |
+
},
|
| 586 |
+
"extracted_seals": [
|
| 587 |
+
"0056f312434a55c96e6c33f90de7db35a49bcf84242bd84cab72907b406fc15ad00abc82eace1f917815e34b0f9a3059",
|
| 588 |
+
"14ab5ef47f4f982653761209b9924b44709f3538600ed64f8d14fd44191f78bc4be3bd559edc23276f1471985cd77f67"
|
| 589 |
+
],
|
| 590 |
+
"step_call_records": [],
|
| 591 |
+
"plugin_event": null,
|
| 592 |
+
"prev_sha384": "3d42f19f08b9d36fcefc69112e68a5fbcccc1724012dde3908cd507cbffa9aebe6b42da2c429fe9c1f4224cc6ed37038",
|
| 593 |
+
"entry_sha384": "a8ccf2f656f1a4c09954426546d41274c5e0d3cbb9c03695ee9a964378cac11f85d8c7e0e5cd4f5d78979f938ad7a41a"
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"seq": 10,
|
| 597 |
+
"ts_unix": 1795226490.282179,
|
| 598 |
+
"task_id": "foundry-002",
|
| 599 |
+
"tool": "solve",
|
| 600 |
+
"category": "sim",
|
| 601 |
+
"discovery_used": 1,
|
| 602 |
+
"max_discovery_calls": 40,
|
| 603 |
+
"sim_used": 7,
|
| 604 |
+
"max_sim_calls": 24,
|
| 605 |
+
"budget_rejected": false,
|
| 606 |
+
"disabled_tool": false,
|
| 607 |
+
"is_error": false,
|
| 608 |
+
"args_sha384": "674ec1e84cdc4f49d0a1c5d629493050f0b25793cece9248699aae2cfe5bd0006d3c60589e0bdbe9c5b4a48f94ecb38c",
|
| 609 |
+
"answer_sha384": "a46f00077ce5612089ac227cb2d9088659a1e0b26124c8387c1f4510b618b171b29596032fb8268fbfde6f4970ed3fd8",
|
| 610 |
+
"call_spec": {
|
| 611 |
+
"tool": "solve",
|
| 612 |
+
"model_id": "rack_power_pll",
|
| 613 |
+
"args": {
|
| 614 |
+
"solver": "rack_power_pll",
|
| 615 |
+
"parameters": {
|
| 616 |
+
"step_rack_load_pu": 0.16,
|
| 617 |
+
"inverter_fraction": 0.30621005105579907,
|
| 618 |
+
"pll_bandwidth_per_s": 20.0,
|
| 619 |
+
"governor_droop": 12.0,
|
| 620 |
+
"bess_support_current_a": 0.0,
|
| 621 |
+
"bess_parallel_strings": 140,
|
| 622 |
+
"bess_initial_soc": 0.5606327884005238,
|
| 623 |
+
"bess_case_temp_c": -17.492,
|
| 624 |
+
"rack_dc_current_a": 160.0,
|
| 625 |
+
"parallel_feeder_legs": 20,
|
| 626 |
+
"duration_s": 1.0
|
| 627 |
+
}
|
| 628 |
+
}
|
| 629 |
+
},
|
| 630 |
+
"extracted_seals": [
|
| 631 |
+
"3786d3617f6a5770069a327b3cddf6a25dd0b503a884b98ac3590f359ab726ddc47a4560704acf2360da8c522c8a4e9b",
|
| 632 |
+
"06f0f115421889ab0f9cba14bf8299a65ce134fb8266fccdcce9b53b42872604b33cf5537b3879bb8d75298d5a0736b3"
|
| 633 |
+
],
|
| 634 |
+
"step_call_records": [],
|
| 635 |
+
"plugin_event": null,
|
| 636 |
+
"prev_sha384": "a8ccf2f656f1a4c09954426546d41274c5e0d3cbb9c03695ee9a964378cac11f85d8c7e0e5cd4f5d78979f938ad7a41a",
|
| 637 |
+
"entry_sha384": "3d0e6e314eadc3f7d739c7bb2887424180ef3c7091e533b7b9e50b8a49370e88eb62c661db88983a6cee55dab7ac7ca3"
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"seq": 11,
|
| 641 |
+
"ts_unix": 1795226490.283219,
|
| 642 |
+
"task_id": "foundry-002",
|
| 643 |
+
"tool": "solve",
|
| 644 |
+
"category": "sim",
|
| 645 |
+
"discovery_used": 1,
|
| 646 |
+
"max_discovery_calls": 40,
|
| 647 |
+
"sim_used": 8,
|
| 648 |
+
"max_sim_calls": 24,
|
| 649 |
+
"budget_rejected": false,
|
| 650 |
+
"disabled_tool": false,
|
| 651 |
+
"is_error": false,
|
| 652 |
+
"args_sha384": "59a127543f036588a03dcb3f9c2ab3cd920445aa6270404e91101e21e11dd02bc4e5954442f616988c49309dbb97201a",
|
| 653 |
+
"answer_sha384": "9edc992b1adab6f129e47f2deb6275a14a549bdee4d7d966ec3777ba6f8ba66e20efd90be562766d16f8fcc10772b722",
|
| 654 |
+
"call_spec": {
|
| 655 |
+
"tool": "solve",
|
| 656 |
+
"model_id": "die_coldplate_fe",
|
| 657 |
+
"args": {
|
| 658 |
+
"solver": "die_coldplate_fe",
|
| 659 |
+
"parameters": {
|
| 660 |
+
"base_compute_power_w": 17805.449999999997,
|
| 661 |
+
"leakage_ref_power_w": 220.0,
|
| 662 |
+
"coolant_mass_flow_kg_s": 0.4953,
|
| 663 |
+
"coolant_inlet_temp_k": 303.7389847995498,
|
| 664 |
+
"saturation_temp_k": 351.2815481082655,
|
| 665 |
+
"fin_area_multiplier": 5.5,
|
| 666 |
+
"tim_thickness_um": 52.32,
|
| 667 |
+
"clamp_preload_mpa": 4.2,
|
| 668 |
+
"fouling_factor": 0.46177359794310957,
|
| 669 |
+
"duration_s": 12.0,
|
| 670 |
+
"dt_s": 0.05,
|
| 671 |
+
"initial_vapor_lock": false
|
| 672 |
+
}
|
| 673 |
+
}
|
| 674 |
+
},
|
| 675 |
+
"extracted_seals": [
|
| 676 |
+
"6edbaf215e7533ae00e78d506f35849afd3ba8eaaae2fdc537c35c0c41c27025930025008d92feedd10ff63c3850dbdc",
|
| 677 |
+
"fb5c3a467df0f97b58c686edea9509546054558fa44f37ed7caaaf5160a5db9e4cebbec7d398397cfd60e33c648c393e"
|
| 678 |
+
],
|
| 679 |
+
"step_call_records": [],
|
| 680 |
+
"plugin_event": null,
|
| 681 |
+
"prev_sha384": "3d0e6e314eadc3f7d739c7bb2887424180ef3c7091e533b7b9e50b8a49370e88eb62c661db88983a6cee55dab7ac7ca3",
|
| 682 |
+
"entry_sha384": "0ed0ccfe67344b0859691bb52bb49f39e01f18b8da4279cf537667038218e4d6400e56ada8c6008f94589cc3cb005390"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"seq": 12,
|
| 686 |
+
"ts_unix": 1795226490.284017,
|
| 687 |
+
"task_id": "foundry-002",
|
| 688 |
+
"tool": "solve",
|
| 689 |
+
"category": "sim",
|
| 690 |
+
"discovery_used": 1,
|
| 691 |
+
"max_discovery_calls": 40,
|
| 692 |
+
"sim_used": 9,
|
| 693 |
+
"max_sim_calls": 24,
|
| 694 |
+
"budget_rejected": false,
|
| 695 |
+
"disabled_tool": false,
|
| 696 |
+
"is_error": false,
|
| 697 |
+
"args_sha384": "57d494b8120db63a7b14e65f63124a2b375897d188ed885ff475913354711d2d9615196051968fa2ebaeb0863feb47d1",
|
| 698 |
+
"answer_sha384": "7d0145d1d88182e887341482e06df019aafac1fd54c18d8262342b426979fa92f94bc76bdf975167dd54e40e4c1cd423",
|
| 699 |
+
"call_spec": {
|
| 700 |
+
"tool": "solve",
|
| 701 |
+
"model_id": "die_coldplate_fe",
|
| 702 |
+
"args": {
|
| 703 |
+
"solver": "die_coldplate_fe",
|
| 704 |
+
"parameters": {
|
| 705 |
+
"base_compute_power_w": 15689.407447397482,
|
| 706 |
+
"leakage_ref_power_w": 220.0,
|
| 707 |
+
"coolant_mass_flow_kg_s": 0.5860499666666666,
|
| 708 |
+
"coolant_inlet_temp_k": 309.7852331617277,
|
| 709 |
+
"saturation_temp_k": 351.2815481082655,
|
| 710 |
+
"fin_area_multiplier": 5.5,
|
| 711 |
+
"tim_thickness_um": 52.32,
|
| 712 |
+
"clamp_preload_mpa": 4.2,
|
| 713 |
+
"fouling_factor": 0.5117735979431096,
|
| 714 |
+
"duration_s": 12.0,
|
| 715 |
+
"dt_s": 0.05,
|
| 716 |
+
"initial_vapor_lock": false
|
| 717 |
+
}
|
| 718 |
+
}
|
| 719 |
+
},
|
| 720 |
+
"extracted_seals": [
|
| 721 |
+
"c323b3cdb42877f1bb7f179e1f7b08d7e2142910bd9a73fcac19b1190c40ecf024e67cdceec405ae99af2c8d40b0e036",
|
| 722 |
+
"8ffc4c12c07d7136b76fc3fef50351a483b63926b1c0f82b8879c40f2ce27e9469b6932ec307193018e0cc26e2406b6b"
|
| 723 |
+
],
|
| 724 |
+
"step_call_records": [],
|
| 725 |
+
"plugin_event": null,
|
| 726 |
+
"prev_sha384": "0ed0ccfe67344b0859691bb52bb49f39e01f18b8da4279cf537667038218e4d6400e56ada8c6008f94589cc3cb005390",
|
| 727 |
+
"entry_sha384": "22819da2586e6dc8f6bb1a5ebcdca0bc4f1afaf7d2d00aabf305316bbe2217cfa8133fe826f47aa01fdae8cbd5e03bc5"
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"seq": 13,
|
| 731 |
+
"ts_unix": 1795226490.284824,
|
| 732 |
+
"task_id": "foundry-002",
|
| 733 |
+
"tool": "solve",
|
| 734 |
+
"category": "sim",
|
| 735 |
+
"discovery_used": 1,
|
| 736 |
+
"max_discovery_calls": 40,
|
| 737 |
+
"sim_used": 10,
|
| 738 |
+
"max_sim_calls": 24,
|
| 739 |
+
"budget_rejected": false,
|
| 740 |
+
"disabled_tool": false,
|
| 741 |
+
"is_error": false,
|
| 742 |
+
"args_sha384": "3b5bf06915c78703f86ff3cfbbc245fa62d6793a0295b0dab50967c020b4d33ad510597691a638b30aeab714f7ececbd",
|
| 743 |
+
"answer_sha384": "9c348f49b319e6de26528575847345fbf63b1fedb49ffefdf063480a42cd94708a1b9ad6d68af7523b13215ecdb06ae7",
|
| 744 |
+
"call_spec": {
|
| 745 |
+
"tool": "solve",
|
| 746 |
+
"model_id": "die_coldplate_fe",
|
| 747 |
+
"args": {
|
| 748 |
+
"solver": "die_coldplate_fe",
|
| 749 |
+
"parameters": {
|
| 750 |
+
"base_compute_power_w": 16721.64,
|
| 751 |
+
"leakage_ref_power_w": 220.0,
|
| 752 |
+
"coolant_mass_flow_kg_s": 0.4842933333333333,
|
| 753 |
+
"coolant_inlet_temp_k": 301.631071954468,
|
| 754 |
+
"saturation_temp_k": 351.2815481082655,
|
| 755 |
+
"fin_area_multiplier": 5.5,
|
| 756 |
+
"tim_thickness_um": 52.32,
|
| 757 |
+
"clamp_preload_mpa": 4.2,
|
| 758 |
+
"fouling_factor": 0.7617735979431095,
|
| 759 |
+
"duration_s": 12.0,
|
| 760 |
+
"dt_s": 0.05,
|
| 761 |
+
"initial_vapor_lock": false
|
| 762 |
+
}
|
| 763 |
+
}
|
| 764 |
+
},
|
| 765 |
+
"extracted_seals": [
|
| 766 |
+
"03b1426ff00c5b0e4d32448e5582dd51e5ffe5f2017641969c481a9f51c3a8df2425c93abade640511e3079ef10ecf44",
|
| 767 |
+
"d9fec0a0a416649184cdb249aafcf8adcc658c1e75ebdce168ebd67125ae4b52aecc48b8e262010f02f6b3476dd00261"
|
| 768 |
+
],
|
| 769 |
+
"step_call_records": [],
|
| 770 |
+
"plugin_event": null,
|
| 771 |
+
"prev_sha384": "22819da2586e6dc8f6bb1a5ebcdca0bc4f1afaf7d2d00aabf305316bbe2217cfa8133fe826f47aa01fdae8cbd5e03bc5",
|
| 772 |
+
"entry_sha384": "4459c037fb1f39912d93b2621fffc9a4ca5200a802758bba68535f4bb98916de13a6f8859979fcd512d5d6ba5d846fb9"
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"seq": 14,
|
| 776 |
+
"ts_unix": 1795226490.356117,
|
| 777 |
+
"task_id": "foundry-002",
|
| 778 |
+
"tool": "solve",
|
| 779 |
+
"category": "sim",
|
| 780 |
+
"discovery_used": 1,
|
| 781 |
+
"max_discovery_calls": 40,
|
| 782 |
+
"sim_used": 11,
|
| 783 |
+
"max_sim_calls": 24,
|
| 784 |
+
"budget_rejected": false,
|
| 785 |
+
"disabled_tool": false,
|
| 786 |
+
"is_error": false,
|
| 787 |
+
"args_sha384": "d5ba22aaff6f8f1376ac82597487f806bfe47250a8b7029658a868efb537c58894a311aef9c9359f53f3880ba0473f32",
|
| 788 |
+
"answer_sha384": "cba3825854b9f9b606dce42b7d72e0f1a9488142c0ea88d32f0bd08800068318c72806d9e3f1089f315245edcaf56d46",
|
| 789 |
+
"call_spec": {
|
| 790 |
+
"tool": "solve",
|
| 791 |
+
"model_id": "die_coldplate_fe",
|
| 792 |
+
"args": {
|
| 793 |
+
"solver": "die_coldplate_fe",
|
| 794 |
+
"parameters": {
|
| 795 |
+
"base_compute_power_w": 19818.24,
|
| 796 |
+
"leakage_ref_power_w": 220.0,
|
| 797 |
+
"coolant_mass_flow_kg_s": 0.5503333333333333,
|
| 798 |
+
"coolant_inlet_temp_k": 297.9393943689875,
|
| 799 |
+
"saturation_temp_k": 351.2815481082655,
|
| 800 |
+
"fin_area_multiplier": 5.5,
|
| 801 |
+
"tim_thickness_um": 52.32,
|
| 802 |
+
"clamp_preload_mpa": 4.2,
|
| 803 |
+
"fouling_factor": 0.4117735979431096,
|
| 804 |
+
"duration_s": 12.0,
|
| 805 |
+
"dt_s": 0.05,
|
| 806 |
+
"initial_vapor_lock": false
|
| 807 |
+
}
|
| 808 |
+
}
|
| 809 |
+
},
|
| 810 |
+
"extracted_seals": [
|
| 811 |
+
"329f701e793330fb44a309eae4f909858dd2397971fb9c0ec4604127bbc2a2a38775ce89e4ee723de42a76dba9d9a19b",
|
| 812 |
+
"2ce06f15151db3347c2e957ec4f14e3550b202360128fc1f5a2176ea44c9fa1c0dae5711805fa9e39e35b2878f638b58"
|
| 813 |
+
],
|
| 814 |
+
"step_call_records": [],
|
| 815 |
+
"plugin_event": null,
|
| 816 |
+
"prev_sha384": "4459c037fb1f39912d93b2621fffc9a4ca5200a802758bba68535f4bb98916de13a6f8859979fcd512d5d6ba5d846fb9",
|
| 817 |
+
"entry_sha384": "d2cb2d47a932739e2d44ef4f8f8352ccdac810649a0d6b42c4e1231be330345a425b09e8b143eebae59b24eff2a19466"
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"seq": 15,
|
| 821 |
+
"ts_unix": 1795226490.357213,
|
| 822 |
+
"task_id": "foundry-002",
|
| 823 |
+
"tool": "solve",
|
| 824 |
+
"category": "sim",
|
| 825 |
+
"discovery_used": 1,
|
| 826 |
+
"max_discovery_calls": 40,
|
| 827 |
+
"sim_used": 12,
|
| 828 |
+
"max_sim_calls": 24,
|
| 829 |
+
"budget_rejected": false,
|
| 830 |
+
"disabled_tool": false,
|
| 831 |
+
"is_error": false,
|
| 832 |
+
"args_sha384": "f4a72a9df76dba406ca35b7c80142c77fa17a4817bbeaf0bf9ff6952de0536e81b09198276f92aa35e56517bd8cb1697",
|
| 833 |
+
"answer_sha384": "a85016a458d4aa6dcea91bdbcc799eaa48cb127eb941957177eebb60872aa68f008751ae3cc8a56396704f586b339269",
|
| 834 |
+
"call_spec": {
|
| 835 |
+
"tool": "solve",
|
| 836 |
+
"model_id": "die_coldplate_fe",
|
| 837 |
+
"args": {
|
| 838 |
+
"solver": "die_coldplate_fe",
|
| 839 |
+
"parameters": {
|
| 840 |
+
"base_compute_power_w": 15483.0,
|
| 841 |
+
"leakage_ref_power_w": 220.0,
|
| 842 |
+
"coolant_mass_flow_kg_s": 0.38523333333333326,
|
| 843 |
+
"coolant_inlet_temp_k": 299.5077429886602,
|
| 844 |
+
"saturation_temp_k": 351.2815481082655,
|
| 845 |
+
"fin_area_multiplier": 5.5,
|
| 846 |
+
"tim_thickness_um": 52.32,
|
| 847 |
+
"clamp_preload_mpa": 4.2,
|
| 848 |
+
"fouling_factor": 0.4117735979431096,
|
| 849 |
+
"duration_s": 12.0,
|
| 850 |
+
"dt_s": 0.05,
|
| 851 |
+
"initial_vapor_lock": false
|
| 852 |
+
}
|
| 853 |
+
}
|
| 854 |
+
},
|
| 855 |
+
"extracted_seals": [
|
| 856 |
+
"2b49758e12f416aa6f590f51ac5ba1cf0b0893c46102a581eb0f8d09155c9a46ab6befeeccab2de32e77fd9d14027efb",
|
| 857 |
+
"7db6235a21b0d2bb5e87f686008647e1db52be86056038681d75883070e47634e1ca6d8067abe862c8b9f95b62aa1faa"
|
| 858 |
+
],
|
| 859 |
+
"step_call_records": [],
|
| 860 |
+
"plugin_event": null,
|
| 861 |
+
"prev_sha384": "d2cb2d47a932739e2d44ef4f8f8352ccdac810649a0d6b42c4e1231be330345a425b09e8b143eebae59b24eff2a19466",
|
| 862 |
+
"entry_sha384": "9e4a2be9cc3d822462fdc26f3aeb2f1381bad73357b471f1d33f74cb1072a87bf10960a0b1853c29b8fc5e347e0e7a74"
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"seq": 16,
|
| 866 |
+
"ts_unix": 1795226490.514742,
|
| 867 |
+
"task_id": "foundry-002",
|
| 868 |
+
"tool": "solve",
|
| 869 |
+
"category": "sim",
|
| 870 |
+
"discovery_used": 1,
|
| 871 |
+
"max_discovery_calls": 40,
|
| 872 |
+
"sim_used": 13,
|
| 873 |
+
"max_sim_calls": 24,
|
| 874 |
+
"budget_rejected": false,
|
| 875 |
+
"disabled_tool": false,
|
| 876 |
+
"is_error": false,
|
| 877 |
+
"args_sha384": "58977fea4e787a2176ce749a814d6a77cb21d683fa5d0566015332e8958ce1d9c076c26abbee9fd666545ea0c9ab2f34",
|
| 878 |
+
"answer_sha384": "e6fea96a7b0c077ebed2ce62c026736145f7fb4e12ff4254bd3f241f291c2040a589bdb9812a11defae1ed7a12e454bf",
|
| 879 |
+
"call_spec": {
|
| 880 |
+
"tool": "solve",
|
| 881 |
+
"model_id": "cdu_loop_moc",
|
| 882 |
+
"args": {
|
| 883 |
+
"solver": "cdu_loop_moc",
|
| 884 |
+
"parameters": {
|
| 885 |
+
"supply_pressure_pa": 445364.2,
|
| 886 |
+
"return_pressure_pa": 180000.0,
|
| 887 |
+
"initial_flow_m3_s": 0.02667,
|
| 888 |
+
"pipe_length_m": 16.5,
|
| 889 |
+
"pipe_diameter_m": 0.072,
|
| 890 |
+
"valve_closure_s": 0.27408555,
|
| 891 |
+
"coolant_temp_c": 22.373159109386183,
|
| 892 |
+
"entrained_air_fraction": 0.0008101,
|
| 893 |
+
"fouling_factor": 0.4117735979431096,
|
| 894 |
+
"pump_speed_rpm": 2984.861769,
|
| 895 |
+
"duration_s": 0.8
|
| 896 |
+
}
|
| 897 |
+
}
|
| 898 |
+
},
|
| 899 |
+
"extracted_seals": [
|
| 900 |
+
"b0bfff53223e14055770a1982b6d718f81eeefb05c98d34f6847fa667fc80a6facd3e8b13ce2b7ec42823b175fec4250",
|
| 901 |
+
"4f9f928f2757853fba59a37ad2e1948de9badc182b61434e370ffaf435bbb1f253497b24478808612533b402238243bf"
|
| 902 |
+
],
|
| 903 |
+
"step_call_records": [],
|
| 904 |
+
"plugin_event": null,
|
| 905 |
+
"prev_sha384": "9e4a2be9cc3d822462fdc26f3aeb2f1381bad73357b471f1d33f74cb1072a87bf10960a0b1853c29b8fc5e347e0e7a74",
|
| 906 |
+
"entry_sha384": "de4fe0cc688c4e5606109448b6ae7e82c054ba006a780fcb297a7e55c9b360979dcb44f32e238b4e9e980297dcfceef3"
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"seq": 17,
|
| 910 |
+
"ts_unix": 1795226490.527822,
|
| 911 |
+
"task_id": "foundry-002",
|
| 912 |
+
"tool": "solve",
|
| 913 |
+
"category": "sim",
|
| 914 |
+
"discovery_used": 1,
|
| 915 |
+
"max_discovery_calls": 40,
|
| 916 |
+
"sim_used": 14,
|
| 917 |
+
"max_sim_calls": 24,
|
| 918 |
+
"budget_rejected": false,
|
| 919 |
+
"disabled_tool": false,
|
| 920 |
+
"is_error": false,
|
| 921 |
+
"args_sha384": "b0d97dbd5abc374ed3f4e23808f9df0f0613730a6c4c013b6ab5e0f5524db5df1b91498c03864e3d285795637086661f",
|
| 922 |
+
"answer_sha384": "940b3e897d5b8e167f089cc3904ccdfaa53c62f068ad95f7a73bbac2a02d4764bfdaa85eebfb5ae094881a1fb785f8cf",
|
| 923 |
+
"call_spec": {
|
| 924 |
+
"tool": "solve",
|
| 925 |
+
"model_id": "cdu_loop_moc",
|
| 926 |
+
"args": {
|
| 927 |
+
"solver": "cdu_loop_moc",
|
| 928 |
+
"parameters": {
|
| 929 |
+
"supply_pressure_pa": 445364.2,
|
| 930 |
+
"return_pressure_pa": 180000.0,
|
| 931 |
+
"initial_flow_m3_s": 0.02704846,
|
| 932 |
+
"pipe_length_m": 16.5,
|
| 933 |
+
"pipe_diameter_m": 0.072,
|
| 934 |
+
"valve_closure_s": 0.609079,
|
| 935 |
+
"coolant_temp_c": 36.66174888937644,
|
| 936 |
+
"entrained_air_fraction": 0.0008101,
|
| 937 |
+
"fouling_factor": 0.5117735979431096,
|
| 938 |
+
"pump_speed_rpm": 3454.9774976175,
|
| 939 |
+
"duration_s": 0.8
|
| 940 |
+
}
|
| 941 |
+
}
|
| 942 |
+
},
|
| 943 |
+
"extracted_seals": [
|
| 944 |
+
"368befb489f1316a1e00b3d78e8d7d2c8932ae551877de4be9dca4ccc25edb9df300f0a0f3f6195848db665d883518b3",
|
| 945 |
+
"7a039a017cf485e1972512df45d60d53966c4ec665e18efbe4da334c4421ce500d9e9f5837372c8d72be55b9c7e490a9"
|
| 946 |
+
],
|
| 947 |
+
"step_call_records": [],
|
| 948 |
+
"plugin_event": null,
|
| 949 |
+
"prev_sha384": "de4fe0cc688c4e5606109448b6ae7e82c054ba006a780fcb297a7e55c9b360979dcb44f32e238b4e9e980297dcfceef3",
|
| 950 |
+
"entry_sha384": "efd107e4084c0497989f4c055574cb1de09f7d1061e9a2a186c83eacfbd67fac51b9de92606d5bbfbacd65f379679553"
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"seq": 18,
|
| 954 |
+
"ts_unix": 1795226490.540086,
|
| 955 |
+
"task_id": "foundry-002",
|
| 956 |
+
"tool": "solve",
|
| 957 |
+
"category": "sim",
|
| 958 |
+
"discovery_used": 1,
|
| 959 |
+
"max_discovery_calls": 40,
|
| 960 |
+
"sim_used": 15,
|
| 961 |
+
"max_sim_calls": 24,
|
| 962 |
+
"budget_rejected": false,
|
| 963 |
+
"disabled_tool": false,
|
| 964 |
+
"is_error": false,
|
| 965 |
+
"args_sha384": "840ca016eeee576e58e92491be1d23370c13810458071362274464b905f04ad42d8affc200d2f81ea97d10d222170f0c",
|
| 966 |
+
"answer_sha384": "96bff7046e48e1ae5b8ea0fb1731435ba0cc98256c10e374b5740f4f49bc13fab915eb063de3fbafe18c68f81da163bc",
|
| 967 |
+
"call_spec": {
|
| 968 |
+
"tool": "solve",
|
| 969 |
+
"model_id": "cdu_loop_moc",
|
| 970 |
+
"args": {
|
| 971 |
+
"solver": "cdu_loop_moc",
|
| 972 |
+
"parameters": {
|
| 973 |
+
"supply_pressure_pa": 445364.2,
|
| 974 |
+
"return_pressure_pa": 180000.0,
|
| 975 |
+
"initial_flow_m3_s": 0.022352,
|
| 976 |
+
"pipe_length_m": 16.5,
|
| 977 |
+
"pipe_diameter_m": 0.072,
|
| 978 |
+
"valve_closure_s": 0.48726320000000006,
|
| 979 |
+
"coolant_temp_c": 28.501421233826296,
|
| 980 |
+
"entrained_air_fraction": 0.0008101,
|
| 981 |
+
"fouling_factor": 0.7617735979431095,
|
| 982 |
+
"pump_speed_rpm": 2984.861769,
|
| 983 |
+
"duration_s": 0.8
|
| 984 |
+
}
|
| 985 |
+
}
|
| 986 |
+
},
|
| 987 |
+
"extracted_seals": [
|
| 988 |
+
"e8f90bf88fedb4ae8278853721e6690e80d669833875df6e9d80a5bb57171d80512e399e5b658887ec6fd0c7317ccbbd",
|
| 989 |
+
"ac1674ffd0d228f8c9ce235790cc8c3812aaee53c075e7036e1159d0bfbfdcd349d9da8563c12c403e7d6aa999d6f10e"
|
| 990 |
+
],
|
| 991 |
+
"step_call_records": [],
|
| 992 |
+
"plugin_event": null,
|
| 993 |
+
"prev_sha384": "efd107e4084c0497989f4c055574cb1de09f7d1061e9a2a186c83eacfbd67fac51b9de92606d5bbfbacd65f379679553",
|
| 994 |
+
"entry_sha384": "4a5a33c540af00314f761a053d92dc1118590ad0e366790dfaa55c4f03af1f056c55ab80e8f14e77ecbc48481942b3c8"
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"seq": 19,
|
| 998 |
+
"ts_unix": 1795226490.541281,
|
| 999 |
+
"task_id": "foundry-002",
|
| 1000 |
+
"tool": "solve",
|
| 1001 |
+
"category": "sim",
|
| 1002 |
+
"discovery_used": 1,
|
| 1003 |
+
"max_discovery_calls": 40,
|
| 1004 |
+
"sim_used": 16,
|
| 1005 |
+
"max_sim_calls": 24,
|
| 1006 |
+
"budget_rejected": false,
|
| 1007 |
+
"disabled_tool": false,
|
| 1008 |
+
"is_error": false,
|
| 1009 |
+
"args_sha384": "e9102fc2b503ae7f879669bff4be5bc0882667bab62b931c7a8e2df000cd576877e9f07600dbc5327f83abec1bc59dba",
|
| 1010 |
+
"answer_sha384": "d982ecce8af2c01b6c26defcd63e284b92f9fda4845d45dc74ddfa4c016895b50137c19efbd0ab2c48a06b85df9dd7e8",
|
| 1011 |
+
"call_spec": {
|
| 1012 |
+
"tool": "solve",
|
| 1013 |
+
"model_id": "rack_power_pll",
|
| 1014 |
+
"args": {
|
| 1015 |
+
"solver": "rack_power_pll",
|
| 1016 |
+
"parameters": {
|
| 1017 |
+
"step_rack_load_pu": 0.421392296199952,
|
| 1018 |
+
"inverter_fraction": 0.31678,
|
| 1019 |
+
"pll_bandwidth_per_s": 18.70653,
|
| 1020 |
+
"governor_droop": 4.35,
|
| 1021 |
+
"bess_support_current_a": 3.293198,
|
| 1022 |
+
"bess_parallel_strings": 342,
|
| 1023 |
+
"bess_initial_soc": 0.5596877738360008,
|
| 1024 |
+
"bess_case_temp_c": -17.192,
|
| 1025 |
+
"rack_dc_current_a": 435.4679957974699,
|
| 1026 |
+
"parallel_feeder_legs": 20,
|
| 1027 |
+
"duration_s": 15.0
|
| 1028 |
+
}
|
| 1029 |
+
}
|
| 1030 |
+
},
|
| 1031 |
+
"extracted_seals": [
|
| 1032 |
+
"99036c2f70562e62022ade0e0ea30bf3e1e7d6b01e12a162acaea1a331cd23cb7fb702ba7dfc1382f34bb4451822c34a",
|
| 1033 |
+
"43c8d40c843dda69629d588fd9dfb4656c21340e4ddccdb6fed37a12209df56e3004c3bba05d281344a9f05d70f6f471"
|
| 1034 |
+
],
|
| 1035 |
+
"step_call_records": [],
|
| 1036 |
+
"plugin_event": null,
|
| 1037 |
+
"prev_sha384": "4a5a33c540af00314f761a053d92dc1118590ad0e366790dfaa55c4f03af1f056c55ab80e8f14e77ecbc48481942b3c8",
|
| 1038 |
+
"entry_sha384": "3e1bbdc87ba0ecdeb781d921c5babd0bdb84ec9cc52611a9136089f430469aa2cad111beddc3913a96b1474d6f39b265"
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"seq": 20,
|
| 1042 |
+
"ts_unix": 1795226490.612699,
|
| 1043 |
+
"task_id": "foundry-002",
|
| 1044 |
+
"tool": "solve",
|
| 1045 |
+
"category": "sim",
|
| 1046 |
+
"discovery_used": 1,
|
| 1047 |
+
"max_discovery_calls": 40,
|
| 1048 |
+
"sim_used": 17,
|
| 1049 |
+
"max_sim_calls": 24,
|
| 1050 |
+
"budget_rejected": false,
|
| 1051 |
+
"disabled_tool": false,
|
| 1052 |
+
"is_error": false,
|
| 1053 |
+
"args_sha384": "34a5124ab0b5fe6c2758ec5a81cde5f43b704f866c7449722b07092d3275b4a215397443b8e9eacaa318ac1c9dc8e6d1",
|
| 1054 |
+
"answer_sha384": "1008a026babfc13e38371d037a28ea77d3ac1d0130cb67339c111e4317926abed30c67c2c23412cd1bba8b79ea5cd96f",
|
| 1055 |
+
"call_spec": {
|
| 1056 |
+
"tool": "solve",
|
| 1057 |
+
"model_id": "die_coldplate_fe",
|
| 1058 |
+
"args": {
|
| 1059 |
+
"solver": "die_coldplate_fe",
|
| 1060 |
+
"parameters": {
|
| 1061 |
+
"base_compute_power_w": 16910.690101859975,
|
| 1062 |
+
"leakage_ref_power_w": 220.0,
|
| 1063 |
+
"coolant_mass_flow_kg_s": 0.4953,
|
| 1064 |
+
"coolant_inlet_temp_k": 303.7389847995498,
|
| 1065 |
+
"saturation_temp_k": 351.2815481082655,
|
| 1066 |
+
"fin_area_multiplier": 5.5,
|
| 1067 |
+
"tim_thickness_um": 52.32,
|
| 1068 |
+
"clamp_preload_mpa": 4.2,
|
| 1069 |
+
"fouling_factor": 0.46177359794310957,
|
| 1070 |
+
"duration_s": 12.0,
|
| 1071 |
+
"dt_s": 0.05,
|
| 1072 |
+
"initial_vapor_lock": false
|
| 1073 |
+
}
|
| 1074 |
+
}
|
| 1075 |
+
},
|
| 1076 |
+
"extracted_seals": [
|
| 1077 |
+
"388c98283e64360a4843bbab33c06a788176db90a569d22d2a2f1aa16f805b407b263496aa4ccd4eb55946fbae5f539a",
|
| 1078 |
+
"32e48fb4cdd7618d21ba10e9468c64d5cd457665c5aea74ba9ea3da5119f1e1776ad18305fd858316de6a2f0c781e65f"
|
| 1079 |
+
],
|
| 1080 |
+
"step_call_records": [],
|
| 1081 |
+
"plugin_event": null,
|
| 1082 |
+
"prev_sha384": "3e1bbdc87ba0ecdeb781d921c5babd0bdb84ec9cc52611a9136089f430469aa2cad111beddc3913a96b1474d6f39b265",
|
| 1083 |
+
"entry_sha384": "933384877955ca614a2ee698dd1a88f0ee5f0e270acdfa114c37b71c6c3e77985d2b7c5ab997e405bbae9964d42720eb"
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"seq": 21,
|
| 1087 |
+
"ts_unix": 1795226490.613713,
|
| 1088 |
+
"task_id": "foundry-002",
|
| 1089 |
+
"tool": "solve",
|
| 1090 |
+
"category": "sim",
|
| 1091 |
+
"discovery_used": 1,
|
| 1092 |
+
"max_discovery_calls": 40,
|
| 1093 |
+
"sim_used": 18,
|
| 1094 |
+
"max_sim_calls": 24,
|
| 1095 |
+
"budget_rejected": false,
|
| 1096 |
+
"disabled_tool": false,
|
| 1097 |
+
"is_error": false,
|
| 1098 |
+
"args_sha384": "562a82734829f62d7e771407069fc4a39ea191594a065b44a77e0a5f8282a034e51a142cccd661167d3608f685b562fa",
|
| 1099 |
+
"answer_sha384": "d4928f32c378145d0b5fc115364d77ef3fe2d2f2f29f239ab97cf24311bfaf3cec8c23b7d32e115fcd8dd4af5c1f1877",
|
| 1100 |
+
"call_spec": {
|
| 1101 |
+
"tool": "solve",
|
| 1102 |
+
"model_id": "die_coldplate_fe",
|
| 1103 |
+
"args": {
|
| 1104 |
+
"solver": "die_coldplate_fe",
|
| 1105 |
+
"parameters": {
|
| 1106 |
+
"base_compute_power_w": 15483.0,
|
| 1107 |
+
"leakage_ref_power_w": 220.0,
|
| 1108 |
+
"coolant_mass_flow_kg_s": 0.5860499666666666,
|
| 1109 |
+
"coolant_inlet_temp_k": 309.7852331617277,
|
| 1110 |
+
"saturation_temp_k": 351.2815481082655,
|
| 1111 |
+
"fin_area_multiplier": 5.5,
|
| 1112 |
+
"tim_thickness_um": 52.32,
|
| 1113 |
+
"clamp_preload_mpa": 4.2,
|
| 1114 |
+
"fouling_factor": 0.5117735979431096,
|
| 1115 |
+
"duration_s": 12.0,
|
| 1116 |
+
"dt_s": 0.05,
|
| 1117 |
+
"initial_vapor_lock": false
|
| 1118 |
+
}
|
| 1119 |
+
}
|
| 1120 |
+
},
|
| 1121 |
+
"extracted_seals": [
|
| 1122 |
+
"bb9ec13c5b0773809630e603c25dbd67a878154fb90b9e8899423b609a8236ee665e7e7189084a31ead3d61f84fca641",
|
| 1123 |
+
"3ac69a82bfca0adb7445e628fd564f24f7ed074d881f1e5a436d2ef138db61a7b468c2781f3633e39e312db1ee505fc9"
|
| 1124 |
+
],
|
| 1125 |
+
"step_call_records": [],
|
| 1126 |
+
"plugin_event": null,
|
| 1127 |
+
"prev_sha384": "933384877955ca614a2ee698dd1a88f0ee5f0e270acdfa114c37b71c6c3e77985d2b7c5ab997e405bbae9964d42720eb",
|
| 1128 |
+
"entry_sha384": "220208ae8e7097dd6c375f01fdfcac243efdb2a2efd145b575607ae2d47fff7b4102455e75231b21a2ec878591c3df78"
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"seq": 22,
|
| 1132 |
+
"ts_unix": 1795226490.685287,
|
| 1133 |
+
"task_id": "foundry-002",
|
| 1134 |
+
"tool": "solve",
|
| 1135 |
+
"category": "sim",
|
| 1136 |
+
"discovery_used": 1,
|
| 1137 |
+
"max_discovery_calls": 40,
|
| 1138 |
+
"sim_used": 19,
|
| 1139 |
+
"max_sim_calls": 24,
|
| 1140 |
+
"budget_rejected": false,
|
| 1141 |
+
"disabled_tool": false,
|
| 1142 |
+
"is_error": false,
|
| 1143 |
+
"args_sha384": "c30208b0c305f42b9645d2ec88447e232b1aee59ed763a65e6efa9a0c1e8aa1c56e4178e3d58fa7894b2c9df7ce258cd",
|
| 1144 |
+
"answer_sha384": "4cf3e39ad78bc5c0fc77a7beb6a15c9d354c36610eea2c3d127c346f3f13cc936258bf25d41ae033e7b845c3d376b35b",
|
| 1145 |
+
"call_spec": {
|
| 1146 |
+
"tool": "solve",
|
| 1147 |
+
"model_id": "chassis_mount_duffing",
|
| 1148 |
+
"args": {
|
| 1149 |
+
"solver": "chassis_mount_duffing",
|
| 1150 |
+
"parameters": {
|
| 1151 |
+
"natural_freq_hz": 25.279989,
|
| 1152 |
+
"damping_ratio": 0.23,
|
| 1153 |
+
"duffing_alpha": 16000000.0,
|
| 1154 |
+
"excitation_freq_hz": 49.74769615,
|
| 1155 |
+
"harmonic_accel_m_s2": 6.5,
|
| 1156 |
+
"impulse_shock_m_s2": 380.32255181463637,
|
| 1157 |
+
"active_kp": 1738.0,
|
| 1158 |
+
"active_kd": 140.0,
|
| 1159 |
+
"optical_delta_temp_c": 15.90114980157792,
|
| 1160 |
+
"duration_s": 0.6
|
| 1161 |
+
}
|
| 1162 |
+
}
|
| 1163 |
+
},
|
| 1164 |
+
"extracted_seals": [
|
| 1165 |
+
"d4795ce413ad1dc752611d7f910129d5c99a536c5fd9058c3918ba4c5dc0cafe84591f27d304338ae23b9f5d5fe59754",
|
| 1166 |
+
"52317bff2539c494037f47a1ad27544979f6675387074198b66f9c2add5440952b512ff3859bc7f7a0ba561fc08baf30"
|
| 1167 |
+
],
|
| 1168 |
+
"step_call_records": [],
|
| 1169 |
+
"plugin_event": null,
|
| 1170 |
+
"prev_sha384": "220208ae8e7097dd6c375f01fdfcac243efdb2a2efd145b575607ae2d47fff7b4102455e75231b21a2ec878591c3df78",
|
| 1171 |
+
"entry_sha384": "7fbf4b39b5270e03495f09f38f437514e79c9bb9757b6cc400ddc1808210a155b73ace1e089ebbcb762810a6e84ad45a"
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"seq": 23,
|
| 1175 |
+
"ts_unix": 1795226490.685894,
|
| 1176 |
+
"task_id": "foundry-002",
|
| 1177 |
+
"tool": "solve",
|
| 1178 |
+
"category": "sim",
|
| 1179 |
+
"discovery_used": 1,
|
| 1180 |
+
"max_discovery_calls": 40,
|
| 1181 |
+
"sim_used": 20,
|
| 1182 |
+
"max_sim_calls": 24,
|
| 1183 |
+
"budget_rejected": false,
|
| 1184 |
+
"disabled_tool": false,
|
| 1185 |
+
"is_error": false,
|
| 1186 |
+
"args_sha384": "b5037accea14857cf33904cdd10882e5780a64a40b440e7ca4c44176dba9c017e0721d0d7c33b349af89004c7e1ffa35",
|
| 1187 |
+
"answer_sha384": "67085c082635e584c506ac4165bc1e5e648b1eaafbd18cc4edf07551a35dc80dcc8959ae67dec8941bb4895cc65c7484",
|
| 1188 |
+
"call_spec": {
|
| 1189 |
+
"tool": "solve",
|
| 1190 |
+
"model_id": "chassis_mount_duffing",
|
| 1191 |
+
"args": {
|
| 1192 |
+
"solver": "chassis_mount_duffing",
|
| 1193 |
+
"parameters": {
|
| 1194 |
+
"natural_freq_hz": 25.279989,
|
| 1195 |
+
"damping_ratio": 0.23,
|
| 1196 |
+
"duffing_alpha": 16000000.0,
|
| 1197 |
+
"excitation_freq_hz": 49.74769615,
|
| 1198 |
+
"harmonic_accel_m_s2": 6.5,
|
| 1199 |
+
"impulse_shock_m_s2": 380.32255181463637,
|
| 1200 |
+
"active_kp": 2772.5,
|
| 1201 |
+
"active_kd": 140.0,
|
| 1202 |
+
"optical_delta_temp_c": 15.90114980157792,
|
| 1203 |
+
"duration_s": 0.6
|
| 1204 |
+
}
|
| 1205 |
+
}
|
| 1206 |
+
},
|
| 1207 |
+
"extracted_seals": [
|
| 1208 |
+
"b72b00f727dc1d9247dfb2a11f4e5ed68e0f8fde337f5eb81ef62b29da89b72a7691c7c16526035fe97dfd43b21b9fa0",
|
| 1209 |
+
"0bf0cb490823230b820ee785740114bc9a383bad69babe61edfa36066e32ebaa1c70272421ca60556786652aa34d0d99"
|
| 1210 |
+
],
|
| 1211 |
+
"step_call_records": [],
|
| 1212 |
+
"plugin_event": null,
|
| 1213 |
+
"prev_sha384": "7fbf4b39b5270e03495f09f38f437514e79c9bb9757b6cc400ddc1808210a155b73ace1e089ebbcb762810a6e84ad45a",
|
| 1214 |
+
"entry_sha384": "7ae8da6684ef08a8bcff630c208165f9830257de7ed9afb889f1dd5e300373abad4563911afc234803687f3e53ab17c2"
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"seq": 24,
|
| 1218 |
+
"ts_unix": 1795226490.686419,
|
| 1219 |
+
"task_id": "foundry-002",
|
| 1220 |
+
"tool": "solve",
|
| 1221 |
+
"category": "sim",
|
| 1222 |
+
"discovery_used": 1,
|
| 1223 |
+
"max_discovery_calls": 40,
|
| 1224 |
+
"sim_used": 21,
|
| 1225 |
+
"max_sim_calls": 24,
|
| 1226 |
+
"budget_rejected": false,
|
| 1227 |
+
"disabled_tool": false,
|
| 1228 |
+
"is_error": false,
|
| 1229 |
+
"args_sha384": "cae223593596c2f005088a4b4195a62715683598068b61caf801e4f14106148255cc079b99deb3995d2add2785f1fd64",
|
| 1230 |
+
"answer_sha384": "b5abfdb8b138eef1f5c79cad2c07c9afa2c40014ad2f2014abf67d4b411f634f4d8c09198215f720ab558786c486bd92",
|
| 1231 |
+
"call_spec": {
|
| 1232 |
+
"tool": "solve",
|
| 1233 |
+
"model_id": "chassis_mount_duffing",
|
| 1234 |
+
"args": {
|
| 1235 |
+
"solver": "chassis_mount_duffing",
|
| 1236 |
+
"parameters": {
|
| 1237 |
+
"natural_freq_hz": 25.279989,
|
| 1238 |
+
"damping_ratio": 0.23,
|
| 1239 |
+
"duffing_alpha": 16000000.0,
|
| 1240 |
+
"excitation_freq_hz": 49.74769615,
|
| 1241 |
+
"harmonic_accel_m_s2": 6.5,
|
| 1242 |
+
"impulse_shock_m_s2": 380.32255181463637,
|
| 1243 |
+
"active_kp": 8254.868941008936,
|
| 1244 |
+
"active_kd": 140.0,
|
| 1245 |
+
"optical_delta_temp_c": 15.90114980157792,
|
| 1246 |
+
"duration_s": 0.6
|
| 1247 |
+
}
|
| 1248 |
+
}
|
| 1249 |
+
},
|
| 1250 |
+
"extracted_seals": [
|
| 1251 |
+
"0aa15528241bf2307257efaf86f3aef3a89b5ea87ededd5769b619b7bb87168625d5ce4275d2fcb0e9e7379f490ae498",
|
| 1252 |
+
"57b932a48643a7b9a75ff628b872cf14e56d999dc20c324c4b59deab450c85d7915c20fb1ec8ef1836796e09ef7722a6"
|
| 1253 |
+
],
|
| 1254 |
+
"step_call_records": [],
|
| 1255 |
+
"plugin_event": null,
|
| 1256 |
+
"prev_sha384": "7ae8da6684ef08a8bcff630c208165f9830257de7ed9afb889f1dd5e300373abad4563911afc234803687f3e53ab17c2",
|
| 1257 |
+
"entry_sha384": "d8eaf1d65fd3da7e11ea87ac79cbc3b51fb2f87021dd35da876bf5bdb64186f71abd0979f0f1a28dacf0a0839ef17017"
|
| 1258 |
+
}
|
| 1259 |
+
]
|
| 1260 |
+
}
|
reports/environment_card_foundry_001.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Environment Card: `foundry-001` — Stateful 3-Probe Rack Commissioning & 8-Corner Co-Synthesis
|
| 2 |
+
|
| 3 |
+
- **Runtime split:** Agent calls `ztp_foundry_mcp` (4 component solvers only: `die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, `chassis_mount_duffing`); root `0700` `ztp_foundry_preview_verifier` executes stateful non-resetting `commission_probe` (max 3) and coupled 8-corner `grade`.
|
| 4 |
+
- **Non-resetting physics:** Every bench probe depletes BESS SOC, warms the 55 kJ/K standby loop, and accumulates mechanical wear on the exact unit graded across `C1`–`C8`.
|
| 5 |
+
- **Held-out blind red-team (`n=12`):** Oracle `12/12`; reference physics policy `10/12`; all 9 equation-free ML & black-box solver attackers `<= 1/12` (`0/12` on 36-solve equation-free component optimization, Polynomial Ridge, Decision Tree, Extra Trees, Random Forest; `1/12` on kNN, Ridge, RBF Kernel Ridge).
|
| 6 |
+
- **Breakwater Harbor `0.26` isolation:** `uid=1000` `network_mode: none` agent, `uid=0` `network_mode: none` daemon sidecar, separate `network_mode: none` verifier opening `submission.json` with `O_NOFOLLOW|O_NONBLOCK` (`S_ISREG`, `st_nlink==1`), parsing untrusted JSON in `uid=65534` (`RLIMIT_AS=128MB`, `RLIMIT_CPU=5s`), and verifying binary SHA-384 digests prior to execution.
|
reports/environment_card_foundry_002.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Environment Card: `foundry-002` — Live Fault Forensics & Safe Re-Trim of an In-Service Rack
|
| 2 |
+
|
| 3 |
+
- **Runtime split:** Installed 17-parameter rack hardware is locked; agent receives the commissioning service record, runs at most `2` non-resetting `service_probe` calls and `24` component `solve` calls, diagnoses the active fault class (5 fault classes + `none`) alongside service aging, and submits `fault_class` + `8` field trims + `5` controller parameters.
|
| 4 |
+
- **Pass criterion:** Exact fault class + `8/8` stress corners safe on the post-probe unit + `net_ppa_efficiency_w >= 0.93 * reference_ppa_ceiling_w`.
|
| 5 |
+
- **Held-out validation (`n=12`):** Oracle `12/12`; reference physics policy `12/12` (`22/24` on fresh 24-task draw); all 8 shortcut & black-box solver baselines `0/12` each (including true-class median re-trim `0/12` and 24-solve black-box search `0/12`); scripted cheats `16/16` rejected.
|
reports/frontier_calibration_summary.json
ADDED
|
@@ -0,0 +1,686 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"calibration_runs": [
|
| 3 |
+
{
|
| 4 |
+
"tag": "f_model_a_dev_k3",
|
| 5 |
+
"pack": "foundry_flagship",
|
| 6 |
+
"split": "dev",
|
| 7 |
+
"runner": "sterile_mcp_harness_a",
|
| 8 |
+
"models_reported": [
|
| 9 |
+
"Frontier model A"
|
| 10 |
+
],
|
| 11 |
+
"harness_note": "sterile --network none container pair",
|
| 12 |
+
"graded_unix": 1795411930.959706,
|
| 13 |
+
"total_attempts": 12,
|
| 14 |
+
"total_passes": 10,
|
| 15 |
+
"overall_pass_at_1": 0.8333,
|
| 16 |
+
"overall_pass_at_1_wilson_95": [
|
| 17 |
+
0.552,
|
| 18 |
+
0.953
|
| 19 |
+
],
|
| 20 |
+
"all_transcripts_clean": true,
|
| 21 |
+
"all_ledgers_verified": true,
|
| 22 |
+
"total_snoop_attempts": 0,
|
| 23 |
+
"overall_failure_reason_counts": {
|
| 24 |
+
"none": 10,
|
| 25 |
+
"physics_violation": 2
|
| 26 |
+
},
|
| 27 |
+
"tasks": {
|
| 28 |
+
"foundry-001": {
|
| 29 |
+
"n_cases": 2,
|
| 30 |
+
"n_attempts": 6,
|
| 31 |
+
"passes": 4,
|
| 32 |
+
"pass_at_1": 0.6667,
|
| 33 |
+
"pass_at_1_wilson_95": [
|
| 34 |
+
0.3,
|
| 35 |
+
0.9032
|
| 36 |
+
],
|
| 37 |
+
"mean_case_pass_at_k": 1.0,
|
| 38 |
+
"transcript_clean_count": 6,
|
| 39 |
+
"ledger_verified_count": 6,
|
| 40 |
+
"snoop_attempts_total": 0,
|
| 41 |
+
"schema_valid_count": 6,
|
| 42 |
+
"seals_verified_count": 6,
|
| 43 |
+
"failure_reason_counts": {
|
| 44 |
+
"none": 4,
|
| 45 |
+
"physics_violation": 2
|
| 46 |
+
},
|
| 47 |
+
"budget_rejected_total": 1,
|
| 48 |
+
"shaped_min": 0.5813,
|
| 49 |
+
"shaped_median": 1.0,
|
| 50 |
+
"shaped_mean": 0.9229,
|
| 51 |
+
"shaped_max": 1.0,
|
| 52 |
+
"mean_discovery_calls": 5.17,
|
| 53 |
+
"mean_sim_calls": 36
|
| 54 |
+
},
|
| 55 |
+
"foundry-002": {
|
| 56 |
+
"n_cases": 2,
|
| 57 |
+
"n_attempts": 6,
|
| 58 |
+
"passes": 6,
|
| 59 |
+
"pass_at_1": 1.0,
|
| 60 |
+
"pass_at_1_wilson_95": [
|
| 61 |
+
0.6097,
|
| 62 |
+
1.0
|
| 63 |
+
],
|
| 64 |
+
"mean_case_pass_at_k": 1.0,
|
| 65 |
+
"transcript_clean_count": 6,
|
| 66 |
+
"ledger_verified_count": 6,
|
| 67 |
+
"snoop_attempts_total": 0,
|
| 68 |
+
"schema_valid_count": 6,
|
| 69 |
+
"seals_verified_count": 6,
|
| 70 |
+
"failure_reason_counts": {
|
| 71 |
+
"none": 6
|
| 72 |
+
},
|
| 73 |
+
"budget_rejected_total": 1,
|
| 74 |
+
"shaped_min": 1.0,
|
| 75 |
+
"shaped_median": 1.0,
|
| 76 |
+
"shaped_mean": 1.0,
|
| 77 |
+
"shaped_max": 1.0,
|
| 78 |
+
"mean_discovery_calls": 5.17,
|
| 79 |
+
"mean_sim_calls": 23
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"tag": "f_model_a_eval_k3",
|
| 85 |
+
"pack": "foundry_flagship",
|
| 86 |
+
"split": "eval",
|
| 87 |
+
"runner": "sterile_mcp_harness_a",
|
| 88 |
+
"models_reported": [
|
| 89 |
+
"Frontier model A"
|
| 90 |
+
],
|
| 91 |
+
"harness_note": "sterile --network none container pair",
|
| 92 |
+
"graded_unix": 1795411932.340703,
|
| 93 |
+
"total_attempts": 8,
|
| 94 |
+
"total_passes": 5,
|
| 95 |
+
"overall_pass_at_1": 0.625,
|
| 96 |
+
"overall_pass_at_1_wilson_95": [
|
| 97 |
+
0.3057,
|
| 98 |
+
0.8632
|
| 99 |
+
],
|
| 100 |
+
"all_transcripts_clean": true,
|
| 101 |
+
"all_ledgers_verified": true,
|
| 102 |
+
"total_snoop_attempts": 0,
|
| 103 |
+
"overall_failure_reason_counts": {
|
| 104 |
+
"schema_error": 1,
|
| 105 |
+
"none": 5,
|
| 106 |
+
"physics_violation": 2
|
| 107 |
+
},
|
| 108 |
+
"tasks": {
|
| 109 |
+
"foundry-001": {
|
| 110 |
+
"n_cases": 4,
|
| 111 |
+
"n_attempts": 4,
|
| 112 |
+
"passes": 2,
|
| 113 |
+
"pass_at_1": 0.5,
|
| 114 |
+
"pass_at_1_wilson_95": [
|
| 115 |
+
0.15,
|
| 116 |
+
0.85
|
| 117 |
+
],
|
| 118 |
+
"mean_case_pass_at_k": 0.5,
|
| 119 |
+
"transcript_clean_count": 4,
|
| 120 |
+
"ledger_verified_count": 4,
|
| 121 |
+
"snoop_attempts_total": 0,
|
| 122 |
+
"schema_valid_count": 3,
|
| 123 |
+
"seals_verified_count": 3,
|
| 124 |
+
"failure_reason_counts": {
|
| 125 |
+
"schema_error": 1,
|
| 126 |
+
"none": 2,
|
| 127 |
+
"physics_violation": 1
|
| 128 |
+
},
|
| 129 |
+
"budget_rejected_total": 0,
|
| 130 |
+
"shaped_min": 0.0,
|
| 131 |
+
"shaped_median": 0.9873,
|
| 132 |
+
"shaped_mean": 0.7437,
|
| 133 |
+
"shaped_max": 1.0,
|
| 134 |
+
"mean_discovery_calls": 4.75,
|
| 135 |
+
"mean_sim_calls": 35.25
|
| 136 |
+
},
|
| 137 |
+
"foundry-002": {
|
| 138 |
+
"n_cases": 4,
|
| 139 |
+
"n_attempts": 4,
|
| 140 |
+
"passes": 3,
|
| 141 |
+
"pass_at_1": 0.75,
|
| 142 |
+
"pass_at_1_wilson_95": [
|
| 143 |
+
0.3006,
|
| 144 |
+
0.9544
|
| 145 |
+
],
|
| 146 |
+
"mean_case_pass_at_k": 0.75,
|
| 147 |
+
"transcript_clean_count": 4,
|
| 148 |
+
"ledger_verified_count": 4,
|
| 149 |
+
"snoop_attempts_total": 0,
|
| 150 |
+
"schema_valid_count": 4,
|
| 151 |
+
"seals_verified_count": 4,
|
| 152 |
+
"failure_reason_counts": {
|
| 153 |
+
"none": 3,
|
| 154 |
+
"physics_violation": 1
|
| 155 |
+
},
|
| 156 |
+
"budget_rejected_total": 1,
|
| 157 |
+
"shaped_min": 0.4437,
|
| 158 |
+
"shaped_median": 1.0,
|
| 159 |
+
"shaped_mean": 0.8609,
|
| 160 |
+
"shaped_max": 1.0,
|
| 161 |
+
"mean_discovery_calls": 5.25,
|
| 162 |
+
"mean_sim_calls": 22.5
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"tag": "f_model_b_dev_k1",
|
| 168 |
+
"pack": "foundry_flagship",
|
| 169 |
+
"split": "dev",
|
| 170 |
+
"runner": "sterile_mcp_harness_b",
|
| 171 |
+
"models_reported": [
|
| 172 |
+
"Frontier model B"
|
| 173 |
+
],
|
| 174 |
+
"harness_note": "sterile --network none container pair",
|
| 175 |
+
"graded_unix": 1795411935.0546901,
|
| 176 |
+
"total_attempts": 8,
|
| 177 |
+
"total_passes": 4,
|
| 178 |
+
"overall_pass_at_1": 0.5,
|
| 179 |
+
"overall_pass_at_1_wilson_95": [
|
| 180 |
+
0.2152,
|
| 181 |
+
0.7848
|
| 182 |
+
],
|
| 183 |
+
"all_transcripts_clean": true,
|
| 184 |
+
"all_ledgers_verified": true,
|
| 185 |
+
"total_snoop_attempts": 0,
|
| 186 |
+
"overall_failure_reason_counts": {
|
| 187 |
+
"none": 4,
|
| 188 |
+
"physics_violation": 4
|
| 189 |
+
},
|
| 190 |
+
"tasks": {
|
| 191 |
+
"foundry-001": {
|
| 192 |
+
"n_cases": 4,
|
| 193 |
+
"n_attempts": 4,
|
| 194 |
+
"passes": 2,
|
| 195 |
+
"pass_at_1": 0.5,
|
| 196 |
+
"pass_at_1_wilson_95": [
|
| 197 |
+
0.15,
|
| 198 |
+
0.85
|
| 199 |
+
],
|
| 200 |
+
"mean_case_pass_at_k": 0.5,
|
| 201 |
+
"transcript_clean_count": 4,
|
| 202 |
+
"ledger_verified_count": 4,
|
| 203 |
+
"snoop_attempts_total": 0,
|
| 204 |
+
"schema_valid_count": 4,
|
| 205 |
+
"seals_verified_count": 4,
|
| 206 |
+
"failure_reason_counts": {
|
| 207 |
+
"none": 2,
|
| 208 |
+
"physics_violation": 2
|
| 209 |
+
},
|
| 210 |
+
"budget_rejected_total": 0,
|
| 211 |
+
"shaped_min": 0.932,
|
| 212 |
+
"shaped_median": 0.9787,
|
| 213 |
+
"shaped_mean": 0.9724,
|
| 214 |
+
"shaped_max": 1.0,
|
| 215 |
+
"mean_discovery_calls": 4.5,
|
| 216 |
+
"mean_sim_calls": 36
|
| 217 |
+
},
|
| 218 |
+
"foundry-002": {
|
| 219 |
+
"n_cases": 4,
|
| 220 |
+
"n_attempts": 4,
|
| 221 |
+
"passes": 2,
|
| 222 |
+
"pass_at_1": 0.5,
|
| 223 |
+
"pass_at_1_wilson_95": [
|
| 224 |
+
0.15,
|
| 225 |
+
0.85
|
| 226 |
+
],
|
| 227 |
+
"mean_case_pass_at_k": 0.5,
|
| 228 |
+
"transcript_clean_count": 4,
|
| 229 |
+
"ledger_verified_count": 4,
|
| 230 |
+
"snoop_attempts_total": 0,
|
| 231 |
+
"schema_valid_count": 4,
|
| 232 |
+
"seals_verified_count": 4,
|
| 233 |
+
"failure_reason_counts": {
|
| 234 |
+
"none": 2,
|
| 235 |
+
"physics_violation": 2
|
| 236 |
+
},
|
| 237 |
+
"budget_rejected_total": 0,
|
| 238 |
+
"shaped_min": 0.9625,
|
| 239 |
+
"shaped_median": 0.989,
|
| 240 |
+
"shaped_mean": 0.9851,
|
| 241 |
+
"shaped_max": 1.0,
|
| 242 |
+
"mean_discovery_calls": 5.25,
|
| 243 |
+
"mean_sim_calls": 24
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"tag": "f_model_b_eval_k1",
|
| 249 |
+
"pack": "foundry_flagship",
|
| 250 |
+
"split": "eval",
|
| 251 |
+
"runner": "sterile_mcp_harness_b",
|
| 252 |
+
"models_reported": [
|
| 253 |
+
"Frontier model B"
|
| 254 |
+
],
|
| 255 |
+
"harness_note": "sterile --network none container pair",
|
| 256 |
+
"graded_unix": 1795411935.879586,
|
| 257 |
+
"total_attempts": 4,
|
| 258 |
+
"total_passes": 3,
|
| 259 |
+
"overall_pass_at_1": 0.75,
|
| 260 |
+
"overall_pass_at_1_wilson_95": [
|
| 261 |
+
0.3006,
|
| 262 |
+
0.9544
|
| 263 |
+
],
|
| 264 |
+
"all_transcripts_clean": true,
|
| 265 |
+
"all_ledgers_verified": true,
|
| 266 |
+
"total_snoop_attempts": 0,
|
| 267 |
+
"overall_failure_reason_counts": {
|
| 268 |
+
"none": 3,
|
| 269 |
+
"physics_violation": 1
|
| 270 |
+
},
|
| 271 |
+
"tasks": {
|
| 272 |
+
"foundry-001": {
|
| 273 |
+
"n_cases": 2,
|
| 274 |
+
"n_attempts": 2,
|
| 275 |
+
"passes": 2,
|
| 276 |
+
"pass_at_1": 1.0,
|
| 277 |
+
"pass_at_1_wilson_95": [
|
| 278 |
+
0.3424,
|
| 279 |
+
1.0
|
| 280 |
+
],
|
| 281 |
+
"mean_case_pass_at_k": 1.0,
|
| 282 |
+
"transcript_clean_count": 2,
|
| 283 |
+
"ledger_verified_count": 2,
|
| 284 |
+
"snoop_attempts_total": 0,
|
| 285 |
+
"schema_valid_count": 2,
|
| 286 |
+
"seals_verified_count": 2,
|
| 287 |
+
"failure_reason_counts": {
|
| 288 |
+
"none": 2
|
| 289 |
+
},
|
| 290 |
+
"budget_rejected_total": 0,
|
| 291 |
+
"shaped_min": 1.0,
|
| 292 |
+
"shaped_median": 1.0,
|
| 293 |
+
"shaped_mean": 1.0,
|
| 294 |
+
"shaped_max": 1.0,
|
| 295 |
+
"mean_discovery_calls": 4.5,
|
| 296 |
+
"mean_sim_calls": 36
|
| 297 |
+
},
|
| 298 |
+
"foundry-002": {
|
| 299 |
+
"n_cases": 2,
|
| 300 |
+
"n_attempts": 2,
|
| 301 |
+
"passes": 1,
|
| 302 |
+
"pass_at_1": 0.5,
|
| 303 |
+
"pass_at_1_wilson_95": [
|
| 304 |
+
0.0945,
|
| 305 |
+
0.9055
|
| 306 |
+
],
|
| 307 |
+
"mean_case_pass_at_k": 0.5,
|
| 308 |
+
"transcript_clean_count": 2,
|
| 309 |
+
"ledger_verified_count": 2,
|
| 310 |
+
"snoop_attempts_total": 0,
|
| 311 |
+
"schema_valid_count": 2,
|
| 312 |
+
"seals_verified_count": 2,
|
| 313 |
+
"failure_reason_counts": {
|
| 314 |
+
"none": 1,
|
| 315 |
+
"physics_violation": 1
|
| 316 |
+
},
|
| 317 |
+
"budget_rejected_total": 0,
|
| 318 |
+
"shaped_min": 0.9736,
|
| 319 |
+
"shaped_median": 0.9868,
|
| 320 |
+
"shaped_mean": 0.9868,
|
| 321 |
+
"shaped_max": 1.0,
|
| 322 |
+
"mean_discovery_calls": 5,
|
| 323 |
+
"mean_sim_calls": 24
|
| 324 |
+
}
|
| 325 |
+
}
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"tag": "f_model_c_dev_k3",
|
| 329 |
+
"pack": "foundry_flagship",
|
| 330 |
+
"split": "dev",
|
| 331 |
+
"runner": "sterile_mcp_harness_c",
|
| 332 |
+
"models_reported": [
|
| 333 |
+
"Frontier model C"
|
| 334 |
+
],
|
| 335 |
+
"harness_note": "sterile --network none container pair",
|
| 336 |
+
"graded_unix": 1795411932.818808,
|
| 337 |
+
"total_attempts": 2,
|
| 338 |
+
"total_passes": 2,
|
| 339 |
+
"overall_pass_at_1": 1.0,
|
| 340 |
+
"overall_pass_at_1_wilson_95": [
|
| 341 |
+
0.3424,
|
| 342 |
+
1.0
|
| 343 |
+
],
|
| 344 |
+
"all_transcripts_clean": true,
|
| 345 |
+
"all_ledgers_verified": true,
|
| 346 |
+
"total_snoop_attempts": 0,
|
| 347 |
+
"overall_failure_reason_counts": {
|
| 348 |
+
"none": 2
|
| 349 |
+
},
|
| 350 |
+
"tasks": {
|
| 351 |
+
"foundry-001": {
|
| 352 |
+
"n_cases": 1,
|
| 353 |
+
"n_attempts": 1,
|
| 354 |
+
"passes": 1,
|
| 355 |
+
"pass_at_1": 1.0,
|
| 356 |
+
"pass_at_1_wilson_95": [
|
| 357 |
+
0.2065,
|
| 358 |
+
1.0
|
| 359 |
+
],
|
| 360 |
+
"mean_case_pass_at_k": 1.0,
|
| 361 |
+
"transcript_clean_count": 1,
|
| 362 |
+
"ledger_verified_count": 1,
|
| 363 |
+
"snoop_attempts_total": 0,
|
| 364 |
+
"schema_valid_count": 1,
|
| 365 |
+
"seals_verified_count": 1,
|
| 366 |
+
"failure_reason_counts": {
|
| 367 |
+
"none": 1
|
| 368 |
+
},
|
| 369 |
+
"budget_rejected_total": 0,
|
| 370 |
+
"shaped_min": 1.0,
|
| 371 |
+
"shaped_median": 1.0,
|
| 372 |
+
"shaped_mean": 1.0,
|
| 373 |
+
"shaped_max": 1.0,
|
| 374 |
+
"mean_discovery_calls": 8,
|
| 375 |
+
"mean_sim_calls": 36
|
| 376 |
+
},
|
| 377 |
+
"foundry-002": {
|
| 378 |
+
"n_cases": 1,
|
| 379 |
+
"n_attempts": 1,
|
| 380 |
+
"passes": 1,
|
| 381 |
+
"pass_at_1": 1.0,
|
| 382 |
+
"pass_at_1_wilson_95": [
|
| 383 |
+
0.2065,
|
| 384 |
+
1.0
|
| 385 |
+
],
|
| 386 |
+
"mean_case_pass_at_k": 1.0,
|
| 387 |
+
"transcript_clean_count": 1,
|
| 388 |
+
"ledger_verified_count": 1,
|
| 389 |
+
"snoop_attempts_total": 0,
|
| 390 |
+
"schema_valid_count": 1,
|
| 391 |
+
"seals_verified_count": 1,
|
| 392 |
+
"failure_reason_counts": {
|
| 393 |
+
"none": 1
|
| 394 |
+
},
|
| 395 |
+
"budget_rejected_total": 0,
|
| 396 |
+
"shaped_min": 1.0,
|
| 397 |
+
"shaped_median": 1.0,
|
| 398 |
+
"shaped_mean": 1.0,
|
| 399 |
+
"shaped_max": 1.0,
|
| 400 |
+
"mean_discovery_calls": 12,
|
| 401 |
+
"mean_sim_calls": 24
|
| 402 |
+
}
|
| 403 |
+
}
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"tag": "f_model_c_eval_k3",
|
| 407 |
+
"pack": "foundry_flagship",
|
| 408 |
+
"split": "eval",
|
| 409 |
+
"runner": "sterile_mcp_harness_c",
|
| 410 |
+
"models_reported": [
|
| 411 |
+
"Frontier model C"
|
| 412 |
+
],
|
| 413 |
+
"harness_note": "sterile --network none container pair",
|
| 414 |
+
"graded_unix": 1795411933.621693,
|
| 415 |
+
"total_attempts": 4,
|
| 416 |
+
"total_passes": 4,
|
| 417 |
+
"overall_pass_at_1": 1.0,
|
| 418 |
+
"overall_pass_at_1_wilson_95": [
|
| 419 |
+
0.5101,
|
| 420 |
+
1.0
|
| 421 |
+
],
|
| 422 |
+
"all_transcripts_clean": true,
|
| 423 |
+
"all_ledgers_verified": true,
|
| 424 |
+
"total_snoop_attempts": 0,
|
| 425 |
+
"overall_failure_reason_counts": {
|
| 426 |
+
"none": 4
|
| 427 |
+
},
|
| 428 |
+
"tasks": {
|
| 429 |
+
"foundry-001": {
|
| 430 |
+
"n_cases": 2,
|
| 431 |
+
"n_attempts": 2,
|
| 432 |
+
"passes": 2,
|
| 433 |
+
"pass_at_1": 1.0,
|
| 434 |
+
"pass_at_1_wilson_95": [
|
| 435 |
+
0.3424,
|
| 436 |
+
1.0
|
| 437 |
+
],
|
| 438 |
+
"mean_case_pass_at_k": 1.0,
|
| 439 |
+
"transcript_clean_count": 2,
|
| 440 |
+
"ledger_verified_count": 2,
|
| 441 |
+
"snoop_attempts_total": 0,
|
| 442 |
+
"schema_valid_count": 2,
|
| 443 |
+
"seals_verified_count": 2,
|
| 444 |
+
"failure_reason_counts": {
|
| 445 |
+
"none": 2
|
| 446 |
+
},
|
| 447 |
+
"budget_rejected_total": 0,
|
| 448 |
+
"shaped_min": 1.0,
|
| 449 |
+
"shaped_median": 1.0,
|
| 450 |
+
"shaped_mean": 1.0,
|
| 451 |
+
"shaped_max": 1.0,
|
| 452 |
+
"mean_discovery_calls": 6,
|
| 453 |
+
"mean_sim_calls": 36
|
| 454 |
+
},
|
| 455 |
+
"foundry-002": {
|
| 456 |
+
"n_cases": 2,
|
| 457 |
+
"n_attempts": 2,
|
| 458 |
+
"passes": 2,
|
| 459 |
+
"pass_at_1": 1.0,
|
| 460 |
+
"pass_at_1_wilson_95": [
|
| 461 |
+
0.3424,
|
| 462 |
+
1.0
|
| 463 |
+
],
|
| 464 |
+
"mean_case_pass_at_k": 1.0,
|
| 465 |
+
"transcript_clean_count": 2,
|
| 466 |
+
"ledger_verified_count": 2,
|
| 467 |
+
"snoop_attempts_total": 0,
|
| 468 |
+
"schema_valid_count": 2,
|
| 469 |
+
"seals_verified_count": 2,
|
| 470 |
+
"failure_reason_counts": {
|
| 471 |
+
"none": 2
|
| 472 |
+
},
|
| 473 |
+
"budget_rejected_total": 0,
|
| 474 |
+
"shaped_min": 1.0,
|
| 475 |
+
"shaped_median": 1.0,
|
| 476 |
+
"shaped_mean": 1.0,
|
| 477 |
+
"shaped_max": 1.0,
|
| 478 |
+
"mean_discovery_calls": 7,
|
| 479 |
+
"mean_sim_calls": 24
|
| 480 |
+
}
|
| 481 |
+
}
|
| 482 |
+
}
|
| 483 |
+
],
|
| 484 |
+
"dev00_rollout_autopsies": [
|
| 485 |
+
{
|
| 486 |
+
"runner": "sterile_mcp_harness_a",
|
| 487 |
+
"model": "Frontier model A",
|
| 488 |
+
"case_id": "foundry-001-dev-00",
|
| 489 |
+
"attempt_idx": 1,
|
| 490 |
+
"binary_reward": 1,
|
| 491 |
+
"shaped_score": 1.0,
|
| 492 |
+
"seals_verified": true,
|
| 493 |
+
"suite_seal_sha384": "a99900d3a9500e63b938214f27f589c18baee53170e890e2a6ef27e3273929ade52a01c2d247c500d53b25732b2c5f33",
|
| 494 |
+
"transcript_sha384": "9ae6c705383d4061a561d85ee684c5991552fe38f980e48049d2dacd7cce9ee344750cb710409cd28a5212e40979cbcd",
|
| 495 |
+
"transcript_clean": true,
|
| 496 |
+
"ledger_verified": true,
|
| 497 |
+
"snoop_attempts": 0,
|
| 498 |
+
"discovery_calls_used": 6,
|
| 499 |
+
"sim_calls_used": 36,
|
| 500 |
+
"probes_used": 2,
|
| 501 |
+
"corners_passed": 8,
|
| 502 |
+
"failure_reason": "none",
|
| 503 |
+
"autopsy": "PASS [SHA-384 suite_seal=a99900d3a9500e63...]: 8/8 stress corners safe on post-commissioning unit (probes_used=2, carried_soc=0.8322, warmup=0.25 C, wear=0.0040); net_ppa=12461.3 W / 10872.1 W (100.00% >= 92.00%)."
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"runner": "sterile_mcp_harness_a",
|
| 507 |
+
"model": "Frontier model A",
|
| 508 |
+
"case_id": "foundry-001-dev-00",
|
| 509 |
+
"attempt_idx": 2,
|
| 510 |
+
"binary_reward": 1,
|
| 511 |
+
"shaped_score": 1.0,
|
| 512 |
+
"seals_verified": true,
|
| 513 |
+
"suite_seal_sha384": "135d8189d5eae69dcbe1272d009ee2cbda1e55a971b8a7c2a859cfbdd3503664e36b63d00aac37210b4f1aea181988d6",
|
| 514 |
+
"transcript_sha384": "cec5db8a109c2b023460e53a87f662abf9c6f843054f93f6ea93df9ba71d840501795217b161f5d92d01651adfad8c52",
|
| 515 |
+
"transcript_clean": true,
|
| 516 |
+
"ledger_verified": true,
|
| 517 |
+
"snoop_attempts": 0,
|
| 518 |
+
"discovery_calls_used": 5,
|
| 519 |
+
"sim_calls_used": 36,
|
| 520 |
+
"probes_used": 2,
|
| 521 |
+
"corners_passed": 8,
|
| 522 |
+
"failure_reason": "none",
|
| 523 |
+
"autopsy": "PASS [SHA-384 suite_seal=135d8189d5eae69d...]: 8/8 stress corners safe on post-commissioning unit (probes_used=2, carried_soc=0.8328, warmup=0.24 C, wear=0.0040); net_ppa=12150.0 W / 10872.1 W (100.00% >= 92.00%)."
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"runner": "sterile_mcp_harness_a",
|
| 527 |
+
"model": "Frontier model A",
|
| 528 |
+
"case_id": "foundry-001-dev-00",
|
| 529 |
+
"attempt_idx": 3,
|
| 530 |
+
"binary_reward": 0,
|
| 531 |
+
"shaped_score": 0.956188,
|
| 532 |
+
"seals_verified": true,
|
| 533 |
+
"suite_seal_sha384": "65a8497545466bca5d0b90957e496c6c0bff2b1c13135103fd2b910479e337cf7548f443275e72f19435e5944d0df1a1",
|
| 534 |
+
"transcript_sha384": "7c032f6f172ab8195b438f06b8ec4f8e5a7da209b190f0989b18567cc63fd1f605a00b19cbe46a92c832ae4c58f3c338",
|
| 535 |
+
"transcript_clean": true,
|
| 536 |
+
"ledger_verified": true,
|
| 537 |
+
"snoop_attempts": 0,
|
| 538 |
+
"discovery_calls_used": 5,
|
| 539 |
+
"sim_calls_used": 36,
|
| 540 |
+
"probes_used": 2,
|
| 541 |
+
"corners_passed": 8,
|
| 542 |
+
"failure_reason": "physics_violation",
|
| 543 |
+
"autopsy": "PHYSICS_VIOLATION [SHA-384 suite_seal=65a8497545466bca...]: All 8/8 corners safe, but net_ppa=9284.4 W achieved 85.40% < 92.00% of specimen ceiling (10872.1 W)."
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"runner": "sterile_mcp_harness_a",
|
| 547 |
+
"model": "Frontier model A",
|
| 548 |
+
"case_id": "foundry-002-dev-00",
|
| 549 |
+
"attempt_idx": 1,
|
| 550 |
+
"binary_reward": 1,
|
| 551 |
+
"shaped_score": 1.0,
|
| 552 |
+
"seals_verified": true,
|
| 553 |
+
"suite_seal_sha384": "c1ae231b22d3651f4a653cc93790003cff8fa97a9d99003b9e56aecfcb7123065add51f81e74356844eb7913625bc311",
|
| 554 |
+
"transcript_sha384": "347a9f84d80400601f2312ad2a9a842d72959aca05b8884d9e7b1c88967fa17b40c27a3071538551565b6c3cb0f9e1ea",
|
| 555 |
+
"transcript_clean": true,
|
| 556 |
+
"ledger_verified": true,
|
| 557 |
+
"snoop_attempts": 0,
|
| 558 |
+
"discovery_calls_used": 5,
|
| 559 |
+
"sim_calls_used": 21,
|
| 560 |
+
"probes_used": 1,
|
| 561 |
+
"corners_passed": 8,
|
| 562 |
+
"failure_reason": "none",
|
| 563 |
+
"autopsy": "PASS [suite hash c1ae231b22d3651f...]: fault class correct; 8/8 corners safe on the unit as serviced (probes_used=1, carried_soc=0.5594, warmup=2.61 C, wear=0.0791); net_ppa=10295.0 W / 10219.7 W (100.74% >= 93.00%)."
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"runner": "sterile_mcp_harness_a",
|
| 567 |
+
"model": "Frontier model A",
|
| 568 |
+
"case_id": "foundry-002-dev-00",
|
| 569 |
+
"attempt_idx": 2,
|
| 570 |
+
"binary_reward": 1,
|
| 571 |
+
"shaped_score": 1.0,
|
| 572 |
+
"seals_verified": true,
|
| 573 |
+
"suite_seal_sha384": "ae17b837feeca523250e10726371e856d23a62208dfed841c52d99c7e9b341dee6805fedeec632a3101e388c6de5172f",
|
| 574 |
+
"transcript_sha384": "f391b9161fb57f964325bd52f703dc8dfcc39729be2194890aa198551eecc7f6cf9dd3a6af2f1f34dc8c143e4dd3995b",
|
| 575 |
+
"transcript_clean": true,
|
| 576 |
+
"ledger_verified": true,
|
| 577 |
+
"snoop_attempts": 0,
|
| 578 |
+
"discovery_calls_used": 5,
|
| 579 |
+
"sim_calls_used": 23,
|
| 580 |
+
"probes_used": 1,
|
| 581 |
+
"corners_passed": 8,
|
| 582 |
+
"failure_reason": "none",
|
| 583 |
+
"autopsy": "PASS [suite hash ae17b837feeca523...]: fault class correct; 8/8 corners safe on the unit as serviced (probes_used=1, carried_soc=0.5594, warmup=2.55 C, wear=0.0791); net_ppa=11047.3 W / 10219.7 W (108.10% >= 93.00%)."
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"runner": "sterile_mcp_harness_a",
|
| 587 |
+
"model": "Frontier model A",
|
| 588 |
+
"case_id": "foundry-002-dev-00",
|
| 589 |
+
"attempt_idx": 3,
|
| 590 |
+
"binary_reward": 1,
|
| 591 |
+
"shaped_score": 1.0,
|
| 592 |
+
"seals_verified": true,
|
| 593 |
+
"suite_seal_sha384": "3ba376b32e64b1ce97cc6057501215445d4c50632fe0483b10b78082ac709db70016b93cdb27eaeda536a4ed4a53416d",
|
| 594 |
+
"transcript_sha384": "0c5a88759128495b06c6251d8eb8ddd7c82ca0a2a069e61993b671cdbff7bf3680ab25956d4d1142ba5e5806d56d37ec",
|
| 595 |
+
"transcript_clean": true,
|
| 596 |
+
"ledger_verified": true,
|
| 597 |
+
"snoop_attempts": 0,
|
| 598 |
+
"discovery_calls_used": 5,
|
| 599 |
+
"sim_calls_used": 24,
|
| 600 |
+
"probes_used": 1,
|
| 601 |
+
"corners_passed": 8,
|
| 602 |
+
"failure_reason": "none",
|
| 603 |
+
"autopsy": "PASS [suite hash 3ba376b32e64b1ce...]: fault class correct; 8/8 corners safe on the unit as serviced (probes_used=1, carried_soc=0.5596, warmup=2.55 C, wear=0.0791); net_ppa=11111.4 W / 10219.7 W (108.73% >= 93.00%)."
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"runner": "sterile_mcp_harness_b",
|
| 607 |
+
"model": "Frontier model B",
|
| 608 |
+
"case_id": "foundry-002-dev-00",
|
| 609 |
+
"attempt_idx": 1,
|
| 610 |
+
"binary_reward": 1,
|
| 611 |
+
"shaped_score": 1.0,
|
| 612 |
+
"seals_verified": true,
|
| 613 |
+
"suite_seal_sha384": "3e15ec1abf1c1899becfbf3cb3c021e4fd620ccdf7fdc1097ec8bc74dc2a7a1ac4153021e3c935334e4569f77e1729fe",
|
| 614 |
+
"transcript_sha384": "0fa646211a54c43a30fe0c34b9a71a1f544ee581ca4c1e59bf252506519b84caa1cad60539d9fadee1044d7f5734a826",
|
| 615 |
+
"transcript_clean": true,
|
| 616 |
+
"ledger_verified": true,
|
| 617 |
+
"snoop_attempts": 0,
|
| 618 |
+
"discovery_calls_used": 6,
|
| 619 |
+
"sim_calls_used": 24,
|
| 620 |
+
"probes_used": 1,
|
| 621 |
+
"corners_passed": 8,
|
| 622 |
+
"failure_reason": "none",
|
| 623 |
+
"autopsy": "PASS [suite hash 3e15ec1abf1c1899...]: fault class correct; 8/8 corners safe on the unit as serviced (probes_used=1, carried_soc=0.5597, warmup=2.46 C, wear=0.0791); net_ppa=10355.4 W / 10219.7 W (101.33% >= 93.00%)."
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"runner": "sterile_mcp_harness_b",
|
| 627 |
+
"model": "Frontier model B",
|
| 628 |
+
"case_id": "foundry-001-dev-00",
|
| 629 |
+
"attempt_idx": 1,
|
| 630 |
+
"binary_reward": 1,
|
| 631 |
+
"shaped_score": 1.0,
|
| 632 |
+
"seals_verified": true,
|
| 633 |
+
"suite_seal_sha384": "6132a3d24aa90434687481660a7656eef0dc56b49c7cb96fc21ee595d722abd876c90ab3a5b254741f29579bc036714b",
|
| 634 |
+
"transcript_sha384": "2f36ee881f6b925bd684acbf363ec268c3fcb5069f958c371e04a3cf29b1e06d6bb034bb70aae0a0518ef3c69fccdf81",
|
| 635 |
+
"transcript_clean": true,
|
| 636 |
+
"ledger_verified": true,
|
| 637 |
+
"snoop_attempts": 0,
|
| 638 |
+
"discovery_calls_used": 5,
|
| 639 |
+
"sim_calls_used": 36,
|
| 640 |
+
"probes_used": 3,
|
| 641 |
+
"corners_passed": 8,
|
| 642 |
+
"failure_reason": "none",
|
| 643 |
+
"autopsy": "PASS [SHA-384 suite_seal=6132a3d24aa90434...]: 8/8 stress corners safe on post-commissioning unit (probes_used=3, carried_soc=0.8319, warmup=0.91 C, wear=0.0060); net_ppa=10396.6 W / 10872.1 W (95.63% >= 92.00%)."
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"runner": "sterile_mcp_harness_c",
|
| 647 |
+
"model": "Frontier model C",
|
| 648 |
+
"case_id": "foundry-001-dev-00",
|
| 649 |
+
"attempt_idx": 1,
|
| 650 |
+
"binary_reward": 1,
|
| 651 |
+
"shaped_score": 1.0,
|
| 652 |
+
"seals_verified": true,
|
| 653 |
+
"suite_seal_sha384": "771fc2541bd4e694a0d50512830c4a7d7b9ad47084dea2ca95058bb5d051facc67e401e623a9afd1c2e620bec8c821d0",
|
| 654 |
+
"transcript_sha384": "356c94047ad1bca11441c09cb654f6a0c3a968c4f2ab7a27c66daa3bec83e8ed2dd49798247e33ebea1146d3cd5a14dc",
|
| 655 |
+
"transcript_clean": true,
|
| 656 |
+
"ledger_verified": true,
|
| 657 |
+
"snoop_attempts": 0,
|
| 658 |
+
"discovery_calls_used": 8,
|
| 659 |
+
"sim_calls_used": 36,
|
| 660 |
+
"probes_used": 2,
|
| 661 |
+
"corners_passed": 8,
|
| 662 |
+
"failure_reason": "none",
|
| 663 |
+
"autopsy": "PASS [SHA-384 suite_seal=771fc2541bd4e694...]: 8/8 stress corners safe on post-commissioning unit (probes_used=2, carried_soc=0.8327, warmup=0.02 C, wear=0.0040); net_ppa=13448.7 W / 10872.1 W (100.00% >= 92.00%)."
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"runner": "sterile_mcp_harness_c",
|
| 667 |
+
"model": "Frontier model C",
|
| 668 |
+
"case_id": "foundry-002-dev-00",
|
| 669 |
+
"attempt_idx": 1,
|
| 670 |
+
"binary_reward": 1,
|
| 671 |
+
"shaped_score": 1.0,
|
| 672 |
+
"seals_verified": true,
|
| 673 |
+
"suite_seal_sha384": "11a0ff76fdae4d2495787933366bc45bf99ce7a8a10a993659549df30cf43fcd171a2f8b7049e1f482b354b9b95324e1",
|
| 674 |
+
"transcript_sha384": "376897f01ded092b18cfd64e8d5b567f23b7487edccaa222d953cb5ab374805cf9ff31c252356fc23d05f50bc5e4936a",
|
| 675 |
+
"transcript_clean": true,
|
| 676 |
+
"ledger_verified": true,
|
| 677 |
+
"snoop_attempts": 0,
|
| 678 |
+
"discovery_calls_used": 12,
|
| 679 |
+
"sim_calls_used": 24,
|
| 680 |
+
"probes_used": 1,
|
| 681 |
+
"corners_passed": 8,
|
| 682 |
+
"failure_reason": "none",
|
| 683 |
+
"autopsy": "PASS [suite hash 11a0ff76fdae4d24...]: fault class correct; 8/8 corners safe on the unit as serviced (probes_used=1, carried_soc=0.5597, warmup=2.39 C, wear=0.0791); net_ppa=11620.7 W / 10219.7 W (113.71% >= 93.00%)."
|
| 684 |
+
}
|
| 685 |
+
]
|
| 686 |
+
}
|
reports/validation_and_redteam_gates.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"foundry-001": {
|
| 3 |
+
"held_out_eval_n": 12,
|
| 4 |
+
"oracle_passes": "12/12",
|
| 5 |
+
"reference_policy_passes": "10/12",
|
| 6 |
+
"blind_redteam_9_attackers": {
|
| 7 |
+
"standardized_knn": "1/12 (0 test-time solves)",
|
| 8 |
+
"linear_ridge": "1/12 (0 test-time solves)",
|
| 9 |
+
"polynomial_ridge": "0/12 (0 test-time solves)",
|
| 10 |
+
"rbf_kernel_ridge": "1/12 (0 test-time solves)",
|
| 11 |
+
"decision_tree": "0/12 (0 test-time solves)",
|
| 12 |
+
"extra_trees": "0/12 (0 test-time solves)",
|
| 13 |
+
"random_forest": "0/12 (0 test-time solves)",
|
| 14 |
+
"equation_free_component_optimizer": "0/12 (36 test-time solves)",
|
| 15 |
+
"warm_started_hybrid_search": "0/12 (36 test-time solves)"
|
| 16 |
+
},
|
| 17 |
+
"scripted_cheats": "11/11 rejected"
|
| 18 |
+
},
|
| 19 |
+
"foundry-002": {
|
| 20 |
+
"held_out_eval_n": 12,
|
| 21 |
+
"oracle_passes": "12/12",
|
| 22 |
+
"reference_policy_passes": "12/12 (22/24 on fresh draw)",
|
| 23 |
+
"shortcut_and_blackbox_baselines": {
|
| 24 |
+
"incumbent_no_op": "0/12",
|
| 25 |
+
"best_fixed_retrim_given_true_class": "0/12",
|
| 26 |
+
"ignored_probe": "0/12",
|
| 27 |
+
"train64_1nn": "0/12",
|
| 28 |
+
"train64_5nn": "0/12",
|
| 29 |
+
"train64_ridge": "0/12",
|
| 30 |
+
"true_diagnosis_plus_class_median_retrim": "0/12",
|
| 31 |
+
"equation_free_24_solve_component_search": "0/12"
|
| 32 |
+
},
|
| 33 |
+
"scripted_cheats": "16/16 rejected"
|
| 34 |
+
},
|
| 35 |
+
"foundry-003": {
|
| 36 |
+
"held_out_eval_n": 12,
|
| 37 |
+
"oracle_passes": "12/12",
|
| 38 |
+
"reference_policy_passes": "12/12 (24/24 on fresh draw; 61/64 8-fold CV)",
|
| 39 |
+
"shortcut_and_blackbox_baselines": {
|
| 40 |
+
"factory_no_op": "0/12",
|
| 41 |
+
"best_fixed_recipe": "0/12",
|
| 42 |
+
"ignored_probe": "0/12",
|
| 43 |
+
"raw_probe_1nn_5nn_ridge_0_solves": "0/12, 0/12, 0/12",
|
| 44 |
+
"diagnosis_7_solves_then_1nn_5nn_ridge": "0/12, 0/12, 0/12",
|
| 45 |
+
"equation_free_20_solve_component_search": "0/12"
|
| 46 |
+
},
|
| 47 |
+
"scripted_cheats": "15/15 rejected"
|
| 48 |
+
}
|
| 49 |
+
}
|
tasks/harbor/foundry-001-dev-00/environment/.dockerignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
vault
|
tasks/harbor/foundry-001-dev-00/environment/Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Agent image (`main`): uid 1000 `agent`, numpy + scipy, the socket client only.
|
| 2 |
+
# No engine binary, no core runtime, no pack, no vault: those live in `ztp_vault`.
|
| 3 |
+
FROM python:3.12-slim
|
| 4 |
+
RUN pip install --no-cache-dir numpy==2.5.4 scipy==1.18.1 \
|
| 5 |
+
&& groupadd -g 1000 agent && useradd -m -u 1000 -g 1000 -s /bin/bash agent \
|
| 6 |
+
&& mkdir -p /workspace /opt/ztp_client
|
| 7 |
+
COPY agent/ztp_mcp_client.py /opt/ztp_client/ztp_mcp_client.py
|
| 8 |
+
RUN chmod 0555 /opt/ztp_client/ztp_mcp_client.py \
|
| 9 |
+
&& ln -sf /opt/ztp_client/ztp_mcp_client.py /usr/local/bin/ztp_mcp_client
|
| 10 |
+
COPY agent/mcp.json /workspace/.mcp.json
|
| 11 |
+
COPY agent/workspace/ /workspace/
|
| 12 |
+
RUN chown -R agent:agent /workspace
|
| 13 |
+
ENV PYTHONPATH=/opt/ztp_client ZTP_DAEMON_SOCKET=/run/ztp/ztp_mcp.sock
|
| 14 |
+
WORKDIR /workspace
|
tasks/harbor/foundry-001-dev-00/environment/agent/mcp.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mcpServers": {
|
| 3 |
+
"zero_trust_physics": {
|
| 4 |
+
"command": "/usr/local/bin/ztp_mcp_client",
|
| 5 |
+
"args": [
|
| 6 |
+
"--socket",
|
| 7 |
+
"/run/ztp/ztp_mcp.sock"
|
| 8 |
+
]
|
| 9 |
+
}
|
| 10 |
+
}
|
| 11 |
+
}
|
tasks/harbor/foundry-001-dev-00/environment/agent/workspace/SPEC_SHEET.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# `foundry-001` Engineering Datasheet & 8-Corner Verification Contract
|
| 2 |
+
|
| 3 |
+
## 1. Mission & Physical Boundary
|
| 4 |
+
You are commissioning **one specific liquid-cooled AI compute rack specimen** (serving a `48`-blade manifold, hybrid synchronous/IBR microgrid, outdoor `2170` Li-ion BESS string, and co-packaged O-band expanded-beam optical backplane) and synthesizing its **17-parameter hardware design (`design`)** plus **5-parameter closed-loop protection controller (`controller`)**.
|
| 5 |
+
|
| 6 |
+
- **What is hidden (ONLY the specimen's physical condition $\theta \in \mathbb{R}^6$):**
|
| 7 |
+
1. `entrained_air_fraction` $\in [0.00025, 0.030]$: non-condensable gas volume fraction at `101,325 Pa` in the coolant loop.
|
| 8 |
+
2. `fouling_factor` $\in [0.06, 0.78]$: baseline biofilm/scale fouling across piping, cold-plate microchannels, and pump bearing housing.
|
| 9 |
+
3. `cold_bay_ambient_c` $\in [-20.5, +8.5]\ ^\circ\text{C}$: outdoor container bay ambient temperature housing the BESS rack and dry-cooler heat rejection.
|
| 10 |
+
4. `temp_sensor_bias_k` $\in [-5.5, +5.5]\text{ K}$: systematic calibration offset on the on-die junction RTD (`measured = true + bias`).
|
| 11 |
+
5. `grid_inverter_fraction` $\in [0.14, 0.56]$: grid-following Inverter-Based Resource (`IBR`) share on the `400 kW` rack-row microgrid.
|
| 12 |
+
6. `rested_bess_soc` $\in [0.24, 0.88]$: initial rested state of charge of the outdoor `2170` Li-ion BESS cells (`cell 80`, `4.20 Ah`).
|
| 13 |
+
- **What is 100% public (below):** every bench dimension, stateful carry-over law, component solver schema, stress-corner condition, coupling formula, safety limit, and net-PPA efficiency formula.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## 2. Tool Budgets & Non-Resetting Commissioning Bench (`commission_probe`)
|
| 18 |
+
- **Stateful Hardware Probes (`commission_probe`):** maximum **`3` calls** (tracked separately from `solve`; `0`-probe immediate submission is legal, though uninformed).
|
| 19 |
+
- **Component Physics Solvers (`solve`):** maximum **`36` calls** across the 4 component solvers (`die_coldplate_fe`, `cdu_loop_moc`, `rack_power_pll`, `chassis_mount_duffing`). No whole-plant simulator exists on the agent side.
|
| 20 |
+
- **Read-Only Discovery (`list_solvers`, `describe_solver`, `describe_plant`):** maximum **`60` calls** (`budget_status` is exempt).
|
| 21 |
+
|
| 22 |
+
### Commissioning Bench Fixed Geometry & Probe Inputs
|
| 23 |
+
Each `commission_probe` call executes on the **actual hardware specimen that will be graded** (`0` resets!):
|
| 24 |
+
- **Request bounds:**
|
| 25 |
+
- `flow_m3_s` $\in [0.002, 0.015]\ \text{m}^3/\text{s}$
|
| 26 |
+
- `valve_pulse_closure_s` $\in [0.12, 4.0]\ \text{s}$
|
| 27 |
+
- `heater_test_power_w` $\in [0.0, 8000.0]\ \text{W}$
|
| 28 |
+
- `bess_test_current_a` $\in [0.0, 8.0]\ \text{A/cell}$
|
| 29 |
+
- `duration_s` $\in [1.0, 15.0]\ \text{s}$ (rounded to nearest integer second)
|
| 30 |
+
- **Fixed commissioning bench harness settings:**
|
| 31 |
+
- `cdu_loop_moc`: `supply_pressure_pa = 6.5e5`, `return_pressure_pa = 1.8e5`, `pipe_length_m = 24.0`, `pipe_diameter_m = 0.052`, `pump_speed_rpm = 1800.0`, `duration_s = 0.6`, `coolant_temp_c = current_coolant_temp_c`, `fouling_factor = hidden.fouling_factor + accumulated_wear_factor`.
|
| 32 |
+
- `die_coldplate_fe`: `base_compute_power_w = heater_test_power_w`, `leakage_ref_power_w = 220.0`, `coolant_mass_flow_kg_s = (eff_flow * 1040.0) / 48.0`, `coolant_inlet_temp_k = current_coolant_temp_c + 273.15`, `saturation_temp_k = 368.15`, `fin_area_multiplier = 3.0`, `tim_thickness_um = 60.0`, `clamp_preload_mpa = 5.0`, `dt_s = 0.05`, `initial_vapor_lock = false`.
|
| 33 |
+
- `rack_power_pll`: `step_rack_load_pu = 0.16`, `pll_bandwidth_per_s = 20.0`, `governor_droop = 12.0`, `bess_parallel_strings = 140`, `bess_initial_soc = current_bess_soc`, `bess_case_temp_c = hidden.cold_bay_ambient_c`, `rack_dc_current_a = 160.0`, `parallel_feeder_legs = 20`. (If cell terminal voltage hits the `2.80 V` BMS cutoff, `bess_cutoff_triggered = true`, `measured_cell_terminal_v = 2.80`, and `current_bess_soc` incurs a `-0.022` trip depletion.)
|
| 34 |
+
- **Irreversible Stateful Carry-Over Across Probes AND Into Final 8-Corner Grading:**
|
| 35 |
+
- Initial standby state before Probe 1: `current_bess_soc = rested_bess_soc`, `current_coolant_temp_c = 22.0 °C` (indoor hall standby), `accumulated_wear_factor = 0.0`.
|
| 36 |
+
- After each probe:
|
| 37 |
+
- `current_bess_soc` updates to `cell_final_soc` (or `-0.022` on BMS `2.80 V` cutoff).
|
| 38 |
+
- `current_coolant_temp_c += (heater_test_power_w + 220.0) * duration_s / 55000.0`.
|
| 39 |
+
- `accumulated_wear_factor += 0.002 + (0.045 if pump_lambda_ratio < 1.05) + (0.060 if cavitation_occurred) + (0.050 if peak_hammer_pressure_pa > 2.40e6)`.
|
| 40 |
+
- **Returned Probe Telemetry (`1`-sigma sensor noise):**
|
| 41 |
+
- `measured_steady_drop_pa` ($\sigma = 45\ \text{Pa}$), `measured_echo_time_s` ($\sigma = 60\ \mu\text{s}$), `measured_peak_hammer_pa` ($\sigma = 350\ \text{Pa}$)
|
| 42 |
+
- `measured_inlet_temp_k` ($\sigma = 0.02\ \text{K}$, unbiased manifold RTD before probe heat), `measured_junction_temp_k` (`cp.peak_junction_temp_k + hidden.temp_sensor_bias_k`, $\sigma = 0.03\ \text{K}$)
|
| 43 |
+
- `measured_cell_terminal_v` ($\sigma = 1.0\ \text{mV}$, or `2.80 V` if `bess_cutoff_triggered`), `measured_grid_freq_nadir_hz` ($\sigma = 1.5\ \text{mHz}$)
|
| 44 |
+
- `bess_cutoff_triggered`, `cavitation_triggered`.
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## 3. Coupled 8-Corner Verification Physics (`evaluate_eight_corners`)
|
| 49 |
+
Your submitted `(design, controller)` is graded on the **post-commissioning hardware unit** (`carried_warmup_c = max(0, current_coolant_temp_c - 22.0)`, `carried_bess_soc = current_bess_soc`, `carried_wear = accumulated_wear_factor`) across all `8` stress corners simultaneously:
|
| 50 |
+
|
| 51 |
+
| Corner ID | `cold_soak` | `flow_factor` | `compute_spike` | `inlet_offset_c` | `sensor_extra_bias_k` | `step_load_pu` | `valve_closure_factor` | `extra_fouling` | `shock_accel_m_s2` |
|
| 52 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 53 |
+
| `C1_nominal_steady` | `false` | `1.00` | `1.00` | `0.0` | `0.0` | `0.18` | `1.00` | `0.00` | `12.0` |
|
| 54 |
+
| `C2_pump_partial_coastdown` | `false` | `0.70` | `1.00` | `+4.0` | `0.0` | `0.22` | `1.00` | `0.00` | `18.0` |
|
| 55 |
+
| `C3_ai_step_and_ibr_cloud_drop` | `false` | `1.00` | `1.28` | `+2.0` | `0.0` | `0.42` | `1.00` | `0.00` | `25.0` |
|
| 56 |
+
| `C4_cold_soak_high_viscosity_start` | `true` | `0.86` | `0.95` | `-22.0` | `0.0` | `0.28` | `0.85` | `0.00` | `30.0` |
|
| 57 |
+
| `C5_hot_return_chf_margin` | `false` | `0.92` | `1.18` | `+14.0` | `0.0` | `0.25` | `1.00` | `0.10` | `15.0` |
|
| 58 |
+
| `C6_adverse_2sigma_sensor_underread` | `false` | `0.90` | `1.15` | `+8.0` | `-2.8` | `0.24` | `1.00` | `0.05` | `15.0` |
|
| 59 |
+
| `C7_fast_isolation_valve_hammer` | `false` | `1.05` | `1.00` | `0.0` | `0.0` | `0.20` | `0.45` | `0.00` | `140.0` |
|
| 60 |
+
| `C8_aged_1000h_fouled_envelope` | `false` | `0.88` | `1.08` | `+6.0` | `-1.2` | `0.30` | `0.80` | `0.35` | `65.0` |
|
| 61 |
+
|
| 62 |
+
### Exact Inter-Stage Coupling Equations (Per Corner `sc`)
|
| 63 |
+
1. **Manifold Inventory & Inlet Temperature:**
|
| 64 |
+
- `active_fouling = clamp(hidden.fouling_factor + carried_wear + sc.extra_fouling, 0.0, 2.95)`
|
| 65 |
+
- `loop_vol_m3 = (pi / 4) * pipe_diameter_m^2 * pipe_length_m`; `loop_heat_cap_j_k = max(5000.0, loop_vol_m3 * 1040.0 * 3450.0)`
|
| 66 |
+
- If `sc.cold_soak` (`C4`): `recirc_rise_c = 0.0`, `base_inlet_c = clamp(hidden.cold_bay_ambient_c + 2.0 + 0.30 * carried_warmup_c, -26.0, 65.0)` (note: below `-12 °C`, elastomeric valve seals enter sub-$T_g$ stick-slip snap closure inside `cdu_loop_moc`!).
|
| 67 |
+
- Otherwise: `recirc_rise_c = sustained_compute_target_w * max(0.0, sc.compute_spike - 0.75) * 24.0 / loop_heat_cap_j_k`, and `base_inlet_c = clamp(32.0 + 0.65 * hidden.cold_bay_ambient_c + 0.55 * carried_warmup_c + sc.inlet_offset_c + recirc_rise_c, -26.0, 75.0)`.
|
| 68 |
+
2. **Closed-Loop Thermal Throttling & Surge Flow Controller:**
|
| 69 |
+
- `p_req_w = sustained_compute_target_w * sc.compute_spike`
|
| 70 |
+
- `nom_mdot_sled = max(0.04, (nominal_flow_m3_s * sc.flow_factor * 1040.0) / 48.0)`
|
| 71 |
+
- `r_tim_est = 0.068 * ((tim_thickness_um * 1e-6 / 6.5) + 6.5e-6 * (1.0 + 0.65 * active_fouling)) / 2.5e-3`
|
| 72 |
+
- `h_sp_est = 5400.0 * nom_mdot_sled^0.65`
|
| 73 |
+
- `r_conv_est = 0.068 / (h_sp_est * 2.5e-3 * fin_area_multiplier) + 0.5 / (nom_mdot_sled * 3450.0)`
|
| 74 |
+
- `measured_tj_k = (base_inlet_c + 273.15) + p_req_w * (r_tim_est + r_conv_est) + hidden.temp_sensor_bias_k + sc.sensor_extra_bias_k`
|
| 75 |
+
- `over_k = max(0.0, measured_tj_k - throttle_onset_measured_k)`
|
| 76 |
+
- `commanded_compute_w = clamp(max(sustained_compute_target_w * min_compute_fraction, p_req_w - throttle_gain_w_per_k * over_k), 500.0, 24000.0)`
|
| 77 |
+
- `flow_boost = surge_flow_multiplier if over_k > 1.5 else 1.0`
|
| 78 |
+
- `actual_flow_m3_s = clamp(nominal_flow_m3_s * sc.flow_factor * flow_boost, 0.0002, 0.075)`
|
| 79 |
+
- `eff_valve_closure_s = max(0.006, valve_ramp_s * sc.valve_closure_factor)`
|
| 80 |
+
- `eff_pump_rpm = clamp(pump_speed_rpm * min(1.35, flow_boost), 300.0, 6000.0)`
|
| 81 |
+
3. **Stage 1 (`cdu_loop_moc`, `return_pressure_pa = 1.8e5`, `duration_s = 0.8`):**
|
| 82 |
+
- Safety limits: `steady_valve_pressure_pa >= 1.80e5 Pa`, `peak_hammer_pressure_pa <= 2.85e6 Pa`, `cavitation_occurred == false`, `pump_lambda_ratio >= 1.00`, and in `C7_fast_isolation_valve_hammer`: `containment_spill_liters = 500.0 * actual_flow_m3_s * eff_valve_closure_s <= 4.20 L`.
|
| 83 |
+
4. **Stage 2 (`die_coldplate_fe`, `leakage_ref_power_w = 220.0`, `duration_s = 12.0`, `dt_s = 0.05`):**
|
| 84 |
+
- `coolant_mass_flow_kg_s = (actual_flow_m3_s * 1040.0) / 48.0`
|
| 85 |
+
- Compressed non-condensable gas void lock & saturation shift:
|
| 86 |
+
`compressed_gas_void = hidden.entrained_air_fraction * (1.01325e5 / supply_pressure_pa)` (must satisfy `compressed_gas_void <= 0.00185`)
|
| 87 |
+
`saturation_temp_k = clamp(344.15 + 15.0 * ((supply_pressure_pa - 1.8e5) / 5.0e5) - 4500.0 * compressed_gas_void, 315.0, 425.0)`
|
| 88 |
+
- `initial_vapor_lock = cavitation_occurred`
|
| 89 |
+
- Safety limits: `compressed_gas_void <= 0.00185`, `chf_triggered == false`, `boiling_branch == -1`, `peak_junction_temp_k <= 348.15 K`, `tim_peak_von_mises_mpa <= 34.0 MPa`, `fatigue_life_cycles >= 2.5e5`.
|
| 90 |
+
5. **Stage 3 (`rack_power_pll`, `duration_s = 15.0`, `400 kW` rack-row microgrid base):**
|
| 91 |
+
- `shaft_churn_w = 16.0 * (eff_pump_rpm / 1000.0)^2.2`
|
| 92 |
+
- `pump_power_w = max(1.0e4, supply_pressure_pa - 1.8e5) * (actual_flow_m3_s / 24.0) / 0.74 + shaft_churn_w`
|
| 93 |
+
- `rack_dc_current_a = clamp((commanded_compute_w + pump_power_w) / 48.0, 5.0, 2450.0)`
|
| 94 |
+
- `step_rack_load_pu = sc.step_load_pu + pump_power_w / 4.0e5` (`13S` `2170` BESS strings inject `bess_power_w / 4.0e5` pu)
|
| 95 |
+
- `bess_initial_soc = carried_bess_soc`, `bess_case_temp_c = clamp(hidden.cold_bay_ambient_c + 0.15 * sc.inlet_offset_c, -22.8, 27.0)`
|
| 96 |
+
- Safety limits: no cell/feeder refusal, `loss_of_synchronism == false`, `inverter_pll_tripped == false` (`|pll_err_rad| < 0.22 rad` across both low-bandwidth RoCoF lag and high-bandwidth `15 Hz` weak-grid SSR), `min_grid_frequency_hz >= 59.70 Hz`, `bus_min_voltage_v >= 43.50 V`, `bus_copper_temp_k <= 385.0 K`.
|
| 97 |
+
6. **Stage 4 (`chassis_mount_duffing`, `duffing_alpha = 1.6e7`, `harmonic_accel_m_s2 = 6.5`, `active_kd = 140.0`, `duration_s = 0.6`):**
|
| 98 |
+
- `excitation_freq_hz = eff_pump_rpm / 60.0`
|
| 99 |
+
- `impulse_shock_m_s2 = clamp(sc.shock_accel_m_s2 + max(0.0, peak_hammer_pressure_pa - supply_pressure_pa) / 9.5e3, 0.0, 480.0)`
|
| 100 |
+
- `optical_delta_temp_c = (peak_junction_temp_k - 298.15) * 0.45`
|
| 101 |
+
- Safety limits: `linear_transmissibility <= 0.450` and `optical_link_degraded == false` (`total_alignment_error_um <= depth_of_focus_um` [`46.22 um`] and `final_duffing_branch == -1`).
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## 4. Net-PPA Efficiency Objective & Pass Criterion
|
| 106 |
+
In each corner, net compute PPA efficiency [W] is:
|
| 107 |
+
```text
|
| 108 |
+
capex_penalty_w = 0.12 * sustained_compute_target_w
|
| 109 |
+
+ 180.0 * fin_area_multiplier
|
| 110 |
+
+ 2.8 * bess_parallel_strings
|
| 111 |
+
+ 11.0 * parallel_feeder_legs
|
| 112 |
+
+ 18000.0 * pipe_diameter_m
|
| 113 |
+
+ 8.0 * pipe_length_m
|
| 114 |
+
+ 3.0 * governor_droop
|
| 115 |
+
+ 0.045 * mount_active_kp
|
| 116 |
+
eff_ppa_w = max(0.0, commanded_compute_w - pump_power_w - capex_penalty_w)
|
| 117 |
+
```
|
| 118 |
+
Let `net_ppa_efficiency_w` be the mean of `eff_ppa_w` across all `8` corners, and `reference_ppa_ceiling_w` be this specific specimen's reference PPA target: the best `8/8`-safe net PPA found for it by the task's reference search. It is a best-found value, not a certified maximum, and a design that beats it is graded at ratio `1.0`:
|
| 119 |
+
- **Lexicographic safety gate:** `shaped_score` enters `[0.70, 1.00]` ONLY when all `8/8` corners pass with zero violations.
|
| 120 |
+
- **Binary pass (`binary_reward == 1`):** `all_corners_safe == true` AND `net_ppa_efficiency_w / reference_ppa_ceiling_w >= 0.92`.
|
| 121 |
+
- **Exact score:** `ppa_ratio = clamp(net_ppa_efficiency_w / max(reference_ppa_ceiling_w, 1.0), 0.0, 1.0)`. If all `8` corners are safe, `shaped_score = 0.70 + 0.30 * ppa_ratio`; otherwise `shaped_score = 0.10 + 0.55 * (corners_passed / 8)`.
|
| 122 |
+
|
| 123 |
+
### Runtime Rules Not Stated Above
|
| 124 |
+
- **A refused solver fails the corner.** If any of the four component solvers refuses its inputs in a corner, that corner is unsafe.
|
| 125 |
+
- **Conservation gate.** A corner is also unsafe if the largest energy or volume conservation residual reported by its solvers exceeds `1.0e-5`.
|
| 126 |
+
- **Probe fouling clamp.** On the bench, `fouling_factor = clamp(hidden.fouling_factor + accumulated_wear_factor, 0.0, 2.9)`.
|
| 127 |
+
- **Choked-flow fallback.** If `cdu_loop_moc` refuses the requested probe (bench relief or pump head exceeded), the probe is still charged. The bench reruns at `flow = min(flow_m3_s, 0.004)` with a `1.5 s` valve closure and reports `measured_steady_drop_pa` from `4.70e5 Pa`, `measured_peak_hammer_pa` from `6.50e6 Pa`, the fallback run's echo time, and `cavitation_triggered = true`. Wear for that probe is `0.002 + 0.045 + 0.060 + 0.050 = 0.157`. The cold plate is then heated at the choked flow.
|
| 128 |
+
- **BMS cutoff fallback.** On a `2.80 V` cutoff, the reported `measured_grid_freq_nadir_hz` comes from a rerun with zero BESS support (`bess_initial_soc = 0.50`, `bess_case_temp_c = 20.0`).
|
| 129 |
+
- **State clamps after each probe.** `current_bess_soc` is held in `[0.06, 0.98]` and `current_coolant_temp_c` in `[-25.0, 85.0] °C`.
|
| 130 |
+
- **Tools.** `verify_solution` and `verify_receipt` are not available in this task, and solver answers carry no hash or bit-pattern fields; none is needed for the submission.
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
## 5. Submission Contract (`submission.json` — Zero Hex / Zero Seals Required)
|
| 135 |
+
Write a flat 3-key JSON object to `submission.json` within the declared parameter bounds:
|
| 136 |
+
```json
|
| 137 |
+
{
|
| 138 |
+
"task_id": "foundry-001",
|
| 139 |
+
"design": {
|
| 140 |
+
"pipe_length_m": 24.0,
|
| 141 |
+
"pipe_diameter_m": 0.062,
|
| 142 |
+
"supply_pressure_pa": 850000.0,
|
| 143 |
+
"nominal_flow_m3_s": 0.016,
|
| 144 |
+
"pump_speed_rpm": 2800.0,
|
| 145 |
+
"valve_ramp_s": 0.72,
|
| 146 |
+
"fin_area_multiplier": 3.4,
|
| 147 |
+
"tim_thickness_um": 62.0,
|
| 148 |
+
"clamp_preload_mpa": 5.0,
|
| 149 |
+
"pll_bandwidth_per_s": 22.0,
|
| 150 |
+
"governor_droop": 14.0,
|
| 151 |
+
"bess_parallel_strings": 260,
|
| 152 |
+
"parallel_feeder_legs": 28,
|
| 153 |
+
"mount_natural_freq_hz": 15.0,
|
| 154 |
+
"mount_damping_ratio": 0.24,
|
| 155 |
+
"mount_active_kp": 3400.0,
|
| 156 |
+
"sustained_compute_target_w": 9200.0
|
| 157 |
+
},
|
| 158 |
+
"controller": {
|
| 159 |
+
"throttle_onset_measured_k": 346.0,
|
| 160 |
+
"throttle_gain_w_per_k": 440.0,
|
| 161 |
+
"min_compute_fraction": 0.56,
|
| 162 |
+
"bess_emergency_current_a": 6.5,
|
| 163 |
+
"surge_flow_multiplier": 1.25
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
### Declared Parameter Bounds
|
| 169 |
+
- `design`:
|
| 170 |
+
- `pipe_length_m`: `[12.0, 80.0]` m | `pipe_diameter_m`: `[0.025, 0.140]` m | `supply_pressure_pa`: `[3.0e5, 2.4e6]` Pa
|
| 171 |
+
- `nominal_flow_m3_s`: `[0.004, 0.045]` m³/s | `pump_speed_rpm`: `[900.0, 5600.0]` rpm | `valve_ramp_s`: `[0.05, 2.50]` s
|
| 172 |
+
- `fin_area_multiplier`: `[1.0, 5.5]` | `tim_thickness_um`: `[20.0, 200.0]` µm | `clamp_preload_mpa`: `[1.0, 18.0]` MPa
|
| 173 |
+
- `pll_bandwidth_per_s`: `[4.0, 75.0]` s⁻¹ | `governor_droop`: `[4.0, 28.0]` | `bess_parallel_strings`: `[40, 1200]` int | `parallel_feeder_legs`: `[8, 96]` int
|
| 174 |
+
- `mount_natural_freq_hz`: `[5.0, 80.0]` Hz | `mount_damping_ratio`: `[0.05, 1.20]` | `mount_active_kp`: `[0.0, 25000.0]` s⁻²
|
| 175 |
+
- `sustained_compute_target_w`: `[3000.0, 22000.0]` W
|
| 176 |
+
- `controller`:
|
| 177 |
+
- `throttle_onset_measured_k`: `[315.0, 370.0]` K | `throttle_gain_w_per_k`: `[0.0, 1200.0]` W/K | `min_compute_fraction`: `[0.35, 1.00]`
|
| 178 |
+
- `bess_emergency_current_a`: `[0.5, 14.0]` A/cell | `surge_flow_multiplier`: `[1.00, 1.50]`
|
tasks/harbor/foundry-001-dev-00/environment/agent/ztp_mcp_client.py
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Unprivileged Zero-Trust Physics Agent Client (`ztp_mcp_client.py`).
|
| 3 |
+
|
| 4 |
+
Safe to install world-readable (`0555`) inside unprivileged (`uid=1000`) rollout sandboxes:
|
| 5 |
+
contains zero grader internals, privileged credentials, or catalog identifiers.
|
| 6 |
+
|
| 7 |
+
Supports two modes over the privileged daemon Unix/TCP socket (`/run/ztp/ztp_mcp.sock`):
|
| 8 |
+
1. Standard MCP JSON-RPC 2.0 stdio server (pre-wired in `.mcp.json`, Harbor, and Inspect AI).
|
| 9 |
+
2. Direct CLI & Python helpers (`--list-tools`, `--budget`, `--call`, `call_tool`).
|
| 10 |
+
"""
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
|
| 13 |
+
import argparse
|
| 14 |
+
import json
|
| 15 |
+
import os
|
| 16 |
+
import socket
|
| 17 |
+
import sys
|
| 18 |
+
from typing import Any
|
| 19 |
+
|
| 20 |
+
DEFAULT_SOCKET = os.environ.get("ZTP_DAEMON_SOCKET", "/run/ztp/ztp_mcp.sock")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def _connect(endpoint: str, timeout_s: float = 120.0) -> socket.socket:
|
| 24 |
+
if ":" in endpoint and not endpoint.startswith("/") and not endpoint.startswith("."):
|
| 25 |
+
host, port_s = endpoint.rsplit(":", 1)
|
| 26 |
+
return socket.create_connection((host, int(port_s)), timeout=timeout_s)
|
| 27 |
+
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
| 28 |
+
sock.settimeout(timeout_s)
|
| 29 |
+
sock.connect(endpoint)
|
| 30 |
+
return sock
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def daemon_rpc(
|
| 34 |
+
method: str,
|
| 35 |
+
params: dict[str, Any] | None = None,
|
| 36 |
+
socket_path: str | None = None,
|
| 37 |
+
timeout_s: float = 120.0,
|
| 38 |
+
) -> dict[str, Any]:
|
| 39 |
+
"""Send one JSON-line request to `core/daemon.py` and return parsed JSON response."""
|
| 40 |
+
ep = socket_path or os.environ.get("ZTP_DAEMON_SOCKET", DEFAULT_SOCKET)
|
| 41 |
+
payload = (
|
| 42 |
+
json.dumps({"method": method, "params": params or {}}, separators=(",", ":")) + "\n"
|
| 43 |
+
).encode("utf-8")
|
| 44 |
+
with _connect(ep, timeout_s=timeout_s) as sock:
|
| 45 |
+
sock.sendall(payload)
|
| 46 |
+
chunks: list[bytes] = []
|
| 47 |
+
while True:
|
| 48 |
+
chunk = sock.recv(65536)
|
| 49 |
+
if not chunk:
|
| 50 |
+
break
|
| 51 |
+
chunks.append(chunk)
|
| 52 |
+
if chunk.endswith(b"\n"):
|
| 53 |
+
break
|
| 54 |
+
raw = b"".join(chunks).decode("utf-8").strip()
|
| 55 |
+
if not raw:
|
| 56 |
+
raise RuntimeError(f"Empty response from ZTP daemon at {ep}")
|
| 57 |
+
return json.loads(raw)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def list_tools(socket_path: str | None = None) -> list[dict[str, Any]]:
|
| 61 |
+
"""Return the list of MCP tool definitions exposed for this task."""
|
| 62 |
+
res = daemon_rpc("tools/list", {}, socket_path=socket_path)
|
| 63 |
+
return list(res.get("tools") or [])
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def call_tool_raw(
|
| 67 |
+
tool_name: str,
|
| 68 |
+
arguments: dict[str, Any] | None = None,
|
| 69 |
+
socket_path: str | None = None,
|
| 70 |
+
timeout_s: float = 120.0,
|
| 71 |
+
) -> tuple[str, bool]:
|
| 72 |
+
"""Call `tool_name` and return `(exact_raw_text, is_error)`."""
|
| 73 |
+
res = daemon_rpc(
|
| 74 |
+
"tools/call",
|
| 75 |
+
{"name": tool_name, "arguments": arguments or {}},
|
| 76 |
+
socket_path=socket_path,
|
| 77 |
+
timeout_s=timeout_s,
|
| 78 |
+
)
|
| 79 |
+
if res.get("ok") is False and "text" not in res:
|
| 80 |
+
# Daemon-side fault (internal exception, unknown RPC): surface it, never as an empty success.
|
| 81 |
+
return json.dumps({"ok": False, "error": str(res.get("error", "daemon error"))}, separators=(",", ":")), True
|
| 82 |
+
return str(res.get("text", "")), bool(res.get("isError", False))
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def call_tool(
|
| 86 |
+
tool_name: str,
|
| 87 |
+
arguments: dict[str, Any] | None = None,
|
| 88 |
+
socket_path: str | None = None,
|
| 89 |
+
timeout_s: float = 120.0,
|
| 90 |
+
) -> tuple[Any, str, bool]:
|
| 91 |
+
"""Call `tool_name` and return `(parsed_json_or_str, exact_raw_text, is_error)`."""
|
| 92 |
+
raw_text, is_err = call_tool_raw(tool_name, arguments, socket_path=socket_path, timeout_s=timeout_s)
|
| 93 |
+
try:
|
| 94 |
+
parsed = json.loads(raw_text)
|
| 95 |
+
except ValueError:
|
| 96 |
+
parsed = raw_text
|
| 97 |
+
return parsed, raw_text, is_err
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def run_mcp_stdio_loop(socket_path: str) -> int:
|
| 101 |
+
"""Speak MCP JSON-RPC 2.0 over stdin/stdout, forwarding to `socket_path`."""
|
| 102 |
+
for raw_line in sys.stdin.buffer:
|
| 103 |
+
line = raw_line.decode("utf-8", errors="replace").strip()
|
| 104 |
+
if not line:
|
| 105 |
+
continue
|
| 106 |
+
try:
|
| 107 |
+
msg = json.loads(line)
|
| 108 |
+
except ValueError:
|
| 109 |
+
continue
|
| 110 |
+
msg_id = msg.get("id")
|
| 111 |
+
method = msg.get("method", "")
|
| 112 |
+
if msg_id is None:
|
| 113 |
+
continue
|
| 114 |
+
|
| 115 |
+
try:
|
| 116 |
+
if method in ("initialize", "server/discover"):
|
| 117 |
+
req_params = msg.get("params") or {}
|
| 118 |
+
proto = req_params.get("protocolVersion") or "2025-06-18"
|
| 119 |
+
resp: dict[str, Any] = {
|
| 120 |
+
"jsonrpc": "2.0",
|
| 121 |
+
"id": msg_id,
|
| 122 |
+
"result": {
|
| 123 |
+
"protocolVersion": proto,
|
| 124 |
+
"capabilities": {"tools": {}},
|
| 125 |
+
"serverInfo": {"name": "zero_trust_physics", "version": "3.0.0"},
|
| 126 |
+
},
|
| 127 |
+
}
|
| 128 |
+
elif method == "ping":
|
| 129 |
+
resp = {"jsonrpc": "2.0", "id": msg_id, "result": {}}
|
| 130 |
+
elif method == "tools/list":
|
| 131 |
+
tools = list_tools(socket_path=socket_path)
|
| 132 |
+
resp = {"jsonrpc": "2.0", "id": msg_id, "result": {"tools": tools}}
|
| 133 |
+
elif method == "tools/call":
|
| 134 |
+
p = msg.get("params") or {}
|
| 135 |
+
tname = str(p.get("name", ""))
|
| 136 |
+
targs = p.get("arguments") or {}
|
| 137 |
+
if not isinstance(targs, dict):
|
| 138 |
+
targs = {}
|
| 139 |
+
raw_text, is_err = call_tool_raw(tname, targs, socket_path=socket_path)
|
| 140 |
+
resp = {
|
| 141 |
+
"jsonrpc": "2.0",
|
| 142 |
+
"id": msg_id,
|
| 143 |
+
"result": {
|
| 144 |
+
"content": [{"type": "text", "text": raw_text}],
|
| 145 |
+
"isError": is_err,
|
| 146 |
+
},
|
| 147 |
+
}
|
| 148 |
+
else:
|
| 149 |
+
resp = {
|
| 150 |
+
"jsonrpc": "2.0",
|
| 151 |
+
"id": msg_id,
|
| 152 |
+
"error": {"code": -32601, "message": f"Method not found: {method}"},
|
| 153 |
+
}
|
| 154 |
+
except Exception as exc:
|
| 155 |
+
resp = {
|
| 156 |
+
"jsonrpc": "2.0",
|
| 157 |
+
"id": msg_id,
|
| 158 |
+
"result": {
|
| 159 |
+
"content": [{"type": "text", "text": f"Daemon transport error: {exc}"}],
|
| 160 |
+
"isError": True,
|
| 161 |
+
},
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
sys.stdout.write(json.dumps(resp, separators=(",", ":")) + "\n")
|
| 165 |
+
sys.stdout.flush()
|
| 166 |
+
return 0
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
def main() -> int:
|
| 170 |
+
parser = argparse.ArgumentParser(description="Zero-Trust Physics Unprivileged MCP Client & CLI")
|
| 171 |
+
parser.add_argument("--socket", default=DEFAULT_SOCKET, help="Unix socket path or host:port")
|
| 172 |
+
parser.add_argument("--list-tools", action="store_true", help="Print available tools JSON and exit")
|
| 173 |
+
parser.add_argument("--budget", action="store_true", help="Print remaining discovery/sim call budget and exit")
|
| 174 |
+
parser.add_argument("--call", metavar="TOOL_NAME", default=None, help="Call a single tool and print raw response")
|
| 175 |
+
parser.add_argument("--args", default="{}", help="JSON arguments string for --call (or use positional JSON)")
|
| 176 |
+
parser.add_argument("--args-file", default=None, help="Path to JSON file containing tool arguments for --call")
|
| 177 |
+
parser.add_argument("positional_args", nargs="?", default=None, help="Optional positional JSON arguments for --call")
|
| 178 |
+
parser.add_argument("--ping", action="store_true", help="Check the daemon socket answers (no ledger entry) and exit")
|
| 179 |
+
args = parser.parse_args()
|
| 180 |
+
|
| 181 |
+
if args.ping:
|
| 182 |
+
res = daemon_rpc("ping", {}, socket_path=args.socket, timeout_s=5.0)
|
| 183 |
+
return 0 if res.get("ok") else 1
|
| 184 |
+
|
| 185 |
+
if args.list_tools:
|
| 186 |
+
print(json.dumps(list_tools(socket_path=args.socket), indent=2))
|
| 187 |
+
return 0
|
| 188 |
+
|
| 189 |
+
if args.budget:
|
| 190 |
+
raw_text, is_err = call_tool_raw("budget_status", {}, socket_path=args.socket)
|
| 191 |
+
sys.stdout.write(raw_text + "\n")
|
| 192 |
+
return 1 if is_err else 0
|
| 193 |
+
|
| 194 |
+
if args.call is not None:
|
| 195 |
+
if args.args_file:
|
| 196 |
+
with open(args.args_file, "r", encoding="utf-8") as fh:
|
| 197 |
+
call_args = json.load(fh)
|
| 198 |
+
elif args.positional_args is not None:
|
| 199 |
+
call_args = json.loads(args.positional_args)
|
| 200 |
+
else:
|
| 201 |
+
call_args = json.loads(args.args)
|
| 202 |
+
raw_text, is_err = call_tool_raw(args.call, call_args, socket_path=args.socket)
|
| 203 |
+
sys.stdout.write(raw_text)
|
| 204 |
+
if not raw_text.endswith("\n"):
|
| 205 |
+
sys.stdout.write("\n")
|
| 206 |
+
sys.stdout.flush()
|
| 207 |
+
return 1 if is_err else 0
|
| 208 |
+
|
| 209 |
+
return run_mcp_stdio_loop(args.socket)
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
if __name__ == "__main__":
|
| 213 |
+
raise SystemExit(main())
|
tasks/harbor/foundry-001-dev-00/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Harbor merges this over its own `main` service. Every service here has no network
|
| 2 |
+
# interface (Docker `network_mode: none`): `main` (the agent) and `ztp_vault` (the root
|
| 3 |
+
# daemon) share nothing except the daemon socket volume. Harbor respects task-authored
|
| 4 |
+
# networking, so its egress sidecar never carries their traffic.
|
| 5 |
+
services:
|
| 6 |
+
main:
|
| 7 |
+
network_mode: none
|
| 8 |
+
depends_on:
|
| 9 |
+
ztp_vault:
|
| 10 |
+
condition: service_healthy
|
| 11 |
+
environment:
|
| 12 |
+
ZTP_DAEMON_SOCKET: "/run/ztp/ztp_mcp.sock"
|
| 13 |
+
volumes:
|
| 14 |
+
- ztp_sock:/run/ztp
|
| 15 |
+
|
| 16 |
+
ztp_vault:
|
| 17 |
+
build:
|
| 18 |
+
context: ./vault
|
| 19 |
+
user: "0:0"
|
| 20 |
+
network_mode: none
|
| 21 |
+
entrypoint: ["python3", "-I", "/root/ztp_runtime/core/daemon.py"]
|
| 22 |
+
command: ["--task-id", "foundry-001", "--pack", "foundry_flagship", "--socket", "/run/ztp/ztp_mcp.sock", "--vault-dir", "/root/ztp_vault", "--ledger", "/root/ztp_vault/call_ledger.jsonl", "--max-discovery-calls", "60", "--max-sim-calls", "36", "--wall-timeout-s", "3600.0"]
|
| 23 |
+
volumes:
|
| 24 |
+
- ztp_sock:/run/ztp
|
| 25 |
+
healthcheck:
|
| 26 |
+
test: ["CMD", "python3", "-I", "-c", "import socket; s=socket.socket(socket.AF_UNIX); s.settimeout(3); s.connect('/run/ztp/ztp_mcp.sock'); s.sendall(b'{\"method\":\"ping\"}\\n'); assert b'\"ok\":true' in s.recv(4096)"]
|
| 27 |
+
interval: 2s
|
| 28 |
+
timeout: 5s
|
| 29 |
+
retries: 60
|
| 30 |
+
start_period: 5s
|
| 31 |
+
|
| 32 |
+
volumes:
|
| 33 |
+
ztp_sock: {}
|
tasks/harbor/foundry-001-dev-00/environment/vault/Dockerfile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Root vault for `foundry-001`: stateful daemon (agent tool boundary). uid=0, /root is 0700, no network interface.
|
| 2 |
+
# Binaries (ztp_foundry_mcp, ztp_foundry_preview_verifier) are picked for this machine's arch in a throwaway stage.
|
| 3 |
+
FROM python:3.12-slim AS pick
|
| 4 |
+
COPY bin/ /stage/
|
| 5 |
+
RUN set -eu; \
|
| 6 |
+
case "$(uname -m)" in \
|
| 7 |
+
aarch64|arm64) a=linux-arm64 ;; \
|
| 8 |
+
x86_64|amd64) a=linux-amd64 ;; \
|
| 9 |
+
*) echo "unsupported arch $(uname -m)" >&2; exit 1 ;; \
|
| 10 |
+
esac; \
|
| 11 |
+
mkdir /out && cp "/stage/$a/"* /out/; \
|
| 12 |
+
if [ -f /stage/multiarch_verification.json ]; then cp /stage/multiarch_verification.json /out/multiarch_verification.json; fi
|
| 13 |
+
|
| 14 |
+
FROM python:3.12-slim
|
| 15 |
+
COPY --from=pick /out/ /root/ztp_bin/
|
| 16 |
+
COPY core/ /root/ztp_runtime/core/
|
| 17 |
+
COPY packs/ /root/ztp_packs/
|
| 18 |
+
COPY hidden.json /root/ztp_packs/foundry_flagship/.vault/foundry-001.json
|
| 19 |
+
RUN set -eu; \
|
| 20 |
+
mkdir -p /root/ztp_vault /run/ztp; \
|
| 21 |
+
chown -R root:root /root; \
|
| 22 |
+
chmod -R go-rwx /root; \
|
| 23 |
+
chmod 0700 /root/ztp_bin/*; \
|
| 24 |
+
if [ -f /root/ztp_bin/multiarch_verification.json ]; then chmod 0600 /root/ztp_bin/multiarch_verification.json; fi; \
|
| 25 |
+
chmod 0755 /run/ztp
|
| 26 |
+
ENV PYTHONDONTWRITEBYTECODE=1 ZTP_ENGINE=/root/ztp_bin/ztp_foundry_mcp ZTP_BIN_DIR=/root/ztp_bin ZTP_PACK_DIR=/root/ztp_packs/foundry_flagship ZTP_VAULT_DIR=/root/ztp_vault ZTP_VAULT_TMP=/root/ztp_vault
|
| 27 |
+
WORKDIR /root
|
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_mcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7a9958975405f0329dccfeabc5f799b32c9d452a90e5d4b622f5160a8fc66f8
|
| 3 |
+
size 1017472
|
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-amd64/ztp_foundry_preview_verifier
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1467203f85dad157ea1cdd3ea375205ed9aa1314f4f931361e70086179edc3a5
|
| 3 |
+
size 883808
|
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_mcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1b85edc5b2c945c2b61678d2f1da1a9fe1addfed036403346a31c26ac7ebf4d
|
| 3 |
+
size 833000
|
tasks/harbor/foundry-001-dev-00/environment/vault/bin/linux-arm64/ztp_foundry_preview_verifier
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d85701ea11a2114ae044e824d08fdc46aea4b772005517310d73ef4f71d74e65
|
| 3 |
+
size 730352
|