GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Backstop refusal log: a set when ids are never forgotten; note on regrouped batches by scuttletoby · Pull Request #759 · scuttletoby/t3code

Conversation

@scuttletoby

@scuttletoby scuttletoby commented Nov 21, 2026

Copy link
Copy Markdown
Owner

What and why

The two cosmetic points from the #755 review (#755 (comment)), as listed in #757.

  1. A set when ids are never forgotten. makeRefusalLog(null) (the orphan scan) never prunes, so the time it stored per id was never read. It now keeps the ids in a Set. The reminder (makeRefusalLog(), one-day default) keeps its Map: the prune reads the logged time there, so that data is used and stays. The function now states its return type, so both branches give the same (commandId, nowMs) => boolean and the callers are unchanged. Behavior is the same.
  2. Comment on regrouped batches. The orphan scan's comment above makeRefusalLog(null) now says that a regrouped batch (new keys after a relist, or after a send) has a new command id, so it counts as a new batch and is logged once more.

No other changes.

Tests

No new tests: (1) is a refactor with the same behavior, and (2) is a comment.

  • Existing tests cover the Set path: delegatedResults.test.ts "keeps a refusal for the whole process when told never to forget (the orphan scan)", and in DelegatedOrphanScan.test.ts "warns of a refused message once, not on every pass; a new one warns again", "a refusal whose log line a stop cut off is logged once after the restart", "a receipt another thread holds warns once per run, not on every pass" and "a refused message before one that waits for a slot is logged once, also past a day". The Map path stays covered by "logs a refusal once per command id and process, and forgets it after a day".
  • On the old code (origin/main's delegatedResults.ts with this branch): the same 117 tests pass. That is expected for a refactor; nothing new goes red there.
  • Remove-one-line checks (each alone, tests run, restored):
    • the Set's if (logged.has(commandId)) return false;: 5 fail (the five tests above).
    • the Set's logged.add(commandId);: the same 5 fail.
    • the Map's prune line (if (nowMs - atMs > forgetAfterMs) logged.delete(id);): 1 fails (the "forgets it after a day" test).
    • Sending null down the old Map path instead (if (forgetAfterMs === null) → if (false), prune guarded as before): all pass, which shows the Set path behaves like the old code.
  • The state question: unchanged from Backstop reminders: the orphan scan logs a refused batch once per run, also past a day #755. Runs again: a logged id stays logged for the process (Set) or for a day (reminder). Stopped half-way or restarted: nothing is stored, so a new process starts with an empty record and logs a batch still refused once more. Old, empty or missing state: nothing to migrate.
  • pnpm --filter ./apps/server exec vp test run src/fork/delegatedResults src/waits/WaitDelivery: 117 pass.
  • vp run check:changed: format, lint, knip, graphql, typecheck and tests pass.
  • node .github/scripts/fork-seam-check.cjs --config-ref origin/main origin/main HEAD: passes. Both changed files are fork-owned (apps/server/src/fork/), so no seam PR is needed.

Left as is

  • Nothing from Backstop refusal log: two cosmetic points from the #755 review #757.

General vs project

All general: internal to the backstop's refusal logging for any T3 user with server.waitFor on. No project facts or settings were added.

Closes #757

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@scuttletoby @claude
Backstop refusal log: a set when ids are never forgotten; note on reg…
81c7f09
…rouped batches

makeRefusalLog(null) (the orphan scan) never prunes, so the logged time was
never read: keep the ids in a Set there. The reminder keeps its Map, whose
times the one-day prune reads. Behavior is unchanged.

The orphan scan's comment now says a regrouped batch has a new command id,
so it counts as a new batch and is logged once more.

Closes #757

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@scuttletoby
scuttletoby merged commit 8f0f074 into main Nov 21, 2026
38 checks passed

Uh oh!

There was an error while loading. Please reload this page.

scuttletoby added a commit that referenced this pull request Nov 21, 2026
@scuttletoby @claude
Backstop refusal log: a set when ids are never forgotten; note on reg…
7282fa6
…rouped batches (#759)

makeRefusalLog(null) (the orphan scan) never prunes, so the logged time was
never read: keep the ids in a Set there. The reminder keeps its Map, whose
times the one-day prune reads. Behavior is unchanged.

The orphan scan's comment now says a regrouped batch has a new command id,
so it counts as a new batch and is logged once more.

Closes #757

Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby added a commit that referenced this pull request Nov 21, 2026
@scuttletoby @claude
Backstop refusal log: a set when ids are never forgotten; note on reg…
27b1a8a
…rouped batches (#759)

makeRefusalLog(null) (the orphan scan) never prunes, so the logged time was
never read: keep the ids in a Set there. The reminder keeps its Map, whose
times the one-day prune reads. Behavior is unchanged.

The orphan scan's comment now says a regrouped batch has a new command id,
so it counts as a new batch and is logged once more.

Closes #757

Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby added a commit that referenced this pull request Nov 21, 2026
@scuttletoby @claude
Backstop refusal log: a set when ids are never forgotten; note on reg…
91b10f3
…rouped batches (#759)

makeRefusalLog(null) (the orphan scan) never prunes, so the logged time was
never read: keep the ids in a Set there. The reminder keeps its Map, whose
times the one-day prune reads. Behavior is unchanged.

The orphan scan's comment now says a regrouped batch has a new command id,
so it counts as a new batch and is logged once more.

Closes #757

Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby added a commit that referenced this pull request Nov 28, 2026
@scuttletoby @claude @noreply
Backstop refusal log: a set when ids are never forgotten; note on reg…
72d21de
…rouped batches (#759)

makeRefusalLog(null) (the orphan scan) never prunes, so the logged time was
never read: keep the ids in a Set there. The reminder keeps its Map, whose
times the one-day prune reads. Behavior is unchanged.

The orphan scan's comment now says a regrouped batch has a new command id,
so it counts as a new batch and is logged once more.

Closes #757

Co-authored-by: Claude Opus 5.5 <[email protected]>
scuttletoby added a commit that referenced this pull request Nov 28, 2026
@scuttletoby @claude
Backstop refusal log: a set when ids are never forgotten; note on reg…
a6f48bf
…rouped batches (#759)

makeRefusalLog(null) (the orphan scan) never prunes, so the logged time was
never read: keep the ids in a Set there. The reminder keeps its Map, whose
times the one-day prune reads. Behavior is unchanged.

The orphan scan's comment now says a regrouped batch has a new command id,
so it counts as a new batch and is logged once more.

Closes #757

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Backstop refusal log: two cosmetic points from the #755 review

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@scuttletoby
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.