Skip to content

Tests: pin exact expectations in weak daemon and query tests - #7201

Merged
Sinity merged 1 commit into
masterfrom
walk/w7tests9-20261123
Nov 23, 2026
Merged

Sinity merged 1 commit into
masterfrom
walk/w7tests9-20261123

Conversation

@Sinity

@Sinity Sinity commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Strengthens a batch of weak daemon and query tests. Product behaviour is unchanged.

Each nomination was checked against the code first. Changed: the panic answer test compares the documented text (fixed prefix and suffix, the injected panic's message between); lifecycle tests compare each rejected service input with its exact message, read back the accepted write's stored request, match the worker-exit output by whole line and rename the watchdog-budget probe test to what it checks; the measure test binds the quota answer; the feed tests count event lines, check the final position against the reader's position and check the order of the two archive peers by ref; the page test compares the continuation's row values in full and now exercises the read context (a reader ahead opens the cursor, a reader behind in either counter or on another index file gets stale_cursor, per the shared cursor binding); query tests pin the chrono search to exactly sessions #2 and #8, search punctuation with a query whose answer is known (three prompts), pin the quoted-misspelling answer as empty, pin the four ambiguity candidates, give the fused paging loop a page cap and a non-empty answer, pin the physical error-call id sets, require the attached list to be present, and count projected and kept event rows. The until-instant test is renamed for the rule it pins (a seconds-precision bound covers its whole second). The duplicate abandoned-branch test in generated.rs is deleted; unknowns.rs covers it.

Not changed, with reasons: refusal wording in the feed envelope test and the saved-relation diagnostics (the wording is owned by the shared command-surface and query-language crates); the exists-matches and kept-matches counts (whether the logical session's rows include its continuation's error call could not be settled by reading); the unit list in the closed-set message (other units may also accept error); the injection test's upper bound (an exact oracle per payload needs a run to confirm); the hang-up helper's bounded poll (the cancellation has no waiter to block on; a comment says so).

Verified: by reading only (the host could not build), formatted with rustfmt. The hosted check is the verification. Some new exact expectations (candidate set, quoted-misspelling empty, physical total of 8, null session key, the stale_cursor code) come from reading the code and fixtures; a CI failure on one of them is a finding to settle, not an assertion to loosen.

Task: none

🤖 Generated with Claude Code

https://claude.ai/code/session_01UuFixtGtdh2xCEcLPgpRtf

Several tests passed whatever the code returned: substring checks on
messages, existence checks, an unused result, an unbounded loop, and a
check that could not tell the behaviour from its absence.

- panics: the panic answer is the documented text, with the injected
  panic's own message between the fixed prefix and suffix.
- lifecycle: each rejected service input is compared with its exact
  message; the accepted write's stored request is read back (id and
  SetSetting key); the worker-exit stdout is matched by whole line; the
  watchdog-budget probe test is named for what it checks.
- measure: the quota result is bound and its `now` checked.
- feed: the delta test counts its event lines and checks the final
  position equals the reader's position; the replacement test checks the
  final position; the archive peers test checks ref order; a comment names
  the Begin write.
- page: the continuation's row values are compared in full, and the read
  context is exercised (a reader ahead opens it; one behind in either
  counter, or on another index file, gets stale_cursor).
- query: text search for `chrono` is exactly #2 and #8; punctuation after
  a word is searched with a query whose answer is known (three prompts);
  a quoted misspelling answers empty; the ambiguity candidates are exactly
  the four matching sessions; fused paging has a page cap and a non-empty
  answer; the physical error-call partition pins its id sets; the
  until-instant test is named for both precision rules; the duplicate
  abandoned-branch test is deleted (unknowns.rs covers it); the attached
  list must be present, not defaulted; event rows are counted when
  projected and kept, and the session-less row has an explicit null.

Behaviour of the product is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UuFixtGtdh2xCEcLPgpRtf
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ❌ Failed 2026-11-23T16:27:50.016684Z
We couldn’t complete this review. Comment @codex security review to try again.
5532cdb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@Sinity
Sinity merged commit f4752da into master Nov 23, 2026
3 checks passed
@Sinity
Sinity deleted the walk/w7tests9-20261123 branch November 23, 2026 16:46
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