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

test: verify music video dependency schema compatibility (#9349)

Adam Eivyc90fa06b1479
diff --git a/server/lib/schemaVersions.test.js b/server/lib/schemaVersions.test.js
index 9c55da4693..06a853a57a 100644
--- a/server/lib/schemaVersions.test.js
+++ b/server/lib/schemaVersions.test.js
@@ -64,11 +64,13 @@ describe('PORTOS_SCHEMA_VERSIONS', () => {
});
describe('buildPortosMeta', () => {
- it('rejects temporal-evidence projects on a peer that only knows shot intent', async () => {
+ it('rejects dependency-evidence projects on peers that only know shot intent or temporal evidence', async () => {
const meta = await buildPortosMeta();
- expect(meta.schemaVersions.musicVideoProjects).toBe(14);
- expect(compareSchemaVersions(meta.schemaVersions, { ...meta.schemaVersions, musicVideoProjects: 13 }).ahead)
- .toContainEqual({ category: 'musicVideoProjects', senderV: 14, receiverV: 13 });
+ expect(meta.schemaVersions.musicVideoProjects).toBe(15);
+ for (const receiverV of [13, 14]) {
+ expect(compareSchemaVersions(meta.schemaVersions, { ...meta.schemaVersions, musicVideoProjects: receiverV }).ahead)
+ .toContainEqual({ category: 'musicVideoProjects', senderV: 15, receiverV });
+ }
});
it('returns { portosVersion, schemaVersions } with the live registry', async () => {