diff --git a/.agents/skills/test-oracles/SKILL.md b/.agents/skills/test-oracles/SKILL.md index 2867e59a..0dcf53a7 100644 --- a/.agents/skills/test-oracles/SKILL.md +++ b/.agents/skills/test-oracles/SKILL.md @@ -18,14 +18,14 @@ Write property, fuzz, and security tests that decide accept or reject with an in An oracle predicts the correct outcome from the input alone (or from a simpler trusted model), then the test checks the code matches that prediction. -| Oracle type | Example | -| -------------- | ------------------------------------------- | -| Accept/reject | Empty room name must raise ValueError | +| Oracle type | Example | +| -------------- | ------------------------------------------------ | +| Accept/reject | Empty room name must raise ValueError | | Origin parse | `http://127.0.0.1:9337@example.com` is not local | -| Round-trip | encode(decode(x)) == x when decode succeeds | -| Jail | Successful path stays under storage root | -| Closed reasons | Error message is one of a fixed set | -| Membership | After PART by non-member, no PARTED fanout | +| Round-trip | encode(decode(x)) == x when decode succeeds | +| Jail | Successful path stays under storage root | +| Closed reasons | Error message is one of a fixed set | +| Membership | After PART by non-member, no PARTED fanout | ## Hard refuse (soft fuzz) diff --git a/meshchatx.rsm b/meshchatx.rsm index abf95081..c89b0b2b 100644 Binary files a/meshchatx.rsm and b/meshchatx.rsm differ diff --git a/tests/frontend/networkVisualiserPlanet.test.js b/tests/frontend/networkVisualiserPlanet.test.js index 08d47486..ad08f458 100644 --- a/tests/frontend/networkVisualiserPlanet.test.js +++ b/tests/frontend/networkVisualiserPlanet.test.js @@ -161,9 +161,9 @@ describe("networkVisualiserPlanet", () => { expect(out.pick.some((p) => p.id === "me")).toBe(true); expect(out.pick.some((p) => p.id === "eth0")).toBe(true); expect(out.projected[1].kind).toBe(PLANET_KIND_IFACE_ON); - expect(pickPlanetNode(out.pick, out.pick.find((p) => p.id === "me").sx, out.pick.find((p) => p.id === "me").sy, 24)).toBe( - "me" - ); + expect( + pickPlanetNode(out.pick, out.pick.find((p) => p.id === "me").sx, out.pick.find((p) => p.id === "me").sy, 24) + ).toBe("me"); expect(pickPlanetNode(out.pick, -400, -400, 8)).toBeNull(); }); @@ -187,7 +187,9 @@ describe("networkVisualiserPlanet", () => { expect(out.planets).toHaveLength(2); expect(out.planets[0].id).toBe("eth0"); expect(out.planets[1].id).toBe("wifi"); - expect(Math.hypot(out.planets[0].cx - out.planets[1].cx, out.planets[0].cz - out.planets[1].cz)).toBeGreaterThan(1); + expect( + Math.hypot(out.planets[0].cx - out.planets[1].cx, out.planets[0].cz - out.planets[1].cz) + ).toBeGreaterThan(1); }); it("marks a far-side peer as back-facing on its interface globe", () => { @@ -283,13 +285,7 @@ describe("networkVisualiserPlanet", () => { packNode(nodes, 3, 230, 10, 22); packNode(nodes, 4, -230, 10, 22); const ids = ["me", "eth0", "wifi", "a", "b"]; - const kinds = [ - PLANET_KIND_ME, - PLANET_KIND_IFACE_ON, - PLANET_KIND_IFACE_ON, - PLANET_KIND_PEER, - PLANET_KIND_PEER, - ]; + const kinds = [PLANET_KIND_ME, PLANET_KIND_IFACE_ON, PLANET_KIND_IFACE_ON, PLANET_KIND_PEER, PLANET_KIND_PEER]; const base = { nodes, width: 800,