Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/role_contradiction/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ mod role;

/// Fail-closed role-contradiction errors.
pub use error::RoleContradictionError;
/// Closed vocabulary of commercial roles that can change over time.
pub use role::ContextualRole;
/// Fraction of recovered contextual roles that match known truth.
pub use role::identity_recovery_rate;
/// Refuse a contradictory customer/competitor pair in one group.
Expand All @@ -20,5 +22,3 @@ pub use role::refuse_contradictory_roles;
pub use role::refuse_role_as_entity_class;
/// Return whether two roles contradict in the same group.
pub use role::roles_contradict;
/// Closed vocabulary of commercial roles that can change over time.
pub use role::ContextualRole;
4 changes: 2 additions & 2 deletions crates/role_contradiction/src/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ pub fn identity_recovery_rate(
#[cfg(test)]
mod tests {
use super::{
identity_recovery_rate, refuse_contradictory_roles, refuse_role_as_entity_class,
roles_contradict, ContextualRole,
ContextualRole, identity_recovery_rate, refuse_contradictory_roles,
refuse_role_as_entity_class, roles_contradict,
};
use crate::RoleContradictionError;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Customer and competitor cannot occupy the same group at once.

use role_contradiction::{
identity_recovery_rate, refuse_contradictory_roles, refuse_role_as_entity_class,
roles_contradict, ContextualRole, RoleContradictionError,
ContextualRole, RoleContradictionError, identity_recovery_rate, refuse_contradictory_roles,
refuse_role_as_entity_class, roles_contradict,
};

#[test]
Expand Down
5 changes: 4 additions & 1 deletion tests/quality/test_hourly_nim_product_development.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_hourly_prompt_and_verifier_keep_commercial_quality_gates(self) -> None:
"product-technical-gap-baseline.md",
"gap id",
"never invent weights",
"exactly one bounded increment",
"exactly one bounded pull request",
"standalone",
"modular MSA",
"ContextualWisdomLab/.github",
Expand All @@ -196,6 +196,9 @@ def test_hourly_prompt_and_verifier_keep_commercial_quality_gates(self) -> None:
"Do not release",
"Do not deploy",
"Rust",
"audit_event",
"try_record",
"OperationalLogRecord::new",
):
self.assertIn(token.casefold(), normalized)

Expand Down
Loading