Skip to content

Every crew watch is built one way - #2295

Merged
santoshkumarradha merged 5 commits into
app/v3from
c52/crew-prints-nil
Nov 3, 2026
Merged

santoshkumarradha merged 5 commits into
app/v3from
c52/crew-prints-nil

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What changes

Every crew watch is now built by one constructor, so its maps are always writable. Tests and benchmarks used to build partial watches by hand.

TestAppLazyQuietColdSweepBoundAndCoverage/1000 panicked once with assignment to entry in nil map at the crew tick. The test's own fixture left out the prints map. A quiet refresh never reaches that write, and a refresh that sees a changed crew stamp does.

Limits

  • The running engine had one construction path, and it already set this map, so this panic came from the test fixture. No engine path that builds a watch without it was found.
  • Why the crew stamp changed in that one run is not proven. The test added here forces the change, so it fails every time without the fix.
  • No nil guard added: nothing clears these maps after construction.

Validation

  • Red: panic: assignment to entry in nil map at the crew tick, forced by a changed stamp.
  • The new test and TestAppLazyQuietColdSweepBoundAndCoverage with -count=3 pass.

🤖 Generated with Claude Code

santoshkumarradha and others added 5 commits November 3, 2026 02:26
Drive the cold-sweep fixture through a deterministic store change and observe the crew wire event.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The quiet cold-sweep fixture bypassed production initialization. A changed refresh stamp sent its nil prints map into reconciliation. Route production, fixtures and benchmarks through one constructor; initialize unguarded sibling maps too. No path clears prints. The historical stamp change itself remains unknown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 3, 2026 11:42
@santoshkumarradha
santoshkumarradha merged commit 1c6b940 into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/crew-prints-nil branch November 3, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant