diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 472b70eb..fbed7a0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,17 +18,6 @@ jobs: - name: Checkout Source uses: actions/checkout@v4 - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - ref: 7ac6facb630ca7e9a6ab4125b292203fe2bb6687 - path: aien-protocols - - - name: Setup Sibling Dependencies - run: | - mkdir -p ../aien-protocols - cp -r aien-protocols/* ../aien-protocols/ - name: Install Stable Rust Toolchain uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d02dcff3..d7ed6972 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,16 +30,6 @@ jobs: - name: Checkout Source uses: actions/checkout@v4 - - name: Checkout pinned protocols - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - ref: 7ac6facb630ca7e9a6ab4125b292203fe2bb6687 - path: protocols-checkout - - - name: Place sibling dependency - run: mv protocols-checkout ../aien-protocols - - name: Install Rust Toolchain uses: dtolnay/rust-toolchain@stable with: diff --git a/.github/workflows/verify-closure.yml b/.github/workflows/verify-closure.yml index 2cb618c9..7db2b08b 100644 --- a/.github/workflows/verify-closure.yml +++ b/.github/workflows/verify-closure.yml @@ -26,17 +26,6 @@ jobs: - name: Checkout Source uses: actions/checkout@v4 - - name: Checkout Sibling Protocols Dependency - uses: actions/checkout@v4 - with: - repository: aien-dev/aien-protocols - ref: 7ac6facb630ca7e9a6ab4125b292203fe2bb6687 - path: aien-protocols - - - name: Setup Sibling Dependencies - run: | - mkdir -p ../aien-protocols - cp -r aien-protocols/* ../aien-protocols/ - name: Install Stable Rust Toolchain uses: dtolnay/rust-toolchain@stable diff --git a/Cargo.lock b/Cargo.lock index de02aa82..556c9ad7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -87,6 +87,7 @@ dependencies = [ [[package]] name = "aien-evaluation-protocol" version = "0.1.0" +source = "git+https://github.com/aien-dev/aien-protocols?rev=7ac6facb630ca7e9a6ab4125b292203fe2bb6687#7ac6facb630ca7e9a6ab4125b292203fe2bb6687" dependencies = [ "aien-protocol-types", "aien-provenance", @@ -201,6 +202,7 @@ dependencies = [ [[package]] name = "aien-probe" version = "0.1.0" +source = "git+https://github.com/aien-dev/aien-protocols?rev=7ac6facb630ca7e9a6ab4125b292203fe2bb6687#7ac6facb630ca7e9a6ab4125b292203fe2bb6687" dependencies = [ "aien-evaluation-protocol", "aien-protocol-types", @@ -227,6 +229,7 @@ dependencies = [ [[package]] name = "aien-protocol-types" version = "0.1.0" +source = "git+https://github.com/aien-dev/aien-protocols?rev=7ac6facb630ca7e9a6ab4125b292203fe2bb6687#7ac6facb630ca7e9a6ab4125b292203fe2bb6687" dependencies = [ "hex", "serde", @@ -238,6 +241,7 @@ dependencies = [ [[package]] name = "aien-provenance" version = "0.1.0" +source = "git+https://github.com/aien-dev/aien-protocols?rev=7ac6facb630ca7e9a6ab4125b292203fe2bb6687#7ac6facb630ca7e9a6ab4125b292203fe2bb6687" dependencies = [ "aien-protocol-types", "bitflags 2.13.2", @@ -4399,7 +4403,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys 0.61.2", diff --git a/crates/spark-harvester/Cargo.toml b/crates/spark-harvester/Cargo.toml index c20fdf7b..3ee452ad 100644 --- a/crates/spark-harvester/Cargo.toml +++ b/crates/spark-harvester/Cargo.toml @@ -22,8 +22,8 @@ thiserror = "1.0" bitflags = { version = "2.5", features = ["serde"] } p256 = { version = "0.14.0", features = ["ecdsa", "pem"] } hex = "0.4" -aien-protocol-types = { path = "../../../aien-protocols/crates/aien-protocol-types" } -aien-provenance = { path = "../../../aien-protocols/crates/aien-provenance" } +aien-protocol-types = { git = "https://github.com/aien-dev/aien-protocols", rev = "7ac6facb630ca7e9a6ab4125b292203fe2bb6687" } +aien-provenance = { git = "https://github.com/aien-dev/aien-protocols", rev = "7ac6facb630ca7e9a6ab4125b292203fe2bb6687" } [dev-dependencies] tempfile = "3.17" diff --git a/crates/spark-mail-rs/Cargo.toml b/crates/spark-mail-rs/Cargo.toml index c98a7269..d98a9b5e 100644 --- a/crates/spark-mail-rs/Cargo.toml +++ b/crates/spark-mail-rs/Cargo.toml @@ -23,7 +23,7 @@ imap = "2.4" native-tls = "0.2" lettre = { version = "0.11", default-features = false, features = ["builder", "smtp-transport", "native-tls", "hostname", "pool"] } mailparse = "0.15" -aien-probe = { path = "../../../aien-protocols/crates/aien-probe" } +aien-probe = { git = "https://github.com/aien-dev/aien-protocols", rev = "7ac6facb630ca7e9a6ab4125b292203fe2bb6687" } cortex-rs = { path = "../cortex-rs" } [[bin]] diff --git a/install.sh b/install.sh index 5f63021e..112ee48d 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,6 @@ echo " ⚡ AIEN Sovereign Stack: Universal Developer Installer " echo "==================================================================" # Run from a checkout or bootstrap one when the script is piped to Bash. -PROTOCOLS_REV="7ac6facb630ca7e9a6ab4125b292203fe2bb6687" INSTALL_WORKSPACE="" if [[ -n "${AIEN_SOURCE_DIR:-}" ]]; then SOURCE_ROOT="$(cd "$AIEN_SOURCE_DIR" && pwd)" @@ -26,15 +25,6 @@ else SOURCE_ROOT="$INSTALL_WORKSPACE/core" fi [[ -f "$SOURCE_ROOT/Cargo.toml" ]] || { echo "AIEN source manifest is missing" >&2; exit 1; } -PROTOCOLS_ROOT="$(dirname "$SOURCE_ROOT")/aien-protocols" -if [[ ! -e "$PROTOCOLS_ROOT" ]]; then - git clone --quiet https://github.com/aien-dev/aien-protocols.git "$PROTOCOLS_ROOT" - git -C "$PROTOCOLS_ROOT" checkout --quiet "$PROTOCOLS_REV" -fi -[[ "$(git -C "$PROTOCOLS_ROOT" rev-parse HEAD)" = "$PROTOCOLS_REV" ]] || { - echo "Sibling aien-protocols must be at $PROTOCOLS_REV; existing checkout was preserved" >&2 - exit 1 -} cd "$SOURCE_ROOT" echo "[*] Source commit: $(git rev-parse HEAD)" diff --git a/scripts/prefill-gate/fails-on-main.sh b/scripts/prefill-gate/fails-on-main.sh index 4e795d00..cf585deb 100755 --- a/scripts/prefill-gate/fails-on-main.sh +++ b/scripts/prefill-gate/fails-on-main.sh @@ -8,8 +8,8 @@ # Exit 0 ONLY when every test fails on the base ref with that marker. A test # that passes on main, or fails for another reason (build error), exits 1. # -# The temporary worktree is created as a sibling of this checkout so the -# workspace path dependencies (../aien-protocols) resolve, and is removed on exit. +# The temporary worktree is created as a sibling of this checkout (kept out of +# the repository tree), and is removed on exit. # # Usage: bash scripts/prefill-gate/fails-on-main.sh [base-ref] set -u diff --git a/scripts/test-install.sh b/scripts/test-install.sh index c9f2befb..4ddc8245 100755 --- a/scripts/test-install.sh +++ b/scripts/test-install.sh @@ -5,8 +5,10 @@ set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -PROTOCOLS_REV="$(sed -n 's/^PROTOCOLS_REV="\([0-9a-f]\{40\}\)"$/\1/p' "$ROOT/install.sh")" -[[ -n "$PROTOCOLS_REV" ]] || { echo "FAIL: PROTOCOLS_REV not found in install.sh" >&2; exit 1; } +# aien-protocols is a git dependency pinned by revision in Cargo.lock, not a sibling checkout. +PROTOCOLS_REV="$(sed -n 's/^source = "git+https:\/\/github.com\/aien-dev\/aien-protocols?rev=\([0-9a-f]\{40\}\)#.*"$/\1/p' "$ROOT/Cargo.lock" | sort -u)" +[[ $(printf '%s\n' "$PROTOCOLS_REV" | grep -c .) -eq 1 ]] || { echo "FAIL: Cargo.lock must pin aien-protocols to exactly one revision" >&2; exit 1; } +SOURCE_REV="0123456789abcdef0123456789abcdef01234567" WORK="$(mktemp -d "${TMPDIR:-/tmp}/aien-test-install.XXXXXX")" trap 'rm -rf "$WORK"' EXIT @@ -31,10 +33,10 @@ case "\$1" in ;; -C) case "\$3" in - rev-parse) echo "$PROTOCOLS_REV" ;; + rev-parse) echo "$SOURCE_REV" ;; esac ;; - rev-parse) echo "$PROTOCOLS_REV" ;; + rev-parse) echo "$SOURCE_REV" ;; config) if [[ "\${!#}" == user.name ]]; then echo "Fixture Operator"; else echo "fixture@example.test"; fi ;; @@ -79,7 +81,7 @@ done [[ -f "$WORK/config/operator.toml" ]] || fail "operator.toml was not generated" grep -q '^name = "Fixture Operator"$' "$WORK/config/operator.toml" || fail "operator.toml lacks git identity" grep -q 'clone --quiet https://github.com/aien-dev/aien-sovereign-core.git' "$WORK/git.calls" || fail "installer did not clone the core repository" -grep -q "checkout --quiet $PROTOCOLS_REV" "$WORK/git.calls" || fail "installer did not pin aien-protocols" +! grep -q "aien-protocols" "$WORK/git.calls" || fail "installer must not clone aien-protocols (it is a pinned git dependency in Cargo.lock)" [[ -z "$(ls -A "$WORK/tmp")" ]] || fail "installer left its temporary checkout behind" [[ -z "$(ls -A "$WORK/cwd")" ]] || fail "installer wrote into the caller's working directory"