Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR uses monotonic elapsed time for process-local cache freshness and cached-error deadlines. Example: A cached project search is read again after the host clock jumps forward one hour.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a concrete cache-expiry defect still present on current main, with no actionable defects found; required CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared in-memory cache serves core and plugin consumers, accepting keyed loaders and returning fresh or stale values while coordinating bounded refreshes. flowchart LR
A[Gateway and plugin callers] --> B[Shared cache]
C[Monotonic elapsed clock] --> B
B --> D[Existing loader]
D --> E[External transport]
B --> F[Fresh or stale result]
Technical reviewBest possible solution: Use the existing shared cache owner with monotonic deadlines and retain its current lifetimes and lifecycle contracts. Do we have a high-confidence way to reproduce the issue? Current-main source directly exposes the wall-clock-dependent expiry path, supported by the contributor's paired base/head Gateway trace; this read-only review ran no target code. Is this the best way to solve the issue? The three clock substitutions are the smallest complete repair: deadline creation and comparison use one monotonic domain without adding another owner or changing caller policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 36383b8ce160. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests +41, Other +2. Total +43 across 12 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 29, 2026, 10:07 AM ET / 14:07 UTC. |
|
Thanks @clawsweeper for reviewing the cache fix and its consumer coverage. |
…ions (#190894) fix: measure durations, timeouts and cache ages with the monotonic clock Several timeouts, cache TTLs and retry backoffs measured elapsed time with the wall clock. When the system clock jumped (NTP correction, sleep and resume, manual change), they fired too early, never fired, or ignored server backoff. These callers now use the monotonic clock (`src/shared/monotonic-time.ts` in core, `performance.now()` in extensions). Stored and displayed timestamps stay on the wall clock, and SDK signatures and public epochs are unchanged. This sweep includes #190846, #190852, #190853, #187703, #187689, #187782, #187765, #189161, #189160 and #190098, with the contributors' commits kept for credit. Evidence: built Gateway, CLI and real Chromium, main twice and candidate twice, stepping only the process wall clock (`Date.now`); no system clock change. On main, a Discord deployment timeout aborted or overran after a 60-second step, the Chromium context popover retried after about 100 ms despite server backoff, and the `sessions.usage`, Pi session catalog and GitHub project caches refreshed too early or too late. With this change, each followed real elapsed time. Ordinary controls passed, and epoch timestamps were unchanged. Details: #190894 (comment). Thanks @Alix-007, @chengzhichao-xydt, @huwei-xydt. Co-authored-by: Alix-007 <[email protected]> Co-authored-by: chengzhichao-xydt <[email protected]> Co-authored-by: Claude Code <[email protected]> Co-authored-by: 胡伟0668000622 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
…ions (openclaw#190894) fix: measure durations, timeouts and cache ages with the monotonic clock Several timeouts, cache TTLs and retry backoffs measured elapsed time with the wall clock. When the system clock jumped (NTP correction, sleep and resume, manual change), they fired too early, never fired, or ignored server backoff. These callers now use the monotonic clock (`src/shared/monotonic-time.ts` in core, `performance.now()` in extensions). Stored and displayed timestamps stay on the wall clock, and SDK signatures and public epochs are unchanged. This sweep includes openclaw#190846, openclaw#190852, openclaw#190853, openclaw#187703, openclaw#187689, openclaw#187782, openclaw#187765, openclaw#189161, openclaw#189160 and openclaw#190098, with the contributors' commits kept for credit. Evidence: built Gateway, CLI and real Chromium, main twice and candidate twice, stepping only the process wall clock (`Date.now`); no system clock change. On main, a Discord deployment timeout aborted or overran after a 60-second step, the Chromium context popover retried after about 100 ms despite server backoff, and the `sessions.usage`, Pi session catalog and GitHub project caches refreshed too early or too late. With this change, each followed real elapsed time. Ordinary controls passed, and epoch timestamps were unchanged. Details: openclaw#190894 (comment). Thanks @Alix-007, @chengzhichao-xydt, @huwei-xydt. Co-authored-by: Alix-007 <[email protected]> Co-authored-by: chengzhichao-xydt <[email protected]> Co-authored-by: Claude Code <[email protected]> Co-authored-by: 胡伟0668000622 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes premature cache refreshes and prolonged stale results when the host clock changes during reads such as project search.
User Impact
Cached reads keep their existing lifetimes during a wall-clock correction. Project search continues to reuse fresh pages and refresh normally after its unchanged 60-second lifetime. No configuration change or migration is required.
Why This Change Was Made
Use elapsed time for the shared process-local cache's private freshness and cached-error deadlines. The same owner serves core and plugin SDK consumers; existing durations, stale-refresh behavior, capacity and cancellation ownership remain intact.
Evidence
5598c3dand head66c26e7:python3 swr-cache-clock-proof.py --checkout "$CHECKOUT" --node-dir "$NODE_DIR" --output "$OUTPUT" --expect "$PHASE"BASE
5598c3d76bcb28cacaf864724d52ccb4c8ccdd26and product HEAD66c26e75478d8fe8877faf48c383ed8f81e551bfwere clean normalnode --import ./scripts/tsx.mjs scripts/build-all.mts cliStartupbuilds (262.108s and241.217s). Actual build-info and clean build stamps match both full commits. Native Linux x64/Ubuntu24, Node26.12.1; no source-server or copied dist substitute is used.The same command and two immutable collectors ran on each ref.
PHASE=baseorheadselects observations only; it does not alter fixtures, timeouts or product behavior. Use a fresh output directory outside both checkouts and the qualified local Ubuntu24 image tag named in the complete wrapper below (actual image IDsha256:39a6e6f0c5f1fc700b3eab6c19b973f8c01105e2a5efa37c264d0d8130353873).The child-only preload changes
Date.nowfor exactly one RPC and restores offset0 infinally; native timers,performance.now, OS and parent clocks remain real. Each phase records offsets[0,3600000,0]. The normal-TTL control waits the full original duration, and the separate live query proves the same entry still reaches the real peer. Millisecond timings describe these observed runs and are not benchmarks.The peer is a native private HTTPS server serving a valid nonempty GitHub-compatible response. It uses the existing
gateway.github.host/apiBaseUrlcontract (https://HOST/api/v3) andgateway.projects.nativeGitHubSearch:false, validated by official narrow Doctor. A generated private CA is checked withopenssl verifyand trusted throughNODE_EXTRA_CA_CERTS; TLS verification and SSRF policy are not disabled. All actual requests are anonymous, all actual replies report credential:missing, and no live account/provider/channel is configured. The full response fixture and original endpoint setup are visible in the collector. This proof checks ordinary shared-cache behavior through the public RPC, not GitHub service behavior.Both runs preserve config bytes. Client stop, Gateway exit0, forced=false, peer close, offset0 and absent owned container are recorded. Raw receipts, peer JSONL and clock JSONL match the readback-only validator. Startup hello/credential details and unrelated local paths are omitted from the public projection; all14 actual RPC values and all9 actual GET rows remain visible below.
src/infra/stale-while-revalidate-cache.test.ts7b22fbdb54fesrc/gateway/project-github-search.test.tsdc0015d5ae82src/agents/github-oauth-client.test.ts0af2989876dfsrc/agents/github-read-identity.test.ts0af2989876dfsrc/gateway/server-methods/sessions-github-read.test.ts0af2989876dfsrc/gateway/server-methods/sessions-github-read.target.test.ts0af2989876dfsrc/gateway/server-methods/board.github-actions.test.ts7b22fbdb54fesrc/gateway/server-methods/control-ui.github-preview-refresh.test.ts7b22fbdb54feextensions/github/src/preview.test.ts7b22fbdb54feextensions/opencode/session-catalog.test.ts7b22fbdb54feextensions/feishu/src/bot-group-name.test.ts7b22fbdb54feThe owner retains all 8 existing rows and adds 4 rows crossing forward/backward wall steps with success/error TTLs. Each new row holds elapsed time fixed during the wall step, then verifies TTL-1 and the unchanged TTL boundary. Nine consumer test files keep their original assertions/durations while controlling the elapsed clock; the unchanged Feishu control verifies native fake-timer progression. In total 241 cases across 11 individually run files pass. Targeted types 20.548s, typed lint 131.161s and format 0.293s pass. Line-cap 1.373s, max-lines 16.601s, exact test-lines 3.286s, mock-export 43.625s and diff 0.191s pass. Test growth 41 LF (owner 32 + fixture 9) has one exact 41 allocation; no shared ceiling, timeout or TTL is widened.
The 31–288s consumer costs retain existing whole-file checks and include first worker/package-boundary preparation and shared artifact ownership. Original production fails all 4 new wall-step rows (9.844s, assertion RED). One initial typed-lint run (491.970s, including first declaration preparation) caught a new local catch-parameter shadow; renaming that parameter is test-only and final typed lint passes. An earlier TLS preflight had an invalid fixture CA, zero peer GETs and no wall step; it is retained as a harness failure and is excluded from product RED. The explicit valid CA recipe was frozen before both reported runs.
Source checks retain their actual dirty-BASE snapshot IDs in the table. Final owner/types/lint/format bind
7b22fbdb54fe134d746f46193613c537b1ab9dbf82e90b10b4c592788af211e6; earlier unchanged consumers/ratchets are reused only with exact relevant byte/line/inventory equivalence. All12 final source/test/allocation hashes equal committed HEAD. Normal build and runtime proof above actually ran on clean committed HEAD. Independent complete-candidate source review passed under the authorized delegated fallback; the unavailable standard helper is not represented as executed. Hosted CI remains NOT_RUN.Uncovered: Actual OS/NTP clock changes, native macOS/Windows, live GitHub credentials/accounts, every SDK consumer at runtime, backward/error-TTL cases through the live Gateway, installed upgrades, full suite and hosted CI. Backward and cached-error behavior have independent owner regressions. The peer is a local native TLS GitHub-compatible fixture; this is no live-provider or benchmark claim.
Complete actual paired BASE and HEAD readback
The projection retains whole actual project-search RPC responses, actual external request rows, raw clock rows, timings, controls, build identities, original raw-file hashes and cleanup. It selects only stated relevant fields; it does not synthesize or rewrite observed response values.
{ "base": "5598c3d76bcb28cacaf864724d52ccb4c8ccdd26", "head": "66c26e75478d8fe8877faf48c383ed8f81e551bf", "snapshot": "7b22fbdb54fe134d746f46193613c537b1ab9dbf82e90b10b4c592788af211e6", "fileSha256": { "config/test-lines-allocations/alix-stale-cache-clock-20261029.txt": "c6dfccf9203103d85dc496b552cf7fce76b17a576b764abe50c42284de477bc1", "extensions/github/src/preview.test.ts": "c30d5f79a83f365192981973deea60b90f91abe3051b35c2682e584fbc8e846f", "extensions/opencode/session-catalog.test.ts": "2e5001a59119e2f8218a19cfe81ecdbc875eb575000ab00eb61ce8c532ab0b12", "src/agents/github-oauth-client.test.ts": "1d15f611c0d5a6582f87f57c9b461133fcc4b9137e9c4c58305c7cfdcbe1b2e0", "src/agents/github-read-identity.test.ts": "25eee8c7732f9af587dcb237dbe33afe9e77e7268c9e2f6c33c8aaf887d857e5", "src/gateway/project-github-search.test.ts": "a8c3022c1d6041c28efe465c9174cbfd86ffd06b31998cbd763235bf41b46bd0", "src/gateway/server-methods/board.github-actions.test.ts": "67fdd220d8937293103af8b475147e282ebefaf095fb2c77620da57949e47a2c", "src/gateway/server-methods/control-ui.github-preview-refresh.test.ts": "bc7e46cb927e8fe77bae5cf9806f216128035d3ce9e04edfb0111348e4763345", "src/gateway/server-methods/sessions-github-read.target.test.ts": "4a41821968064d91bac3f6e0a996caa63fd91944026202853a39d7ec041b72f5", "src/gateway/server-methods/sessions-github-read.test.ts": "ff23e6ccba26a1f5d53efb320946e52046e0d744220cc59d8b37bf92947a624a", "src/infra/stale-while-revalidate-cache.test.ts": "952b276eb40cdad36b02a03db83b863de8d58d9b4a2a6555975654e5fe2376ef", "src/infra/stale-while-revalidate-cache.ts": "aa0949ffb020b886953e43e2f94189ebfef425ac7ce89c1086bfdf17030bd36a" }, "collectorSha256": "c25bd40c0712eda7fe9d215898597c2127a6defca7c98ac48e398e8813500610", "innerSha256": "7fac5bbef2496fe956c03dfc9da4b76829237879d9f8f992134176b55202106e", "validatorSha256": "e2326d376c84f92c6a5e6d95935893f7bb79163a9f2a0441c2774758ab050a36", "baseBuild": { "receiptSha256": "876deea3ad4e005b5513df335aa2f050e54e54f1ccecabe0c9b4cc5f339d09a5", "logSha256": "3191393b63e87923d3851e5e9aa7a163303789abfd2976dfdb3ef44c920d82ff", "buildInfo": { "version": "2026.10.8", "commit": "5598c3d76bcb28cacaf864724d52ccb4c8ccdd26", "builtAt": "2026-10-29T10:34:34.652Z", "buildId": "2026.10.8-5598c3d76bcb-2026-10-29T10-34-34.652Z" }, "buildStamp": { "builtAt": 1793270323412, "head": "5598c3d76bcb28cacaf864724d52ccb4c8ccdd26", "inputsClean": true, "inputSignature": "bdde04dceb0c48d460dce8a9c35c27571cf6c86bceb0cba3de84b2dab5179f6a" }, "elapsedMs": 262108, "command": [ "node", "--import", "./scripts/tsx.mjs", "scripts/build-all.mts", "cliStartup" ], "code": 0 }, "headBuild": { "receiptSha256": "b0d6883533b53283a5fa024bc21c2f0921ab8ed10d8012330410eb4518a55573", "logSha256": "92b737d29b419d4ca90d0573eb045cb7905919d07bb74fd84cd5a4c8ccb14b6c", "buildInfo": { "version": "2026.10.8", "commit": "66c26e75478d8fe8877faf48c383ed8f81e551bf", "builtAt": "2026-10-29T13:17:15.997Z", "buildId": "2026.10.8-66c26e75478d-2026-10-29T13-17-15.997Z" }, "buildStamp": { "builtAt": 1793280064371, "head": "66c26e75478d8fe8877faf48c383ed8f81e551bf", "inputsClean": true, "inputSignature": "8146dfeea8f2a2830295fe4c0464b35ee56899632c7f46f30bf49df20e421288" }, "elapsedMs": 241217, "command": [ "node", "--import", "./scripts/tsx.mjs", "scripts/build-all.mts", "cliStartup" ], "code": 0 }, "rawSha256": { "base": { "receipt.json": "c8acd511dc864b819b62eb20ea1de1f7d773be9ad348be6eb39c7c4a4181f3f5", "wrapper.json": "6949ee19e3f14620120b1e0e8b641b442392a203043f88201c910bf951f9aff6", "requests.jsonl": "6610a4ccc95240dedbcc814ef86d3f9ae14b4828edd24cef100b0999fed6f1b9", "clock.jsonl": "482ced4ca0c9b64fedb52d1f8ea4eefa996b85489d36b21713863ab994f7b999", "clock-step.mjs": "b9dfbf57dda64b5e4696c66d83e8e72516e205aa337f085534cadd01dbcf6c7f", "gateway.stdout": "b3f9c3230403c14d8fcb1e7ffbd05c4707f29c8654e98de698c6ac2a893b09de", "gateway.stderr": "625b54de1b1627a55c5bfd0830c858bcfe88e9d60c8acb920d7ce748a1e0a667", "collector.stdout": "19a4001024146c98a85a0a1d14ffe3e1c13996aeedb1d47074b071410876c48a", "collector.stderr": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, "head": { "receipt.json": "a9db169663c3efb9631bd0bc7d244a65d3f2c05b87e8b83c2b5f8ab2690be645", "wrapper.json": "b50dd5917b44e18de6e32bc5c43762b0e75623a382cb1844c055996c06307c96", "requests.jsonl": "6e4951a096c1cf2685c0b48ae822a091cdb78a14903cfe7396a3766005f4f56d", "clock.jsonl": "a3a6a3c3a2dae7ae4dcc0f1bd11b7fd115dc2c72af0a61e1a884011d55f55452", "clock-step.mjs": "b9dfbf57dda64b5e4696c66d83e8e72516e205aa337f085534cadd01dbcf6c7f", "gateway.stdout": "dc8b0541eab3a0cef8dd81b216d6ac13301af6a0a744b2817d221bb483f9df03", "gateway.stderr": "008318ce8159488204221f69839cab93a3bf2d0c0426895fe7e079d0dde823ec", "collector.stdout": "1c8997e34bdb1e07a3fd8531ec718fc4246b603a9112a73eff5661747381ceb4", "collector.stderr": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" } }, "projection": "Whole actual project-search RPC values, external HTTPS GET rows, clock rows and cleanup are retained. Unrelated startup hello/credentials, local commands/paths and doctor details are omitted; doctor ok=true was verified. Only the stated fields are selected; actual values are not replaced.", "baseReadback": { "expected": "base", "observed": "RED_PREMATURE_REFRESH", "result": "PASS", "stages": [ { "name": "official-narrow-doctor-completed", "elapsedMs": 2489.6152140000004 }, { "name": "normal-gateway-hello", "elapsedMs": 19719.452922 }, { "name": "cold-warm-one-GET-per-query", "elapsedMs": 19841.104298 }, { "name": "single-wall-step-readback-and-offset-restored", "elapsedMs": 19861.303226 }, { "name": "real-TTL-control-completed", "elapsedMs": 79855.519423 } ], "requests": [ { "method": "GET", "path": "/api/v3/search/repositories?q=swr-jump-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-jump-fixture in:name,description", "count": 1, "authorizationPresent": false, "at": 19889.086646 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-ttl-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-ttl-fixture in:name,description", "count": 1, "authorizationPresent": false, "at": 19914.171713 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-jump-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-jump-fixture in:name,description", "count": 2, "authorizationPresent": false, "at": 19938.016184 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-live-control+in%3Aname%2Cdescription&per_page=10", "query": "swr-live-control in:name,description", "count": 1, "authorizationPresent": false, "at": 19942.956861 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-ttl-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-ttl-fixture in:name,description", "count": 2, "authorizationPresent": false, "at": 79938.862318 } ], "rpcs": [ { "label": "jump-cold", "query": "swr-jump-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 99.48365899999772, "at": 19806.045246 }, { "label": "jump-warm", "query": "swr-jump-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 2.8196810000008554, "at": 19906.283733 }, { "label": "ttl-cold", "query": "swr-ttl-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 7.655451999999059, "at": 19909.669676 }, { "label": "ttl-warm", "query": "swr-ttl-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 8.177107999999862, "at": 19917.921809 }, { "label": "single-forward-wall-step", "query": "swr-jump-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ], "stale": true }, "elapsedMs": 4.812412999999651, "at": 19929.125804 }, { "label": "restored-clock-new-query-positive-control", "query": "swr-live-control", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 6.612197999998898, "at": 19938.657865 }, { "label": "unshifted-real-60000ms-TTL", "query": "swr-ttl-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ], "stale": true }, "elapsedMs": 11.333214000012958, "at": 79920.384027 } ], "clock": [ { "offsetMs": 0, "at": 2637.110737 }, { "offsetMs": 3600000, "at": 17347.216262 }, { "offsetMs": 0, "at": 17357.037022 } ], "wallStepWindowMs": 6.779824000001099, "jumpRequestsAtPositiveControl": 2, "realTtlElapsedMs": 60002.43739399999, "configInitialSha256": "1fbb8225fec13fb43765edfc86bdea4ef84bdef21d402c37a927eab9925dfdcf", "configBeforeReadsSha256": "1fbb8225fec13fb43765edfc86bdea4ef84bdef21d402c37a927eab9925dfdcf", "configReadsUnchanged": true, "cleanup": { "gateway": { "code": 0, "signal": null }, "forced": false, "peerClosed": true, "offsetRestored": true }, "elapsedMs": 80377.46000400001 }, "headReadback": { "expected": "head", "observed": "GREEN_ELAPSED_TTL", "result": "PASS", "stages": [ { "name": "official-narrow-doctor-completed", "elapsedMs": 2684.540688 }, { "name": "normal-gateway-hello", "elapsedMs": 18792.624697 }, { "name": "cold-warm-one-GET-per-query", "elapsedMs": 18961.685384 }, { "name": "single-wall-step-readback-and-offset-restored", "elapsedMs": 18983.874751 }, { "name": "real-TTL-control-completed", "elapsedMs": 78976.393295 } ], "requests": [ { "method": "GET", "path": "/api/v3/search/repositories?q=swr-jump-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-jump-fixture in:name,description", "count": 1, "authorizationPresent": false, "at": 19000.652213 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-ttl-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-ttl-fixture in:name,description", "count": 1, "authorizationPresent": false, "at": 19038.607495 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-live-control+in%3Aname%2Cdescription&per_page=10", "query": "swr-live-control in:name,description", "count": 1, "authorizationPresent": false, "at": 19073.370302 }, { "method": "GET", "path": "/api/v3/search/repositories?q=swr-ttl-fixture+in%3Aname%2Cdescription&per_page=10", "query": "swr-ttl-fixture in:name,description", "count": 2, "authorizationPresent": false, "at": 79066.022662 } ], "rpcs": [ { "label": "jump-cold", "query": "swr-jump-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 134.343875999999, "at": 18885.47509 }, { "label": "jump-warm", "query": "swr-jump-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 5.286417000002984, "at": 19020.611026 }, { "label": "ttl-cold", "query": "swr-ttl-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 22.207854000000225, "at": 19026.517529 }, { "label": "ttl-warm", "query": "swr-ttl-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 3.6152189999993425, "at": 19049.473823 }, { "label": "single-forward-wall-step", "query": "swr-jump-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 11.43742199999906, "at": 19055.360496 }, { "label": "restored-clock-new-query-positive-control", "query": "swr-live-control", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ] }, "elapsedMs": 5.617254000000685, "at": 19069.759156 }, { "label": "unshifted-real-60000ms-TTL", "query": "swr-ttl-fixture", "value": { "credential": "missing", "projects": [ { "name": "cache-clock", "fullName": "fixture-owner/cache-clock", "cloneUrl": "https://127.0.0.1/fixture-owner/cache-clock.git", "webUrl": "https://127.0.0.1/fixture-owner/cache-clock", "private": false, "description": "SAFE_CACHE_REPLY_1", "defaultBranch": "main" } ], "stale": true }, "elapsedMs": 7.802329999991343, "at": 79050.710539 } ], "clock": [ { "offsetMs": 0, "at": 2668.475845 }, { "offsetMs": 3600000, "at": 16272.044932 }, { "offsetMs": 0, "at": 16286.820158 } ], "wallStepWindowMs": 12.364440000001196, "jumpRequestsAtPositiveControl": 1, "realTtlElapsedMs": 60001.210605, "configInitialSha256": "a9d859067c4e704e6f807b03591716bd8b1e75d3687d203f732aa5c5c0c24a75", "configBeforeReadsSha256": "a9d859067c4e704e6f807b03591716bd8b1e75d3687d203f732aa5c5c0c24a75", "configReadsUnchanged": true, "cleanup": { "gateway": { "code": 0, "signal": null }, "forced": false, "peerClosed": true, "offsetRestored": true }, "elapsedMs": 79507.278512 } }Complete frozen native wrapper
Save both collectors together outside the clean checkouts. The wrapper checks exact clean build metadata, creates the private native CA/leaf certificate and isolated directories, mounts the checkout and supported Node read-only, and removes only its own container. The native image is a local qualified Ubuntu24 resource; its exact tested ID is above.
Complete frozen public-Gateway and native-TLS collector
This imports the built public GatewayClient, starts the normal built Gateway, sends actual RPCs and reads the separate HTTPS peer. It does not import the cache or replace an owner/transport. All credentials are named synthetic fixture values.