Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

prove the foundation ledger mutex releases after a refused republish (#7631)

[._.]/ Adam Eivydd39086e476d
diff --git a/server/services/eidoverseFoundationLedger.test.js b/server/services/eidoverseFoundationLedger.test.js
index 79fbcc10b1..fce08d4e5e 100644
--- a/server/services/eidoverseFoundationLedger.test.js
+++ b/server/services/eidoverseFoundationLedger.test.js
@@ -350,6 +350,11 @@ describe('building on a foundation inherited from a peer (#7631)', () => {
// Nothing was written: a refusal that still saved the record would leave
// the republish one promote away.
expect(await getEidoverseFoundation('my-own-beacon')).toBeNull();
+
+ // The refusal is thrown from inside the ledger mutex, so a later write
+ // proves the lock was released rather than left held forever.
+ const unrelated = await record({ id: 'my-own-work', body: { affordance: { inspect: 'entirely my own' } } }, '2026-03-03T01:00:00.000Z');
+ expect(unrelated.derivedFrom).toBeNull();
});
it('records the same body as a DERIVATION and publishes the edge on the promote envelope', async () => {