Repository navigation
Complete docs appearance before reveal - #142
Merged
Merged
Conversation
why: Cached HTML can refer to the previous build's assets. Mutable five-minute asset metadata also forces repeated shared-cache fills. what: - Copy hashed assets before HTML with a one-year immutable policy - Preserve old hashes within each validated publisher prefix - Update metadata even when an existing asset's bytes are unchanged - Retain ownership and upload-order assertions in the existing tests Validation: Publication and deployment contract tests passed in the focused run; the complete site unit run passed 3,128 tests with 323 explicit skips for assembly and unavailable source inputs.
why: Font and link-hint timers can expose an unfinished page or leave it blank after a stale shell script. A loaded module also does not certify that its asynchronous visual initialization has completed. what: - Replace timed reveal with resource outcomes and registered visual work - Await fonts, image decoding and final connected layout to completion - Inline link decoration and its mask; show Reload on required failure - Use native document navigation to avoid rejected router double loads - Prepare retained Sphinx widgets, highlights and fragment arrival - Give adapted native scripts retained hashes in their asset paths - Preserve first-visible, preferences and history checks in the browsers Native navigation prepares a connected destination after browser commit; it does not preserve a live outgoing page throughout that preparation. Optional local metric fallbacks do not count as downloaded font failures. Validation: Focused coordinator/native/lifecycle tests passed (72 tests). The combined source outer gate passed in 48.07s, including type checks, 3,193 site tests and the real held-font/module/effect/recovery sample.
why: Closed menus start manifest and index work before the reader asks for them, competing with resources required for the first appearance. what: - Mount the search dialog on its first opening and keep focus handling - Fetch published version options on the version menu's first opening - Remove the unconditional version-manifest preload - Keep initial results on dedicated search pages in appearance readiness Validation: The combined source outer gate passed in 48.07s, including the real picker/keyboard sample and held-analytics control checks.
why: Inline code uses Mono 500 at first paint, but that face starts only after CSS discovers it. Required-font blocking exposes that extra request round trip on a cold page. what: Add the existing Mono 500 normal face to the shared head preload. The appearance gate still requires successful selected font loading. Validation: The combined source outer gate passed in 48.07s. Real Chromium checked selected fonts and stable text at first reveal while font requests were held past the previous three-second cutoff.
why: The retained native layout script expands a signature but waits 50ms to scroll. That timer can run after readiness, and a newly expanded panel can require a further font/layout pass before its target is stable. what: - Register initial expansion and its subsequent scroll as layout work - Remove the elapsed-time scroll and use completed connected geometry - Publish the pinned adapted script under the retained asset tree - Exercise expansion, queued scroll and nested hashed URLs in place Validation: Readiness and native-normalization tests passed (22 tests). The earlier exact-source counterexample reached ready before scrolling; the replacement performs expansion, then registered layout scrolling.
why: Standalone exports and cached heads still depend on the shell module installing external-link decoration before its ready event. what: - Await the legacy decorator only when the page has no appearance gate - Exercise the old shell entry point with the real stylesheet and mask Validation: Fresh-source Chromium sample and focused shell semantics.
why: A native fragment can expand and scroll during prepared layout. The table of contents must reflect that position before reveal. what: - Register the contents update after native navigation callbacks - Preserve later user scroll updates and listener disposal Validation: Focused native navigation and shared readiness checks.
why: Astro development tooling throws when storage is blocked. A separate read can also sample a new document after a server reload. what: - Disable the development toolbar in the owned browser test server - Wait for readiness and keyboard disclosure state before assertions - Capture the appearance sample in its qualifying document - Retry only an explicit document replacement or interrupted reload - Require the selected IBM Plex face at first reveal Validation: Blocked-storage and no-JavaScript browser checks pass; full source verification records scope and timing separately.
why: Furo's later Tailwind theme replaces the shared font variables with system stacks, leaving IBM Plex preloads unused in native pages. what: - Bind native root sans and mono variables to the shared Astro faces - Keep existing heading, body, signature and code aliases intact Validation: Real compiled native Pane page with actual font holds; Sans and Mono are selected and loaded at the first visible frame.
why: Native fragment targets use a short-header scroll offset even when the shared phone header occupies two rows. what: - Derive native scroll padding from the responsive shared header - Avoid adding a target margin on top of that container padding Validation: Native fragment arrival measured at desktop and phone widths, with fonts and visual widgets completed before reveal.
why: The old browser check requires visibility while a required module is held, then treats network idleness as completed appearance. what: - Keep native content gated while required enhancement is held - Inspect loaded IBM Plex heading and code faces at first reveal - Compare the first two frames in the same document - Assert native document navigation and retain reachable controls Validation: The existing helper passes on the real compiled native Pane page at desktop and phone widths with analytics still pending.
The public preview exposes two browser-test races: the standalone decorator's dynamic import finishes after window load, while optional analytics can keep load pending after required appearance is ready. Wait for the actual decorator attribute and use document commit followed by existing appearance, first-frame or visibility checks for API navigation and preferences. Require an explicit ready or failed state before evaluating the blocked-storage outcome. Preserve all assertions and observation deadlines. Validation: published PR142 resource-hold, failure/Reload, legacy-shell, preference, no-JavaScript, blocked-storage, navigation and search/retry checks pass. Independent review of the exact diff and syntax checks pass. Runtime source and the deployed artifact are unchanged.
why: A pending injected beacon can hold browser lifecycle events. The preview must retain the site's EU visitor exclusion. what: - Load the beacon after load and a fresh first-party edge permission. - Preserve one installation across Astro navigation and fail closed. - Scope the location policy to the preview and document its rollout. - Check stalled policy/beacon requests, edge denial and first appearance.
why: A late optional script can enter ClientRouter's script wait. The preview also needs injection controls available on the Free plan. what: - Mark the owned beacon handled by Astro's router. - Exercise a real swap and the unmarked stalled negative control. - Use a scoped Configuration Rule for automatic injection.
why: The aggregate declaration check exceeds its five-second CI budget. Its shared deadline prevents the audited preview from publishing. what: - Check each port's supported versions in a separate case. - Retain every declaration, schema and target assertion. - Keep the existing five-second test deadline.
why: The zone token returned 404 from the external manual collector. Publication would overwrite the preview's working registration token. what: Use the separately registered public manual token and document the collector distinction. Keep edge permission and EU exclusion. Verified the EN and JA collector receipts (204), edge exclusion rules, and independent source review. Current source checks have no assertion or type errors; the outer runner reaches its unchanged 60-second budget. Full publication acceptance remains separate.
why: Generated catalogs incur avoidable object-literal compilation in Astro's Vite graph. Owned JSON imports consume complete default exports. what: - Use Vite's JSON.parse path without named JSON exports - Match the existing Vitest configuration Eight balanced compiler pairs retain the complete values of three inputs. The source outer passes in 55.20s with its unchanged 60s budget. This is a compiler change; it does not establish a deployed page-load improvement. The earlier Astro configuration-loader bootstrap remains separate.
why: An empty inventory base normalizes to '/', which turned rooted generated-source URLs into protocol-relative URLs pointing at another host. SessionOperations.kt consequently failed in the PR preview. what: - Preserve rooted URIs when joining a root inventory base - Keep relative parent entries and external bases working - Cover both forms under production and preview roots The regression fails before repair; its parent-entry control also rejects the initial incomplete repair. The source outer passes in 55.20s. The generated Kotlin target is present in the published artifact.
why: Installing external-link decoration during parsing repeatedly scans the arriving document. Large pages pay this cost before they can appear. what: - Decorate synchronously after parsing, before readiness convergence - Retain early resource observation, font/image/layout outcomes and Reload - Tighten the existing test around the decoration phase Matched primary-page trials reduce ready time by 8-16% and script CPU by 25-38% under fourfold CPU slowdown. Eight guarded navigation pairs do not reproduce the earlier cross-tree slowdown; smaller-page timings remain uncertain. Exact source/evidence reviews and the unchanged source outer pass. Publication and deployed comparison remain separate checks.
why: A document can finish native layout and required resource work after its first paint. Delayed startup scrolling must not override user navigation or a restored history position. what: - Complete required resources, font/image decoding, link decoration and native widgets before reveal; show Reload on required failures. - Use native document navigation and defer closed search/version work. - Expand initial native panels without scrolling, then let shared anchors check startup ownership, cancellation and the original URL. - Keep analytics optional and retain hashed assets before publishing pages. - Preserve rooted inventory source links. Validation: pnpm test reached the unchanged 60-second cap. The API-model and theme suites passed (852 and 36 tests); the site suite and Astro type check remain incomplete. Fresh full hosted CI is still required.
tony
marked this pull request as ready for review
October 17, 2026 19:57
tony
force-pushed
the
fix/docs-load-readiness
branch
from
October 17, 2026 19:57
300ea2a to
b33ff27
Compare
tony
temporarily deployed
to
docs-preview-cleanup
October 17, 2026 20:33 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Required scripts, styles, font and image decoding, link decoration and native widget layout finish before a documentation page is revealed. Failed required work exposes a Reload action instead of treating a timer expiry as readiness.
Documentation uses native document navigation. Initial native callbacks expand panels without scrolling; the shared anchor handler measures the expanded layout and checks the original URL, startup ownership and cancellation before scrolling. Delayed preparation therefore cannot acquire new scroll intent after reader input or history restoration. Later fragment navigation and signature disclosure controls retain their behavior.
Closed search and version controls defer their work. Optional analytics starts after load with fresh edge permission and cannot hold appearance readiness. Publication uploads immutable assets before page HTML and retains previously published hashes. Rooted inventory source links remain rooted under production and preview mounts.
Validation on the refreshed candidate:
pnpm testreached its unchanged 60-second cap and was terminated after 60.600 seconds (exit -9). API-model completed 48 files and 852 tests; theme completed four files and 36 tests. Site lint completed with warnings. The site suite and Astro type check remained incomplete.The final native-shell focused suite also passed after the full-check attempt:
test/normalize-native-shell.test.tscompleted successfully in1.19s with the existing test config and assertions. This supplements the partial results above; full hosted CI remains required.