artifactize-core 0.25.0

The library behind artifactize: Artifacts, evals, reviews, the monitor and review models, and the shared operations every interface calls.
Documentation
//! HTTP lookup shape errors remain per-entry, never poison a valid neighbor.
use super::*;
use crate::llm::tests::Server;
use rig_core::test_utils::MockHttpResponse;

#[tokio::test]
async fn malformed_lookup_entries_are_typed_errors_next_to_valid_records() {
    let good = json!({
        "schema":2,
        "key":"a".repeat(64),
        "evalDefHash":"b".repeat(64),
        "fingerprints":{},
        "verdict":"GREEN",
        "evalId":"app/check",
        "runId":"run-1",
        "requestId":"run-1-1",
        "executionId":"execution-1",
        "profile":{"kind":"runtime","command":crate::test_os::true_program(),"args":[]},
        "result":{"verdict":"GREEN"},
        "usage":null,
        "startedAt":"2026-01-01T00:00:00Z",
        "completedAt":"2026-01-01T00:00:01Z",
    });
    let body = json!({"entries":[{"unexpected":"shape"},good,17]}).to_string();
    Server::run(vec![MockHttpResponse::success(body)], async |server| {
        let remote = Remote {
            url: parse_url(&server.base).unwrap(),
            share: Share::Summary,
            token: Credential::Environment("fixture-only-token".to_owned().try_into().unwrap()),
            client: OnceLock::new(),
        };
        let entries = remote
            .lookup(&["a".repeat(64).parse().unwrap()])
            .await
            .unwrap();
        assert_eq!(entries.len(), 3);
        assert!(entries[0].is_err());
        assert_eq!(entries[1].as_ref().unwrap().request_id.as_str(), "run-1-1");
        assert!(entries[2].is_err());
    })
    .await;
}