[object Object]

← back to Council 0809 Builds

add read-only AUDIT_DUMP reporting to Path A backfill dry-run (no live write)

847f3e6220756d96b04fcb70993aabfff9439c29 · 2026-08-10 12:37:06 -0700 · Steve Abrams

Files touched

Diff

commit 847f3e6220756d96b04fcb70993aabfff9439c29
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 10 12:37:06 2026 -0700

    add read-only AUDIT_DUMP reporting to Path A backfill dry-run (no live write)
---
 rolls-ar-deeplink/backfill-pattern-repeat.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rolls-ar-deeplink/backfill-pattern-repeat.js b/rolls-ar-deeplink/backfill-pattern-repeat.js
index 4bd536f..360f1a7 100644
--- a/rolls-ar-deeplink/backfill-pattern-repeat.js
+++ b/rolls-ar-deeplink/backfill-pattern-repeat.js
@@ -127,6 +127,12 @@ async function gql(query, variables) {
   }
   console.log(JSON.stringify({ ...stat, pages: page, completed: !more }, null, 2));
 
+  // READ-ONLY audit dump (no live write) — used by the Path A dry-run gate.
+  if (process.env.AUDIT_DUMP) {
+    fs.writeFileSync(process.env.AUDIT_DUMP, JSON.stringify({ stat: { ...stat, pages: page, completed: !more }, ledger }, null, 2));
+    console.error(`AUDIT_DUMP written: ${process.env.AUDIT_DUMP} (${ledger.length} would-write rows)`);
+  }
+
   if (APPLY && ledger.length) {
     const ts = new Date().toISOString().replace(/[:.]/g, '-'); // stamp OUTSIDE, ok here (not a workflow)
     fs.mkdirSync(__dirname + '/runs', { recursive: true });

← 7f39897 fix --vendor arg parsing in Path A backfill (index-based, dr  ·  back to Council 0809 Builds  ·  TK-10385 Path A: read-only dry-run audit tooling (PG per-ven 7f0e8d6 →