Skip to content

Commit dfd60cf

Browse files
committed
fix(ci): rustfmt the probe test, regenerate the board entries index
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G22yT6htkcdyXsihxxXdrg
1 parent f56ddba commit dfd60cf

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

‎.claude/board/entries/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ index row, (3) no duplicate entry id. Checks 1 and 2 are deliberately
2525
opposite directions; the stranding this convention prevents shows up in
2626
exactly one of them, never both.
2727

28-
429 entries, 2026-08-06 .. 2026-10-22.
28+
430 entries, 2026-08-06 .. 2026-10-22.
2929

3030
| date | entry id | finding | file |
3131
|---|---|---|---|
32+
| 2026-10-22 | `pal256-hebbian-overlay-plasticity` | | [2026-10-22-pal256-hebbian-overlay-plasticity.md](2026-10-22-pal256-hebbian-overlay-plasticity.md) |
3233
| 2026-10-22 | `math-compiler-stage-b-e1` | | [2026-10-22-math-compiler-stage-b-e1.md](2026-10-22-math-compiler-stage-b-e1.md) |
3334
| 2026-10-22 | `math-compiler-gap-matrix` | | [2026-10-22-math-compiler-gap-matrix.md](2026-10-22-math-compiler-gap-matrix.md) |
3435
| 2026-10-22 | `D-MPS-9` | | [2026-10-22-d-mps-9-mork-oracle.md](2026-10-22-d-mps-9-mork-oracle.md) |

‎crates/causal-edge/tests/palette256_hebbian_overlay_probe.rs‎

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,34 @@ struct Overlay {
66
seen_sources: u64,
77
}
88
impl Overlay {
9-
fn apply(&mut self, source_id: u8, pre: f64, post: f64, eta: f64) -> Result<bool, &'static str> {
10-
if source_id >= 64 || !pre.is_finite() || !post.is_finite()
11-
|| !eta.is_finite() || !(0.0..=1.0).contains(&eta) {
9+
fn apply(
10+
&mut self,
11+
source_id: u8,
12+
pre: f64,
13+
post: f64,
14+
eta: f64,
15+
) -> Result<bool, &'static str> {
16+
if source_id >= 64
17+
|| !pre.is_finite()
18+
|| !post.is_finite()
19+
|| !eta.is_finite()
20+
|| !(0.0..=1.0).contains(&eta)
21+
{
1222
return Err("invalid update contract");
1323
}
1424
let source = 1_u64 << source_id;
15-
if self.seen_sources & source != 0 { return Ok(false); }
25+
if self.seen_sources & source != 0 {
26+
return Ok(false);
27+
}
1628
// Hypothesis under test, NOT NARS revision or a proven Bayesian update.
1729
let damping = 1.0 - self.latent.abs().tanh();
1830
self.latent = (self.latent + eta * pre * post * damping).clamp(-8.0, 8.0);
1931
self.seen_sources |= source;
2032
Ok(true)
2133
}
22-
fn bounded_readout(&self) -> f64 { self.latent.tanh() }
34+
fn bounded_readout(&self) -> f64 {
35+
self.latent.tanh()
36+
}
2337
}
2438
#[test]
2539
fn repeated_eligible_updates_remain_bounded_and_do_not_move_reference() {
@@ -41,5 +55,8 @@ fn a_duplicate_root_does_not_reinforce_the_synapse_again() {
4155
assert!(!synapse.apply(4, 0.8, 0.9, 0.1).unwrap());
4256
assert_eq!(synapse.latent, first);
4357
assert!(synapse.apply(5, -0.8, 0.9, 0.1).unwrap());
44-
assert!(synapse.latent < first, "anticorrelated activation must decrease the overlay");
58+
assert!(
59+
synapse.latent < first,
60+
"anticorrelated activation must decrease the overlay"
61+
);
4562
}

0 commit comments

Comments
 (0)