Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(dep-audit): snapshot and restore lockfiles rewritten by tinyanalyzer

Steven Enamakelf1da47f6a392
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index 3b6caf0c32..72ae6bf3f8 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -1491,7 +1491,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.2",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1800,7 +1800,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -2702,7 +2702,7 @@ dependencies = [
"tokio",
"tower-service",
"tracing",
- "windows-registry",
+ "windows-registry 0.6.1",
]
[[package]]
@@ -3577,7 +3577,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3751,7 +3751,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4296,11 +4296,9 @@ dependencies = [
"tar",
"tempfile",
"thiserror 2.0.20",
- "tinyagents-definition",
"tinyagents-graph",
"tinyagents-harness",
"tinyagents-language",
- "tinyagents-orchestration",
"tinyagents-registry",
"tinyagents-session",
"tinybus",
@@ -4329,7 +4327,6 @@ dependencies = [
"tinyruntime-bus",
"tinyskills",
"tinytools",
- "tinytools-agent",
"tinyvoice-bus",
"tinywallet-bus",
"tokio",
@@ -5024,7 +5021,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5441,7 +5438,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5499,7 +5496,7 @@ dependencies = [
"security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6148,7 +6145,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6428,7 +6425,7 @@ dependencies = [
"libc",
"memchr",
"ntapi",
- "windows 0.54.0",
+ "windows 0.57.0",
]
[[package]]
@@ -6676,7 +6673,7 @@ dependencies = [
"thiserror 2.0.20",
"tracing",
"url",
- "windows-registry",
+ "windows-registry 0.5.3",
"windows-result 0.3.4",
]
@@ -6903,10 +6900,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
- "getrandom 0.3.4",
+ "getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7020,19 +7017,10 @@ dependencies = [
"crunchy",
]
-[[package]]
-name = "tinyagents-definition"
-version = "2.1.2"
-dependencies = [
- "async-trait",
- "serde",
-]
-
[[package]]
name = "tinyagents-graph"
version = "2.1.2"
dependencies = [
- "anyhow",
"async-trait",
"chrono",
"futures",
@@ -7045,7 +7033,6 @@ dependencies = [
"tinyagents-language",
"tinyagents-tracing",
"tinyinference-llm",
- "tinytools",
"tokio",
]
@@ -7070,7 +7057,6 @@ dependencies = [
"sha2 0.11.0",
"tempfile",
"thiserror 2.0.20",
- "tinyagents-definition",
"tinyagents-tracing",
"tinyinference-embeddings",
"tinyinference-llm",
@@ -7090,45 +7076,23 @@ dependencies = [
"tinyagents-harness",
]
-[[package]]
-name = "tinyagents-orchestration"
-version = "2.1.2"
-dependencies = [
- "anyhow",
- "async-trait",
- "chrono",
- "parking_lot",
- "serde",
- "serde_json",
- "tinyagents-graph",
- "tinyagents-harness",
- "tinyagents-session",
- "tokio",
- "uuid",
-]
-
[[package]]
name = "tinyagents-registry"
version = "2.1.2"
dependencies = [
- "anyhow",
"serde",
"serde_json",
- "tinyagents-definition",
"tinyagents-graph",
"tinyagents-harness",
"tinyagents-language",
"tinyinference-llm",
- "tinytools",
]
[[package]]
name = "tinyagents-session"
version = "2.1.2"
dependencies = [
- "anyhow",
"chrono",
- "log",
"rusqlite",
"serde",
"serde_json",
@@ -7297,7 +7261,7 @@ dependencies = [
[[package]]
name = "tinyflows"
-version = "0.8.2"
+version = "0.8.3"
dependencies = [
"async-trait",
"futures-timer",
@@ -7381,7 +7345,7 @@ dependencies = [
[[package]]
name = "tinyinference-core"
-version = "0.3.0"
+version = "0.2.1"
dependencies = [
"anyhow",
"httpdate",
@@ -7390,7 +7354,7 @@ dependencies = [
[[package]]
name = "tinyinference-embeddings"
-version = "0.3.0"
+version = "0.2.1"
dependencies = [
"async-trait",
"once_cell",
@@ -7407,7 +7371,7 @@ dependencies = [
[[package]]
name = "tinyinference-llm"
-version = "0.3.0"
+version = "0.2.1"
dependencies = [
"async-trait",
"bytes",
@@ -7425,7 +7389,7 @@ dependencies = [
[[package]]
name = "tinyinference-local"
-version = "0.3.0"
+version = "0.2.1"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -7455,7 +7419,7 @@ dependencies = [
[[package]]
name = "tinyinference-providers"
-version = "0.3.0"
+version = "0.2.1"
dependencies = [
"async-trait",
"base64 0.22.1",
@@ -7474,7 +7438,7 @@ dependencies = [
[[package]]
name = "tinyinference-voice"
-version = "0.3.0"
+version = "0.2.1"
dependencies = [
"base64 0.22.1",
"log",
@@ -7605,7 +7569,7 @@ dependencies = [
[[package]]
name = "tinytools"
-version = "0.2.0"
+version = "0.1.0"
dependencies = [
"anyhow",
"async-trait",
@@ -7615,7 +7579,7 @@ dependencies = [
[[package]]
name = "tinytools-agent"
-version = "0.2.0"
+version = "0.1.0"
dependencies = [
"regex",
"serde",
@@ -8032,7 +7996,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -8104,7 +8068,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -8692,7 +8656,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.48.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -8726,6 +8690,16 @@ dependencies = [
"windows-targets 0.52.6",
]
+[[package]]
+name = "windows"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143"
+dependencies = [
+ "windows-core 0.57.0",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows"
version = "0.58.0"
@@ -8768,6 +8742,18 @@ dependencies = [
"windows-targets 0.52.6",
]
+[[package]]
+name = "windows-core"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d"
+dependencies = [
+ "windows-implement 0.57.0",
+ "windows-interface 0.57.0",
+ "windows-result 0.1.2",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "windows-core"
version = "0.58.0"
@@ -8818,6 +8804,17 @@ dependencies = [
"windows-threading",
]
+[[package]]
+name = "windows-implement"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
[[package]]
name = "windows-implement"
version = "0.58.0"
@@ -8840,6 +8837,17 @@ dependencies = [
"syn 2.0.119",
]
+[[package]]
+name = "windows-interface"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
[[package]]
name = "windows-interface"
version = "0.58.0"
@@ -8895,6 +8903,17 @@ dependencies = [
"windows-strings 0.4.2",
]
+[[package]]
+name = "windows-registry"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
+dependencies = [
+ "windows-link 0.2.1",
+ "windows-result 0.4.1",
+ "windows-strings 0.5.1",
+]
+
[[package]]
name = "windows-result"
version = "0.1.2"
diff --git a/scripts/dep-audit/run.sh b/scripts/dep-audit/run.sh
index 049c2002b0..7a10b38feb 100755
--- a/scripts/dep-audit/run.sh
+++ b/scripts/dep-audit/run.sh
@@ -124,6 +124,7 @@ done < <(git submodule status --recursive | sort -k2,2 | awk '{ print $1, $2 }'
# ---------------------------------------------------------------------------
analyzed=0
failed=()
+rewritten_locks=()
while IFS=$'\t' read -r name path sha remote; do
if [[ -n "$TARGET_RE" ]] && ! [[ "$name" =~ $TARGET_RE ]]; then
continue
@@ -131,6 +132,17 @@ while IFS=$'\t' read -r name path sha remote; do
json="$OUT_DIR/$name.json"
log="$OUT_DIR/$name.log"
[[ $VERBOSE -eq 1 ]] && echo "dep-audit: tinyanalyzer $path -> $json"
+ # tinyanalyzer runs `cargo metadata`, which silently rewrites a Cargo.lock
+ # that is stale relative to its manifest (the app crate's lockfile is the
+ # usual victim). An audit must not leave edits behind, so the lockfile is
+ # snapshotted and put back if the run changed it.
+ lock="$path/Cargo.lock"
+ lock_backup=""
+ if [[ -f "$lock" ]]; then
+ lock_backup="$OUT_DIR/.lock-backup/$name.Cargo.lock"
+ mkdir -p "$(dirname "$lock_backup")"
+ cp "$lock" "$lock_backup"
+ fi
# --no-dead-code and --hide-tests keep the run cheap; the dependency graph is
# what we are after and it does not depend on either.
if tinyanalyzer "$path" --config "$CONFIG" --output json --no-dead-code --hide-tests \
@@ -142,6 +154,10 @@ while IFS=$'\t' read -r name path sha remote; do
printf 'dep-audit: %-28s FAILED (see %s)\n' "$name" "$log" >&2
rm -f "$json"
fi
+ if [[ -n "$lock_backup" ]] && ! cmp -s "$lock" "$lock_backup"; then
+ cp "$lock_backup" "$lock"
+ rewritten_locks+=("$lock")
+ fi
done < "$TARGETS_TSV"
echo "dep-audit: analyzed $analyzed target(s) into $OUT_DIR"
@@ -152,6 +168,11 @@ fi
if ((${#failed[@]})); then
echo "dep-audit: ${#failed[@]} target(s) failed: ${failed[*]}" >&2
fi
+if ((${#rewritten_locks[@]})); then
+ echo "dep-audit: cargo metadata re-resolved ${#rewritten_locks[@]} lockfile(s); restored them. Each is stale" \
+ "relative to its manifest — refresh it deliberately (cargo update / generate-lockfile) if that is wanted:"
+ printf ' %s\n' "${rewritten_locks[@]}"
+fi
if [[ $WRITE_REPORT -eq 1 ]]; then
node "$ROOT/scripts/dep-audit/report.mjs" --reports "$OUT_DIR" --top "$TOP" \