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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: assert typed intent publication refusal [issue-10127]
[._.]/ Adam Eivydd296da469f0
diff --git a/server/services/peerExecutionLedger.db.test.js b/server/services/peerExecutionLedger.db.test.jsindex d827eb74b5..ade7aaf7cb 100644--- a/server/services/peerExecutionLedger.db.test.js+++ b/server/services/peerExecutionLedger.db.test.js@@ -70,7 +70,12 @@ describe.skipIf(!runDb)('receiver-local permanent execution consumption', () =>const faulty = createPeerExecutionLedger({ db: faultDb, dataDir: directory,authority: createPeerExecutionAuthority(directory, { io }) });const hooks = _createPeerExecutionRestore({ receiver: async () => faulty });- await expect(hooks.finishPeerExecutionRestore(id)).rejects.toThrow(/fixture/);+ const attempt = hooks.finishPeerExecutionRestore(id);+ if (boundary === 'directory-sync') {+ // Intent publication precedes JSON publication; its sync failure has the+ // same typed authority-acquisition refusal as an interrupted writer.+ await expect(attempt).rejects.toMatchObject({ code: 'PEER_EXECUTION_AUTHORITY_UNAVAILABLE', status: 503 });+ } else await expect(attempt).rejects.toThrow(/fixture/);expect(failed).toBe(true);// A different generic restore cannot adopt or steal this ownership.const restarted = createPeerExecutionLedger({ db, dataDir: directory });