Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.
42 lines
1.1 KiB
Rust
42 lines
1.1 KiB
Rust
use crate::source::shard_index_for_hash;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
/// A durable human/agent queue annotation, never semantic or execution evidence.
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct ReviewNote {
|
|
pub air_sha256: String,
|
|
pub reason: String,
|
|
pub reviewed_by: String,
|
|
}
|
|
|
|
impl ReviewNote {
|
|
pub fn validate(&self) -> Result<(), String> {
|
|
shard_index_for_hash(&self.air_sha256)?;
|
|
if self.reason.trim().is_empty() {
|
|
return Err("review reason must not be empty".into());
|
|
}
|
|
if self.reviewed_by.trim().is_empty() {
|
|
return Err("reviewed_by must not be empty".into());
|
|
}
|
|
Ok(())
|
|
}
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn review_notes_require_explicit_content() {
|
|
let mut note = ReviewNote {
|
|
air_sha256: "11".repeat(32),
|
|
reason: "requires an unsupported texture shape".into(),
|
|
reviewed_by: "test".into(),
|
|
};
|
|
assert!(note.validate().is_ok());
|
|
note.reason.clear();
|
|
assert!(note.validate().is_err());
|
|
}
|
|
}
|