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

address review (claude): pin the walkSet imported flag in tests

[._.]/ Adam Eivy2c3e6da613a7
diff --git a/server/services/sprites/walk.test.js b/server/services/sprites/walk.test.js
index b8efe544d0..3f2cf1340e 100644
--- a/server/services/sprites/walk.test.js
+++ b/server/services/sprites/walk.test.js
@@ -330,6 +330,8 @@ describe('approveWalkDirection', () => {
status: 'final',
characterId: id,
directionOrder: SPRITE_DIRECTIONS,
+ // A native walk set is NOT an import, so the client gets its Unlock button.
+ imported: false,
});
expect(Object.keys(state.walkSet.directions)).toHaveLength(8);
expect((await records.getRecord(id)).status).toBe('walk-complete');
@@ -390,6 +392,10 @@ describe('unlockWalkSet', () => {
selectionPath: `art-source/sprites/${id}/walk/${id}-walk-selection-v1.json`,
directions: {},
}));
+ // The client keys its Unlock affordance off this flag: a legacy import
+ // must surface imported:true so the button is hidden rather than offered
+ // and then 409'd.
+ expect((await getWalkState(id)).walkSet.imported).toBe(true);
await expect(unlockWalkSet(id)).rejects.toMatchObject({ code: 'LEGACY_IMPORTED_WALK_SET' });
});
});