Skip to content
10 changes: 10 additions & 0 deletions nixos/environment/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,16 @@ in
doCheck = false;
});
})
# cargo-llvm-cov 0.9.0: its integration tests spawn LLVM-instrumented
# test binaries that SIGSEGV under the pinned Rust 1.99 toolchain in
# the sandbox (14 tests fail, verified 2026-11-14 against the drv
# log); the tool itself builds and runs — the failing suite is
# upstreams, not the fleets.
(final: prev: {
cargo-llvm-cov = prev.cargo-llvm-cov.overrideAttrs (_: {
doCheck = false;
});
})
# vtk 9.5.2 (FreeCAD's dependency): nixos-unstable 2026-10-10 added a
# postPatch that renames VTK's vendored pegtl module from VTK::pegtl to
# VTK::vtkpegtl, but left the 9.5.x CMake switch on the old module name.
Expand Down
18 changes: 18 additions & 0 deletions pkgs/atlas-search/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ if craneLib != null then
src = packageSrc;
inherit cargoArtifacts meta;

# The server tests run jobs end to end, and every job writes
# traces under home_dir()/.local/state/atlas-search (server.rs).
# The build sandbox's HOME is /homeless-shelter (unwritable), so
# without this every server::tests job fails on the trace sink
# and the suite goes red (verified 2026-11-14).
preCheck = ''
export HOME=$TMPDIR
'';

# Preserve the buildRustPackage behaviour this package had:
# the test suite runs in the check phase, and the smoke
# installCheck runs against the installed tree.
Expand All @@ -137,6 +146,15 @@ else

nativeInstallCheckInputs = [ python3 ];
doInstallCheck = true;
# The server tests run jobs end to end, and every job writes
# traces under home_dir()/.local/state/atlas-search (server.rs).
# The build sandbox's HOME is /homeless-shelter (unwritable), so
# without this every server::tests job fails on the trace sink
# and the suite goes red (verified 2026-11-14).
preCheck = ''
export HOME=$TMPDIR
'';

