Skip to content

chore(uts): fix legacy uts/test/ paths in spec cross-references - #502

Merged
sacOO7 merged 2 commits into
mainfrom
chore/uts-fix-legacy-test-paths
Jul 8, 2026
Merged

chore(uts): fix legacy uts/test/ paths in spec cross-references#502
sacOO7 merged 2 commits into
mainfrom
chore/uts-fix-legacy-test-paths

Conversation

@sacOO7

@sacOO7sacOO7 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Intent

The UTS specs were authored against a planned uts/test/<module>/ directory layout that never shipped — the tree landed as uts/<module>/. As a result, 91 cross-references across 75 spec files still point at paths that have never existed in this repository, so anyone (or any tooling) following them finds a dead path. This PR is the mechanical cleanup, discovered while fixing the objects proxy specs (#501).

What changed

Commit 1 — a pure uts/test/<path>uts/<path> rewrite, applied only where the corrected target file was verified to exist (each of the 26 unique referenced paths was checked before rewriting). No content changes — 90 insertions / 90 deletions, one-for-one. The bulk is repeated boilerplate header lines:

Referenced fileOccurrences
realtime/unit/helpers/mock_websocket.md36
rest/unit/helpers/mock_http.md16
rest/unit/rest_client.md15
23 other unit specs / helpers24

Commit 2 — two additional broken cross-references found by validating every backticked uts/*.md path in the tree (not just the uts/test/ class), each retargeted to verified coverage:

  • rest_fallback.md: RSL1k pointed at nonexistent uts/rest/unit/publish.md → now uts/rest/unit/channel/idempotency.md (where the idempotent-publish unit coverage actually lives)
  • realtime_client.md: the RSC1b pointer targeted the never-written client_options.md → now uts/rest/unit/auth/auth_scheme.md (rest/unit/RSC1b/no-auth-method-error-0)

Deliberately excluded (and why)

  1. Proxy infrastructure references (uts/test/realtime/integration/helpers/proxy.md in the 7 realtime proxy specs, and two uts/test/proxy/ directory mentions) — those exact lines are rewritten by the proxy.md relocation commit on fix/uts-proxy-liveobjects-spec ([AIT-1106] fix(uts): correct objects proxy specs and harden proxy rule/timeout guidance #501 chain). Fixing them here as well would only manufacture merge conflicts; they are covered there.
  2. Three references to client_options.md in realtime/unit/client/realtime_client.md (the RSC1/RSC1a/RSC1c "See:" line and the two constructor-table rows) — this file has never existed under any layout, and no REST-side spec covers key-vs-token constructor detection (RSC1a appears only in completion-status.md and realtime_client.md itself). These are left in place deliberately: they mark a genuine coverage gap for a spec owner to resolve — either write the planned REST constructor spec or amend the sections and completion-status.md — rather than a path to rewrite. A rewrite would merely hide the gap.

Verification

🤖 Generated with Claude Code

The uts specs were authored against a planned uts/test/<module>/ layout that
never shipped - the tree landed as uts/<module>/. 91 cross-references across
75 files still pointed at the old layout (mostly the boilerplate "See
uts/test/realtime/unit/helpers/mock_websocket.md ..." / mock_http.md header
lines, plus scattered "corresponding test" pointers), all of them dead paths.
Mechanical rewrite of uts/test/<path> -> uts/<path>, applied only where the
corrected target file exists (validated per unique path before rewriting).
Deliberately excluded:
- the proxy infrastructure references in the realtime proxy specs
(uts/test/realtime/integration/helpers/proxy.md and uts/test/proxy/) -
those lines are rewritten by the proxy.md relocation on
fix/uts-proxy-liveobjects-spec; changing them here would conflict
- four references to uts/test/realtime/unit/client/client_options.md in
realtime_client.md - that file never existed under any layout
(completion-status.md records RSC1/RSC1a-c coverage as realtime_client.md
itself), so these need a spec decision (write the planned file or reword
the sections), not a path fix
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Found by validating every backticked uts/*.md path in the tree:
- rest_fallback.md pointed RSL1k at uts/rest/unit/publish.md, which does not
exist; the RSL1k (idempotent publish) unit coverage lives in
uts/rest/unit/channel/idempotency.md
- realtime_client.md's RSC1b pointer targeted the never-written
client_options.md; RSC1b (error when no auth method available) is covered
by uts/rest/unit/auth/auth_scheme.md
(rest/unit/RSC1b/no-auth-method-error-0)
The remaining three client_options.md references (RSC1/RSC1a/RSC1c) are left
as-is deliberately: no REST-side spec covers key-vs-token constructor
detection, so they mark a genuine coverage gap for a spec owner to resolve
rather than a path to rewrite.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@ttypicttypic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sacOO7
sacOO7 merged commit a6a3169 into mainJul 8, 2026
2 checks passed
@sacOO7
sacOO7 deleted the chore/uts-fix-legacy-test-paths branch July 8, 2026 10:59
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sacOO7@ttypic