Files
SoulStream/handoff/tools/realign-future.cjs
T
KeelrLeek 9f0601027c android: the handoff — the pending rounds, the pipeline, and what is unverified
Everything written this session that has not been through the device: rounds 43
to 48 (each patch adversarially verified, 43's transient-notice expectation
fixed), a partial round 49, the pipeline scripts, the Android Auto design and
the icon comparison mock. Also the two harness changes that were never A/B'd —
adaptive waits, which may only shorten a declared wait and never lengthen it,
and a ship that runs the mock walk and the deploy at the same time. The A/B and
its 255-step baseline are in handoff/tools; main stays at what the phone has
actually walked.
2026-09-14 07:57:41 -05:00

17 lines
1.0 KiB
JavaScript

// Bring the future snapshot's walk in line with the corrected round 17:
// the nav-badge assertion moves off the Transfers screen (where the mock's
// burst has already finished) onto the record save that is actually in flight.
const fs = require('fs');
const f = process.argv[process.argv.length - 1];
let s = fs.readFileSync(f, 'utf8');
const D = String.fromCharCode(92) + 'd';
const a = ' transfers: (i) => i.title.startsWith("Transfers") && i.xfers >= 11 && /^' + D + '+$/.test(i.navBadges),';
const b = ' transfers: (i) => i.title.startsWith("Transfers") && i.xfers >= 11,';
const c = ' "cat-album-save": (i) => /^Saving ' + D + '+ from /.test(i.save),';
const d = ' "cat-album-save": (i) => /^Saving ' + D + '+ from /.test(i.save) && /^' + D + '+$/.test(i.navBadges),';
if (!s.includes(a)) throw new Error('missing transfers anchor');
if (!s.includes(c)) throw new Error('missing cat-album-save anchor');
s = s.replace(a, () => b).replace(c, () => d);
fs.writeFileSync(f, s);
console.log('future snapshot walk realigned');