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 (codex): report held frames and the block cause truthfully

[._.]/ Adam Eivy12f43b2dbef1
diff --git a/client/src/components/sprites/WalkWorkflow.test.jsx b/client/src/components/sprites/WalkWorkflow.test.jsx
index f181743709..2cb80201dd 100644
--- a/client/src/components/sprites/WalkWorkflow.test.jsx
+++ b/client/src/components/sprites/WalkWorkflow.test.jsx
@@ -629,7 +629,7 @@ describe('WalkWorkflow reprocess + reopen', () => {
</MemoryRouter>,
);
expect(screen.queryByRole('button', { name: /Unlock/ })).toBeNull();
- expect(screen.getByText(/nothing to regenerate from either/)).toBeTruthy();
+ expect(screen.getByText(/cannot be regenerated here/)).toBeTruthy();
});
it('sends the acknowledgement only from the blocked-but-regenerable confirm', async () => {
diff --git a/client/src/lib/spriteWalkUnlock.js b/client/src/lib/spriteWalkUnlock.js
index 3385324044..7f092cb5ce 100644
--- a/client/src/lib/spriteWalkUnlock.js
+++ b/client/src/lib/spriteWalkUnlock.js
@@ -24,8 +24,14 @@ export function walkUnlockCopy(unlock) {
: 'This walk set was imported from the source pipeline with no directions that can be re-derived here.';
if (!unlock.acknowledgeable) {
+ // Cause-NEUTRAL on purpose. `acknowledgeable: false` collapses three
+ // distinct blockers — an unlocked anchor, a locked anchor whose file is
+ // gone, and a record with no chroma key on any rung — and naming only the
+ // first would hand the other two a confidently wrong diagnosis. The server
+ // stamps a boolean, not a reason, so the copy says exactly what the boolean
+ // means and no more.
return {
- text: `${who} At least one directional anchor is also unlocked, so there is nothing to regenerate from either — re-import this character, or create a new character version to revise it.`,
+ text: `${who} It also cannot be regenerated here — the reference set is missing something a fresh render needs (a locked anchor, its image on disk, or the frozen chroma key). Re-import this character, or create a new character version to revise it.`,
action: null,
prompt: null,
acknowledgeNoClips: false,
diff --git a/client/src/lib/spriteWalkUnlock.test.js b/client/src/lib/spriteWalkUnlock.test.js
index f696530c91..07ba06b95f 100644
--- a/client/src/lib/spriteWalkUnlock.test.js
+++ b/client/src/lib/spriteWalkUnlock.test.js
@@ -44,7 +44,10 @@ describe('walkUnlockCopy', () => {
const copy = walkUnlockCopy({ blocked: true, stranded: ['east'], acknowledgeable: false });
expect(copy.action).toBeNull();
expect(copy.acknowledgeNoClips).toBe(false);
- expect(copy.text).toMatch(/nothing to regenerate from either/);
+ expect(copy.text).toMatch(/cannot be regenerated here/);
+ // Cause-neutral: the server stamps a boolean, and three different blockers
+ // collapse into it, so the copy must not name just one of them as the cause.
+ expect(copy.text).not.toMatch(/anchor is (also )?unlocked/);
});
it('inflects the stranded list, and names the set when there is no per-direction evidence', () => {
diff --git a/server/services/sprites/walkPostprocess.js b/server/services/sprites/walkPostprocess.js
index f0e5b244f1..a8396621d2 100644
--- a/server/services/sprites/walkPostprocess.js
+++ b/server/services/sprites/walkPostprocess.js
@@ -731,7 +731,13 @@ export async function validateFrames(frames, split, frameCount = WALK_FRAME_COUN
if (dominant.some((c) => c > 0)) throw new Error('Visible key color remains after despill');
if (masses.some((m) => m > MAX_KEY_MASS)) throw new Error('Excess alpha-weighted key mass after despill');
return {
- distinctFrames: true,
+ // The literal `true` was accurate while every pack was all-distinct. Since a
+ // gait shorter than the requested count may hold frames (#3052), a hardcoded
+ // true would stamp a claim the artifact disproves — record what was actually
+ // packed, and the hold count beside it so a reader can tell an intentional
+ // hold from a packer bug.
+ distinctFrames: distinct === frames.length,
+ heldFrames,
adjacentDifferenceScores: adjacent,
loopSeamScore: seam,
medianAdjacentScore: pyRoundTo(typical, 4),