← back to Sample Followup Sweep
TK-11409: plan --pass 2 previews the resend match set read-only
173735dbd4b8c110c13c929ba232f1cd29221e0c · 2026-09-10 10:36:12 -0700 · Steve Abrams
Lets the 2nd-request query be proven against live FileMaker without writing.
Verified: pass 1 matches 1 record, pass 2 matches 8 — the 8 that a resend
previously skipped silently.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Files touched
Diff
commit 173735dbd4b8c110c13c929ba232f1cd29221e0c
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 10 10:36:12 2026 -0700
TK-11409: plan --pass 2 previews the resend match set read-only
Lets the 2nd-request query be proven against live FileMaker without writing.
Verified: pass 1 matches 1 record, pass 2 matches 8 — the 8 that a resend
previously skipped silently.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---
scripts/fmpro.mjs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/fmpro.mjs b/scripts/fmpro.mjs
index c5d4e32..60535e5 100644
--- a/scripts/fmpro.mjs
+++ b/scripts/fmpro.mjs
@@ -179,13 +179,15 @@ const cmd = process.argv[2];
if (cmd === 'plan') {
// READ-ONLY: show exactly which sent-vendor records would be stamped, and with what date.
+ // --pass 2 previews the RESEND (2nd-request) match set without writing anything.
+ const planPass = String(arg('pass') || '1') === '2' ? 2 : 1;
const vendors = sentVendors();
const plan = [];
for (const v of vendors) {
- const rows = await planVendor(v);
+ const rows = await planVendor(v, planPass);
rows.forEach((r) => plan.push(r));
}
- console.log(`PLAN (read-only) — ${plan.length} sent-vendor record(s) need stamping:\n`);
+ console.log(`PLAN (read-only, pass ${planPass}${planPass === 2 ? ' = 2nd request' : ' = first chase'}) — ${plan.length} record(s) would be stamped:\n`);
for (const p of plan) console.log(` ${p.recordId} ${p.date} [${p.vid}] ${p.sku} ${p.client} (req ${p.requested}) — ${p.vendor}`);
console.log(`\nJSON:`); console.log(JSON.stringify(plan));
} else if (cmd === 'backfill') {
← 0603d8e auto-data-snapshot: 2026-09-10T10:34:55 (2 data files) — dat
·
back to Sample Followup Sweep
·
TK-11409: pass 2 requires send-history evidence, and can no 1c8e587 →