# The smoke: fixture FTS-only + embedded queries byte-compared
# with the recorded Python envelopes, plus the closure-ONNX
# load probe (an empty model dir must fail at the tokenizer,
Expand Down
5 changes: 5 additions & 0 deletions pkgs/atlas-search/fixtures/smoke_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ def main() -> int:
got = json.loads(r.stdout)
except json.JSONDecodeError as e:
return fail(f"{name}: stdout not JSON: {e}")
# query_id is a per-run random UUID (slice 2) and is not
# part of the recorded identity; drop it before comparing.
# Everything else must stay byte-identical to the Python
# recording — that identity is the point of this check.
got.pop("query_id", None)
if got != cases[name]["envelope"]:
return fail(
f"{name}: envelope differs from the recorded Python envelope"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/id/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Enter the Nix dev shell for all required tools:
nix develop
```

This provides: Rust 1.99.0, clippy, rustfmt, cargo-llvm-cov, cargo-audit, cargo-machete, just, Bun, TypeScript, chromium, firefox.
This provides: Rust 1.99.1, clippy, rustfmt, cargo-llvm-cov, cargo-audit, cargo-machete, just, Bun, TypeScript, chromium, firefox.

### Testing

Expand Down
2 changes: 1 addition & 1 deletion pkgs/id/WEB.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Open http://localhost:3000 in your browser (default port).

The Nix dev shell provides all required tools:

- Rust 1.99.0
- Rust 1.99.1
- Bun (for TypeScript bundling)
- TypeScript
- Chromium and Firefox (for E2E tests)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/id/crates/id-cli/src/commands/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2512,7 +2512,7 @@ mod tests {
.join("\n");
assert_eq!(
check_contract(&good).unwrap(),
"3 frames conform to shell contract v1.7"
"3 frames conform to shell contract v1.8"
);
let bad = [
r#"{"from": "client", "frame": {"type": "chat", "text": "too early"}}"#,
Expand Down
19 changes: 15 additions & 4 deletions pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]

use id_core::canonical_cbor::{
decode_canonical, encode_canonical, validate_record, CborError, RecordSpec, Value,
CborError, RecordSpec, Value, decode_canonical, encode_canonical, validate_record,
};

fn hex(bytes: &[u8]) -> String {
Expand Down Expand Up @@ -63,7 +63,10 @@ fn golden_vectors() -> Vec<(Value, &'static str)> {
// Insertion order does not matter: keys sort by encoded
// bytes, so {"b":2,"a":1} encodes exactly as {"a":1,"b":2}.
(
Value::Map(vec![(text("b"), Value::UInt(2)), (text("a"), Value::UInt(1))]),
Value::Map(vec![
(text("b"), Value::UInt(2)),
(text("a"), Value::UInt(1)),
]),
"a2616101616202",
),
// A sidecar-shaped record: nested map, bytes, negative
Expand All @@ -89,7 +92,11 @@ fn golden_vectors_encode_and_decode_byte_exactly() {
// that is key-sorted order regardless of construction
// order, so compare re-encodings as well as values where
// construction order already was canonical.
assert_eq!(hex(&encode_canonical(&decoded).unwrap()), want_hex, "round-trip {want_hex}");
assert_eq!(
hex(&encode_canonical(&decoded).unwrap()),
want_hex,
"round-trip {want_hex}"
);
}
}

Expand Down Expand Up @@ -119,7 +126,11 @@ fn ambiguous_encodings_reject_with_typed_errors() {
("61ff", CborError::InvalidUtf8),
];
for (input, want) in cases {
assert_eq!(decode_canonical(&unhex(input)).unwrap_err(), want, "reject {input}");
assert_eq!(
decode_canonical(&unhex(input)).unwrap_err(),
want,
"reject {input}"
);
}
}

Expand Down
4 changes: 2 additions & 2 deletions pkgs/id/examples/roc-world/host/build.zig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const std = @import("std");

pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .small });
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSmall });
const target = b.resolveTargetQuery(.{ .cpu_arch = .wasm32, .os_tag = .freestanding, .abi = .none });
const obj = b.addObject(.{
.name = "host",
.root_module = b.createModule(.{
.root_source_file = b.path("src/host.zig"),
.target = target,
.optimize = optimize,
.strip = optimize != .debug,
.strip = optimize != .Debug,
.pic = true,
}),
});
Expand Down
12 changes: 7 additions & 5 deletions pkgs/id/tests/admission_path_coverage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Coverage oracle for slice 9110-13 (issue #10177): every normal
//! retained-data path in `docs/operation-path-inventory.md` must map to
//! retained-data path in `tests/operation-path-inventory.md` must map to
//! a fixed gate and a bypass test, and any unmapped path blocks the
//! completeness claim.
//!
Expand All @@ -20,7 +20,7 @@ use std::fs;
use std::path::{Path, PathBuf};

/// Canonical path IDs for the 9110-13 inventory. Keep in exact sync
/// with `docs/operation-path-inventory.md`; the test fails on any
/// with `tests/operation-path-inventory.md`; the test fails on any
/// divergence in either direction.
const CANONICAL_PATH_IDS: &[&str] = &[
"P-BU-01",
Expand All @@ -47,7 +47,7 @@ fn manifest_dir() -> PathBuf {
}

fn inventory_text() -> String {
let path = manifest_dir().join("docs/operation-path-inventory.md");
let path = manifest_dir().join("tests/operation-path-inventory.md");
fs::read_to_string(&path)
.unwrap_or_else(|e| panic!("inventory must exist at {}: {e}", path.display()))
}
Expand Down Expand Up @@ -137,8 +137,10 @@ fn every_row_is_complete_and_anchored_to_source() {
);
}
assert!(
["ingress", "read", "write", "sync", "query", "stream", "bucket"]
.contains(&row.class.as_str()),
[
"ingress", "read", "write", "sync", "query", "stream", "bucket"
]
.contains(&row.class.as_str()),
"{}: unknown path class {}",
row.id,
row.class
Expand Down