Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77f13bd76f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let hyperplanes: Vec<Fingerprint> = (0..P) | ||
| .map(|i| Fingerprint::from_seed(0xPR0JECT10N + i as u64)) | ||
| .collect(); |
There was a problem hiding this comment.
Replace invalid projection seed literal
When the codebook feature is enabled, this module fails to compile because 0xPR0JECT10N is not a valid Rust numeric literal (non-hex digits like P/R/O). This prevents any build that includes the hierarchical codebook from succeeding; use a valid integer seed instead.
Useful? React with 👍 / 👎.
| let satisfaction = if success { 0.9 } else { 0.4 }; | ||
| let qualia = Qualia::from_metrics(0.2, 0.3, satisfaction); | ||
| let moment = MomentBuilder::new(&self.id, content).build().with_qualia(qualia); |
There was a problem hiding this comment.
Mark apply moments as Application
Calling LearningSession::apply currently creates a Moment with the builder’s default type (Encounter), because no MomentType::Application is set before build(). Any downstream logic that filters or analyzes by MomentType::Application will miss these moments, even though the session phase is Apply.
Useful? React with 👍 / 👎.
| let novelty = if breakthrough_count > 0 { 0.7 } else { 0.3 }; | ||
| let qualia = Qualia::from_metrics(novelty, 0.4, 0.8); | ||
| let moment = MomentBuilder::new(&self.id, reflection).build().with_qualia(qualia); |
There was a problem hiding this comment.
Mark meta_reflect moments as MetaReflection
Similarly, LearningSession::meta_reflect builds a moment without setting MomentType::MetaReflection, so the moment is recorded as Encounter. This means meta-reflection events cannot be distinguished from regular encounters, which breaks any filtering or metrics keyed on MomentType::MetaReflection.
Useful? React with 👍 / 👎.
No description provided.