Skip to content
Draft
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ All notable changes to TEPP are documented here. The format follows Keep a Chang

## [Unreleased]

- **Membership-posterior ICC analysis-run profile**: cutoff-safe `membership_posterior_icc_v1` binds `posterior_draw_point_estimate_mean`, nested ANOVA ICC, and Kish ESS, and refuses nested ICC for multiple-membership and cross-classified designs (`analysis_engine`). Not MMMC and not implemented-main.
- Removed the repository-local hourly PR-maintenance caller now covered by the central required scheduler, retired stale workflow registrations, narrowed documentation triggers, keyed PR concurrency by fixed workflow name, repository, and pull-request number without cancelling non-PR runs, and combined line/branch coverage on one sequential runner while preserving both 100% gates and diagnostics.

- `event_core` adds bounded Allen interval-consistency classification, atomic path-consistency closure, contradiction/resource refusals, and an explicit dependency-error fallback without claiming unrestricted global satisfiability.
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/analysis_engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ publish = false

[dependencies]
event_core = { path = "../event_core", version = "0.2.0" }
membership_core = { path = "../membership_core", version = "0.2.0" }
psychometric_core = { path = "../psychometric_core", version = "0.2.0" }
serde = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
Expand All @@ -25,7 +27,6 @@ uuid.workspace = true

[dev-dependencies]
corpus_split = { path = "../corpus_split", version = "0.2.0" }
membership_core = { path = "../membership_core", version = "0.2.0" }
relation_graph = { path = "../relation_graph", version = "0.2.0" }

[lints]
Expand Down
41 changes: 40 additions & 1 deletion crates/analysis_engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
//! through [`tepp_api`]. It deliberately does not claim latent-variable or topic
//! estimation authority; those estimators remain separate scientific crates.
//! estimation authority; it invokes estimators through their scientific crate
//! contracts and preserves their artifact meaning.
//! contracts and preserves their artifact meaning. Membership-posterior ICC
//! composition is invoked through [`membership_core`] and [`psychometric_core`]
//! and is not an MMMC sampler.

mod case_deletion_refit;
mod lineage_criterion;
mod membership_posterior_icc_artifact;
mod topic_context_posterior;
mod topic_lineage_artifact;

use membership_core::MembershipError;
use psychometric_core::PsychometricError;
use serde::Serialize;
use sha2::{Digest, Sha256};
use std::collections::BTreeSet;
Expand Down Expand Up @@ -46,6 +51,13 @@ pub use lineage_criterion::{
LineageCriterionFit, LineageCriterionFitError, LineageCriterionObservation,
fit_lineage_criterion_posteriors,
};
/// Membership-posterior ICC artifact and execution contracts.
pub use membership_posterior_icc_artifact::{
MEMBERSHIP_POSTERIOR_ICC_ARTIFACT_BYTE_LIMIT, MEMBERSHIP_POSTERIOR_ICC_ARTIFACT_SCHEMA_VERSION,
MEMBERSHIP_POSTERIOR_ICC_MODEL_CONTRACT_VERSION, MEMBERSHIP_POSTERIOR_ICC_OUTPUT_PROFILE,
MembershipPosteriorIccArtifact, MembershipPosteriorIccExecution,
MembershipPosteriorObservation, execute_membership_posterior_icc_run,
};
/// Bounded posterior topic-context producer contract and record types.
pub use topic_context_posterior::{
TOPIC_CONTEXT_POSTERIOR_BYTE_LIMIT, TOPIC_CONTEXT_POSTERIOR_SCHEMA_VERSION,
Expand Down Expand Up @@ -248,6 +260,12 @@ pub enum AnalysisEngineError {
TopicMeasurement(TopicMeasurementError),
/// A topic-lineage artifact violated its bounded schema or count invariants.
InvalidTopicLineageArtifact,
/// A psychometric recovery rejected the offered coordinates.
Psychometric(PsychometricError),
/// A membership-network estimator rejected the offered design or weights.
Membership(MembershipError),
/// A membership-posterior ICC artifact violated its bounded schema or counts.
InvalidMembershipPosteriorIccArtifact,
}

impl fmt::Display for AnalysisEngineError {
Expand All @@ -262,6 +280,11 @@ impl fmt::Display for AnalysisEngineError {
Self::LimitExceeded => "analysis corpus exceeded its execution bound",
Self::TopicMeasurement(error) => return error.fmt(formatter),
Self::InvalidTopicLineageArtifact => "invalid topic lineage artifact",
Self::Psychometric(error) => return error.fmt(formatter),
Self::Membership(error) => return error.fmt(formatter),
Self::InvalidMembershipPosteriorIccArtifact => {
"invalid membership-posterior ICC artifact"
}
};
formatter.write_str(message)
}
Expand All @@ -281,6 +304,18 @@ impl From<TopicMeasurementError> for AnalysisEngineError {
}
}

impl From<PsychometricError> for AnalysisEngineError {
fn from(error: PsychometricError) -> Self {
Self::Psychometric(error)
}
}

impl From<MembershipError> for AnalysisEngineError {
fn from(error: MembershipError) -> Self {
Self::Membership(error)
}
}

/// Execute the cutoff-safe temporal evidence readiness analysis.
///
/// Evidence whose `available_time` is later than the request cutoff is excluded
Expand Down Expand Up @@ -681,6 +716,10 @@ mod tests {
AnalysisEngineError::InvalidTopicLineageArtifact,
"invalid topic lineage artifact",
),
(
AnalysisEngineError::InvalidMembershipPosteriorIccArtifact,
"invalid membership-posterior ICC artifact",
),
];
for (error, message) in messages {
assert_eq!(error.to_string(), message);
Expand Down
Loading
Loading