Skip to content

docs(dummies): clarify constraint satisfaction and collection deduplication - #203

Merged
Reefact merged 1 commit into
mainfrom
claude/issue-189-discussion-at5wy3
Jul 19, 2026
Merged

docs(dummies): clarify constraint satisfaction and collection deduplication#203
Reefact merged 1 commit into
mainfrom
claude/issue-189-discussion-at5wy3

Conversation

@Reefact

@Reefact Reefact commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

Refine the NuGet package documentation for the Dummies library to more precisely explain how constraints are satisfied and how distinct collections handle deduplication. The changes clarify that scalar values are constructed directly (never generated-then-filtered), and that distinct collections use bounded deduplication draws rather than unbounded retry loops. Additionally, document the behavior when a distinct collection cannot satisfy its constraints due to domain limitations.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Analyzer / diagnostic change
  • Tests
  • Documentation
  • Build / CI / tooling

Changes

  • Expanded the "Values built to satisfy the constraints" bullet to clarify that scalars are constructed directly and that only distinct collections redraw, bounded by deduplication logic, never unbounded retry loops.
  • Refined the "Collections over any element generator" bullet to improve clarity on distinct collection behavior:
    • Changed "A distinct collection asked for more" to "Ask a distinct collection for more" for active voice.
    • Clarified that when a distinct collection cannot satisfy its constraints, it "fails fast" for countable domains or surfaces an AnyGenerationException at generation time for uncountable domains, with the seed provided for replay.

Documentation

  • Public API / error documentation updated
  • README / doc/ updated
  • French translation (doc/handwritten/for-users/README.fr.md) updated if user-facing behavior changed
  • No documentation change required

Architecture decisions

  • No architectural decision in this pull request
  • New decision recorded — ADR drafted as Proposed: ADR-____
  • Supersedes an existing ADR — successor proposed, status not flipped: ADR-____
  • ⚠️ Conflicts with an existing ADR — flagged for the maintainer: ADR-____

Related issues

Closes #189

https://claude.ai/code/session_01MjYpdbpiAYWxcXHB9W59jy

The package README promised "no retry loops" for every generator, but a
distinct collection deduplicates through a bounded redraw and, when its
element domain cannot be counted, reports an exhausted draw as an
AnyGenerationException. Scope the promise to direct scalar construction,
name the bounded distinct-collection draw, and document the
generation-time failure channel and its replay seed.

Refs: #189

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MjYpdbpiAYWxcXHB9W59jy
@Reefact
Reefact enabled auto-merge July 19, 2026 23:00
@Reefact
Reefact merged commit 8b14458 into main Jul 19, 2026
15 checks passed
@Reefact
Reefact deleted the claude/issue-189-discussion-at5wy3 branch July 19, 2026 23:03
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.

Dummies: Clarify the bounded retry behavior of distinct collections

2 participants