Skip to content

test: close post-registration and empty/digit-nick gaps in NickTrunca… - #24

Merged
vjan-nie merged 1 commit into
Univers42:mainfrom
vjan-nie:test/nick-truncation-coverage
Aug 1, 2026
Merged

test: close post-registration and empty/digit-nick gaps in NickTrunca…#24
vjan-nie merged 1 commit into
Univers42:mainfrom
vjan-nie:test/nick-truncation-coverage

Conversation

@vjan-nie

@vjan-nie vjan-nie commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

…tion

04-review.md (T1 adversarial review) flagged the NickTruncation suite as only exercising the pre-registration PASS/NICK/USER burst, plus two input shapes (bare NICK, digit-first nick) sitting next to the truncation insertion point with zero automated coverage, despite both being live-verified correct.

Adds PostRegistrationNickChangeStillTruncates (NICK change on an already-registered connection truncates on both self-echo and a channel peer's broadcast), BareNickGivesNoNicknameGivenNotEmptyTruncation, and DigitFirstNickIsRejected. Red states recorded per TESTING.md and reverted before this commit: folding the empty-params check into isValidNickname flips the bare-NICK test from 431 to 432; allowing a leading digit in isValidNickname flips the digit-first test. No red state was constructible for the digit-first case via truncate/validate reordering specifically (truncation only trims the tail, never touches position 0), which the test's comment states rather than implying a protection it doesn't have.

…tion

04-review.md (T1 adversarial review) flagged the NickTruncation suite as
only exercising the pre-registration PASS/NICK/USER burst, plus two
input shapes (bare NICK, digit-first nick) sitting next to the truncation
insertion point with zero automated coverage, despite both being
live-verified correct.

Adds PostRegistrationNickChangeStillTruncates (NICK change on an
already-registered connection truncates on both self-echo and a channel
peer's broadcast), BareNickGivesNoNicknameGivenNotEmptyTruncation, and
DigitFirstNickIsRejected. Red states recorded per TESTING.md and
reverted before this commit: folding the empty-params check into
isValidNickname flips the bare-NICK test from 431 to 432; allowing a
leading digit in isValidNickname flips the digit-first test. No red
state was constructible for the digit-first case via truncate/validate
reordering specifically (truncation only trims the tail, never touches
position 0), which the test's comment states rather than implying a
protection it doesn't have.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vjan-nie
vjan-nie merged commit f4b60b3 into Univers42:main Aug 1, 2026
2 checks passed
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