Skip to main content

max / makenotwork

Say what the library check is waiting on, now that it exists The smoke note called the demo buyer "not built"; it has been built and seeded since 0.11.9. Point at the env var that turns the seed phase on. Also make the capture script name the page it landed on when a frame's selector is missing. On an authed frame that is almost always the session, and "container not present" sends you reading templates instead: it cost an hour before the message admitted it was sitting on a 401.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-07 22:21 UTC
Signed with PGP, not checked
Commit: 9a1e1e3e1debd1e59bcaa8ff3bf53d7339536cef
Parent: 982c29d
2 files changed, +13 insertions, -2 deletions
@@ -229,7 +229,7 @@
229 229 section "deferred"
230 230 code=$(get /library)
231 231 if [ "$code" = "401" ] || [ "$code" = "302" ] || [ "$code" = "303" ]; then
232 - warn "/library is $code to anonymous, as expected. Checking it needs the seeded demo buyer from GoingsOn 839a8e5a (Phase 3, decided B, not built)"
232 + warn "/library is $code to anonymous, as expected. Checking its contents needs the demo buyer, which the seed creates when TESTNOT_BUYER_PASSWORD is set (GoingsOn 839a8e5a, option B). The carousel capture is what exercises it"
233 233 else
234 234 warn "/library returned $code to an anonymous visitor; expected an auth redirect. Worth a look"
235 235 fi
@@ -383,7 +383,18 @@
383 383 returnByValue: true,
384 384 });
385 385 if (!result.value) {
386 - console.error(` ${frame.name}: skipped, ${selector} not present at ${url}`);
386 + // Say what the page actually was. A missing selector on an authed frame
387 + // is almost always the session, not the markup, and "container not
388 + // present" sends you reading templates instead of checking the login.
389 + const { result: landed } = await call('Runtime.evaluate', {
390 + expression: `({ title: document.title, href: location.href })`,
391 + returnByValue: true,
392 + });
393 + const where = landed.value ?? {};
394 + console.error(
395 + ` ${frame.name}: skipped, ${selector} not present at ${url}` +
396 + ` (landed on ${where.href ?? '?'}, titled ${JSON.stringify(where.title ?? '?')})`,
397 + );
387 398 missing.push(frame.name);
388 399 continue;
389 400 }