The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(ci): remove app state proof workflow
Steven Enamakelbfb9f341bde3
diff --git a/.github/workflows/epic-8089-app-state-proof.yml b/.github/workflows/epic-8089-app-state-proof.ymldeleted file mode 100644index 2930f714a5..0000000000--- a/.github/workflows/epic-8089-app-state-proof.yml+++ /dev/null@@ -1,399 +0,0 @@-name: Epic 8089 App state adversarial proof--on:- push:- branches:- - epic-8089-228-app-state-proof--permissions:- actions: read- contents: read- packages: read--env:- GH_TOKEN: ${{ github.token }}- CARGO_INCREMENTAL: "0"- CARGO_BUILD_JOBS: "1"- CARGO_PROFILE_DEV_DEBUG: line-tables-only- RUSTFLAGS: "-C link-arg=-fuse-ld=mold"- RUST_MIN_STACK: "33554432"--concurrency:- group: app-state-proof-${{ github.ref }}- cancel-in-progress: false--jobs:- app-state-controller-proof:- if: github.repository == 'senamakel/openhuman'- name: App state ${{ matrix.case }} contract proof- runs-on: ubuntu-22.04- timeout-minutes: 90- container:- image: ghcr.io/tinyhumansai/openhuman_ci:latest- strategy:- fail-fast: false- matrix:- include:- - case: baseline- expected_tree: d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5- expected_schema_blob: 81f6402b2c79e4e159b8cbff4e05f61a1010589a- expected_runtime_exit: 0- - case: schema-optional-removed- expected_tree: 77dacb0ac2920a8f2ec71dde50ac42d864ba743e- expected_schema_blob: f3965dc1fcefca7a479e8ea198a9ad59633cdba8- expected_runtime_exit: 101- - case: parser-wiring- expected_tree: a7f4598f241e0e4257b2e04d094ec4a6928e07de- expected_schema_blob: 01be72b6a5fb57eea507ce07234b8286ceab4277- expected_runtime_exit: 101- steps:- - name: Free disk space on the hosted container- run: |- rm -rf /__t/* || true- df -h /__w || true-- - name: Checkout the frozen App state source and recursive pins- uses: actions/checkout@v7- with:- ref: 9d3f38ec4bf2465334303a1487201e16d10cf3f7- fetch-depth: 0- persist-credentials: false- submodules: recursive-- - name: Trust container checkout and submodules- run: bash scripts/ci/trust-checkout.sh-- - name: Install Rust 1.96.1- uses: dtolnay/[email protected]-- - name: Assert frozen source and recursive pins- shell: bash- run: |- set -euo pipefail- test "$(git rev-parse HEAD)" = 9d3f38ec4bf2465334303a1487201e16d10cf3f7- test "$(git rev-parse HEAD^{tree})" = d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5- test "$(git rev-parse HEAD:crates/openhuman-core/src/desktop/app_state/schemas.rs)" = 81f6402b2c79e4e159b8cbff4e05f61a1010589a- test -z "$(git status --porcelain=v1 --untracked-files=all)"- submodules="$(git submodule status --recursive)"- if grep -Eq '^[+-U]' <<< "$submodules"; then- printf '%s\n' "$submodules"- echo "recursive submodules are not at their recorded pins"- exit 1- fi- git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'-- - name: Cache Rust build artifacts- uses: Swatinem/rust-cache@v2- with:- workspaces: . -> target- cache-on-failure: true- key: app-state-proof-- - name: Start fresh proof evidence after cache restore- shell: bash- env:- APP_STATE_PROOF_CASE: ${{ matrix.case }}- run: |- set -euo pipefail- rm -rf -- target/app-state-proof- mkdir -p target/app-state-proof- {- printf 'case=%s\n' "$APP_STATE_PROOF_CASE"- printf 'workflow_ref=%s\n' "$GITHUB_WORKFLOW_REF"- printf 'workflow_sha=%s\n' "$GITHUB_SHA"- printf 'workflow_repository=%s\n' "$GITHUB_REPOSITORY"- } > target/app-state-proof/run-context.txt-- - name: Apply exactly the selected mutation- if: matrix.case != 'baseline'- shell: bash- env:- APP_STATE_PROOF_CASE: ${{ matrix.case }}- run: |- set -euo pipefail- python3 - <<'PY'- import os- from pathlib import Path-- path = Path("crates/openhuman-core/src/desktop/app_state/schemas.rs")- source = path.read_text()- case = os.environ["APP_STATE_PROOF_CASE"]- if case == "schema-optional-removed":- old = ' optional_json(\n "keyringConsent",\n "Set or clear the user\'s keyring consent preference.",\n ),\n'- new = ""- elif case == "parser-wiring":- old = ' parse_update_local_state,\n run_update_local_state,'- new = ' |_params: Map<String, Value>| -> Result<StoredAppStatePatch, String> {\n Err("mutation parser failure".to_owned())\n },\n run_update_local_state,'- else:- raise SystemExit(f"unrecognized App state proof case: {case}")- if source.count(old) != 1:- raise SystemExit(f"expected one exact mutation anchor; found {source.count(old)}")- path.write_text(source.replace(old, new, 1))- PY-- - name: Freeze mutation patch and verify complete source tree- shell: bash- env:- EXPECTED_TREE: ${{ matrix.expected_tree }}- EXPECTED_SCHEMA_BLOB: ${{ matrix.expected_schema_blob }}- APP_STATE_PROOF_CASE: ${{ matrix.case }}- run: |- set -euo pipefail- source=crates/openhuman-core/src/desktop/app_state/schemas.rs- evidence=target/app-state-proof- test "$(git rev-parse HEAD)" = 9d3f38ec4bf2465334303a1487201e16d10cf3f7- test "$(git rev-parse HEAD^{tree})" = d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5- test "$(git rev-parse HEAD:$source)" = 81f6402b2c79e4e159b8cbff4e05f61a1010589a- if [ "$APP_STATE_PROOF_CASE" = baseline ]; then- test -z "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)"- else- test "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)" = " M $source"- fi- git submodule status --recursive > "$evidence/submodules-before-build.txt"- if grep -Eq '^[+-U]' "$evidence/submodules-before-build.txt"; then- cat "$evidence/submodules-before-build.txt"- echo "recursive submodules are not at their recorded pins"- exit 1- fi- git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'- if [ "$APP_STATE_PROOF_CASE" != baseline ]; then- git add -- "$source"- fi- actual_tree="$(git write-tree)"- actual_blob="$(git rev-parse :"$source")"- test "$actual_tree" = "$EXPECTED_TREE"- test "$actual_blob" = "$EXPECTED_SCHEMA_BLOB"- mkdir -p target/build-tmp target/debug/proof-binaries- git diff --cached --binary 9d3f38ec4bf2465334303a1487201e16d10cf3f7 -- "$source" > "$evidence/mutation.patch"- git diff --cached 9d3f38ec4bf2465334303a1487201e16d10cf3f7 -- "$source" > "$evidence/mutation.diff"- sha256sum "$evidence/mutation.patch" > "$evidence/mutation.patch.sha256"- {- printf 'case=%s\n' "$APP_STATE_PROOF_CASE"- printf 'source_head=9d3f38ec4bf2465334303a1487201e16d10cf3f7\n'- printf 'baseline_tree=d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5\n'- printf 'workflow_ref=%s\n' "$GITHUB_WORKFLOW_REF"- printf 'workflow_sha=%s\n' "$GITHUB_SHA"- printf 'workflow_repository=%s\n' "$GITHUB_REPOSITORY"- printf 'source_tree=%s\n' "$actual_tree"- printf 'schemas_blob=%s\n' "$actual_blob"- cat "$evidence/mutation.patch.sha256"- printf 'features=default,voice,inference\n'- printf 'rustc_version=%s\n' "$(rustc --version)"- printf 'cargo_version=%s\n' "$(cargo --version)"- printf 'host_mem_available_kib=%s\n' "$(awk '/MemAvailable/ {print $2}' /proc/meminfo)"- printf 'build_filesystem=%s\n' "$(df -Pk . | tail -n 1)"- } > "$evidence/receipt.txt"- git submodule status --recursive > "$evidence/submodules-before-build.txt"- if grep -Eq '^[+-U]' "$evidence/submodules-before-build.txt"; then- cat "$evidence/submodules-before-build.txt"- echo "recursive submodules are not at their recorded pins"- exit 1- fi- git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'-- - name: Compile the core lib-test binary once- shell: bash- env:- EXPECTED_TREE: ${{ matrix.expected_tree }}- EXPECTED_SCHEMA_BLOB: ${{ matrix.expected_schema_blob }}- APP_STATE_PROOF_CASE: ${{ matrix.case }}- run: |- set -euo pipefail- mkdir -p target/build-tmp target/app-state-proof target/debug/proof-binaries- evidence=target/app-state-proof- export TMPDIR="$GITHUB_WORKSPACE/target/build-tmp"- source=crates/openhuman-core/src/desktop/app_state/schemas.rs- test "$(git rev-parse HEAD)" = 9d3f38ec4bf2465334303a1487201e16d10cf3f7- test "$(git write-tree)" = "$EXPECTED_TREE"- test "$(git rev-parse :"$source")" = "$EXPECTED_SCHEMA_BLOB"- git diff --exit-code --ignore-submodules=none- if [ "$APP_STATE_PROOF_CASE" = baseline ]; then- test -z "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)"- else- test "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)" = "M $source"- fi- git submodule status --recursive > "$evidence/submodules-before-build.txt"- git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'-- build_json="$evidence/build.jsonl"- build_stderr="$evidence/build.stderr"- build_started="$(date -u +%Y-%m-%dT%H:%M:%SZ)"- build_epoch="$(date +%s)"- set +e- bash scripts/ci-cancel-aware.sh cargo test -p openhuman --locked --lib --features voice,inference --no-run --message-format=json > "$build_json" 2> "$build_stderr"- build_exit=$?- set -e- build_ended="$(date -u +%Y-%m-%dT%H:%M:%SZ)"- build_elapsed=$(($(date +%s) - build_epoch))- printf 'build_started_utc=%s\nbuild_ended_utc=%s\nbuild_elapsed_seconds=%s\nbuild_exit=%s\n' "$build_started" "$build_ended" "$build_elapsed" "$build_exit" >> "$evidence/receipt.txt"- if [ "$build_exit" -ne 0 ]; then- cat "$build_stderr"- exit "$build_exit"- fi-- test "$(git rev-parse HEAD^{tree})" = d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5- test "$(git write-tree)" = "$EXPECTED_TREE"- test "$(git rev-parse :"$source")" = "$EXPECTED_SCHEMA_BLOB"- git diff --exit-code --ignore-submodules=none- if [ "$APP_STATE_PROOF_CASE" = baseline ]; then- test -z "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)"- else- test "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)" = "M $source"- fi- git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'- git submodule status --recursive > "$evidence/submodules-after-build.txt"- cmp "$evidence/submodules-before-build.txt" "$evidence/submodules-after-build.txt"-- python3 - "$build_json" "$evidence/test-binary-path" "$evidence/compiler-fresh.txt" <<'PY'- import json- import sys-- artifacts = []- fresh_values = []- with open(sys.argv[1], encoding="utf-8") as stream:- for line in stream:- try:- message = json.loads(line)- except json.JSONDecodeError:- continue- target = message.get("target", {})- executable = message.get("executable")- if (- message.get("reason") == "compiler-artifact"- and target.get("name") == "openhuman_core"- and target.get("test") is True- and executable- ):- artifacts.append(executable)- fresh_values.append(str(message.get("fresh", "unknown")))- if len(artifacts) != 1:- raise SystemExit(f"expected exactly one openhuman lib-test binary, got {artifacts!r}")- with open(sys.argv[2], "w", encoding="utf-8") as stream:- stream.write(artifacts[0] + "\n")- with open(sys.argv[3], "w", encoding="utf-8") as stream:- stream.write("\n".join(fresh_values) + "\n")- PY- source_binary="$(cat "$evidence/test-binary-path")"- binary=target/debug/proof-binaries/app-state-${{ matrix.case }}- cp "$source_binary" "$binary"- sha256sum "$binary" > "$evidence/test-binary.sha256"- "$binary" --list > "$evidence/test-list.txt"- sha256sum "$evidence/test-list.txt" > "$evidence/test-list.sha256"- raw_filter=core::all::bound_controller_tests::app_state_controller_tests::raw_app_state_desktop_registry_matches_its_independent_contract- grep -Fxq "$raw_filter: test" "$evidence/test-list.txt"- {- printf 'compiler_artifact_fresh='; paste -sd, "$evidence/compiler-fresh.txt"- printf 'immutable_binary=%s\n' "$binary"- cat "$evidence/test-binary.sha256"- cat "$evidence/test-list.sha256"- } >> "$evidence/receipt.txt"-- - name: Run exact raw registry and parser-control tests- shell: bash- env:- EXPECTED_RUNTIME_EXIT: ${{ matrix.expected_runtime_exit }}- APP_STATE_PROOF_CASE: ${{ matrix.case }}- run: |- set -euo pipefail- evidence=target/app-state-proof- binary=target/debug/proof-binaries/app-state-${{ matrix.case }}- raw_filter=core::all::bound_controller_tests::app_state_controller_tests::raw_app_state_desktop_registry_matches_its_independent_contract- raw_log="$evidence/raw-contract.log"- printf 'raw_filter=%s\nraw_command=%s %s --exact --test-threads=1\nexpected_raw_exit=%s\n' "$raw_filter" "$binary" "$raw_filter" "$EXPECTED_RUNTIME_EXIT" >> "$evidence/receipt.txt"- raw_started="$(date -u +%Y-%m-%dT%H:%M:%SZ)"- set +e- "$binary" "$raw_filter" --exact --test-threads=1 > "$raw_log" 2>&1- raw_exit=$?- set -e- raw_ended="$(date -u +%Y-%m-%dT%H:%M:%SZ)"- printf 'raw_started_utc=%s\nraw_ended_utc=%s\nraw_exit=%s\n' "$raw_started" "$raw_ended" "$raw_exit" >> "$evidence/receipt.txt"- if [ "$raw_exit" -ne "$EXPECTED_RUNTIME_EXIT" ]; then- cat "$raw_log"- echo "unexpected raw contract exit: $raw_exit"- exit 1- fi- case "$APP_STATE_PROOF_CASE" in- baseline)- grep -Fq 'test result: ok. 1 passed; 0 failed;' "$raw_log"- ;;- schema-optional-removed)- grep -Fq 'app_state.update_local_state optional inputs mismatch: expected [\"encryptionKey\", \"onboardingTasks\", \"keyringConsent\"], got [\"encryptionKey\", \"onboardingTasks\"]' "$raw_log"- grep -Fq 'test result: FAILED. 0 passed; 1 failed;' "$raw_log"- ;;- parser-wiring)- grep -Fq 'app_state.update_local_state bound decoder rejects example 0: mutation parser failure' "$raw_log"- grep -Fq 'test result: FAILED. 0 passed; 1 failed;' "$raw_log"- ;;- esac- cat "$raw_log"-- if [ "$APP_STATE_PROOF_CASE" = parser-wiring ]; then- control_filter=desktop::app_state::schemas::tests::update_local_state_patch_preserves_camel_case_tristate_and_nested_defaults- control_log="$evidence/direct-parser-control.log"- printf 'direct_parser_control_filter=%s\n' "$control_filter" >> "$evidence/receipt.txt"- set +e- "$binary" "$control_filter" --exact --test-threads=1 > "$control_log" 2>&1- control_exit=$?- set -e- printf 'direct_parser_control_exit=%s\n' "$control_exit" >> "$evidence/receipt.txt"- test "$control_exit" -eq 0- grep -Fq 'test result: ok. 1 passed; 0 failed;' "$control_log"- fi-- - name: Run the Rust layout and storage schema gates on the baseline- if: matrix.case == 'baseline'- shell: bash- run: |- set -euo pipefail- evidence=target/app-state-proof- mkdir -p target/build-tmp- export TMPDIR="$GITHUB_WORKSPACE/target/build-tmp"- schema="$evidence/storage-schema.json"- schema_stderr="$evidence/storage-schema.stderr"- set +e- bash scripts/ci-cancel-aware.sh cargo run --locked -p openhuman-cli --example storage_schema_dump --features web3 > "$schema" 2> "$schema_stderr"- schema_exit=$?- set -e- printf 'storage_schema_exit=%s\n' "$schema_exit" >> "$evidence/receipt.txt"- if [ "$schema_exit" -ne 0 ]; then- cat "$schema_stderr"- exit "$schema_exit"- fi- layout_log="$evidence/rust-layout.log"- set +e- bash scripts/ci-cancel-aware.sh pnpm rust:layout > "$layout_log" 2>&1- layout_exit=$?- set -e- printf 'rust_layout_exit=%s\n' "$layout_exit" >> "$evidence/receipt.txt"- if [ "$layout_exit" -ne 0 ]; then- cat "$layout_log"- exit "$layout_exit"- fi- node scripts/ci/check-storage-schema.mjs --schema "$schema" > "$evidence/storage-schema-check.log" 2>&1- test "$(git rev-parse HEAD^{tree})" = d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5- test "$(git write-tree)" = d3993d1e7e3bd62357a98d84a7538b7bfdf5b8a5- test "$(git rev-parse HEAD:crates/openhuman-core/src/desktop/app_state/schemas.rs)" = 81f6402b2c79e4e159b8cbff4e05f61a1010589a- git diff --exit-code --ignore-submodules=none- test -z "$(git status --porcelain=v1 --untracked-files=all --ignore-submodules=none)"- git submodule foreach --quiet --recursive 'test -z "$(git status --porcelain=v1 --untracked-files=all)"'- git submodule status --recursive > "$evidence/submodules-after-layout.txt"- cmp "$evidence/submodules-before-build.txt" "$evidence/submodules-after-layout.txt"-- - name: Upload proof receipts and logs- if: always()- uses: actions/upload-artifact@v7- with:- name: app-state-proof-${{ matrix.case }}- path: target/app-state-proof/- if-no-files-found: error- retention-days: 30-- - name: Upload matching test binary- if: success()- uses: actions/upload-artifact@v7- with:- name: app-state-proof-${{ matrix.case }}-binary- path: target/debug/proof-binaries/app-state-${{ matrix.case }}- if-no-files-found: error- retention-days: 1- compression-level: 1