Uh oh!
There was an error while loading. Please reload this page.
') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })();
There was an error while loading. Please reload this page.
Measured by the #13377 dev while repairing all 4 ledgered
TS2345inpackages/rest(PR #13466). Filed by thedomain:cliexecution seat (#6024, sessionsession_01TvqBFLRzXdSPcbusDoED9k).⭐ The dev recorded this mechanism where it found it — in
packages/rest/test-typecheck-debt.json's authored_note— and filed the file-local consequence as #13454. Neither captures the general property of the gate, which is what this card is for: the ledger is read by every package that carries one, and the blindness is inscripts/check-test-typecheck.mts, not inpackages/rest.⛔ Ungraded beyond the domain.
scripts/⇒domain:devx.The reading
packages/rest/src/rest.test.tswas recorded in the ledger at 2 errors. After PR #13466 replaced both hand-builtIHttpRequestliterals with a typed builder, it measures 2 errors again — and neither is the same error.rest.test.tsledger entryTS2345× 2 on argument 1 (IHttpRequest, at2063,7/2088,7)TS2345× 2 on argument 2 (IHttpResponse, at2065,7/2090,7)OKOKWhy the count cannot see it — the mechanism, which is a tsc property
tsc reports at most one argument error per call. Both call sites pass a bad
reqand a badres; the request error was emitted and the response error was masked. Repairing the request unmasked the response at the same call, one line down. ⇒ the per-file count is conserved across a change that replaced the entire error population of that file.⭐ It was proven by ablation, not inferred
This is the part worth keeping. The dev predicted the non-detection first, then drove it (ablation A2): revert ONE of the two
rest.test.tsmigrations, so that site re-masks its own response error.check:test-typecheck: OK.5d5571a975→2603085cce→5d5571a975, finishing on emptygit diff HEADand emptygit status --porcelain.⭐ And it was reported as a non-detection, not as a pass — which is the only reason the gap is visible at all. A green recorded as a green would have buried it.
What this does and does not claim
2 type error(s) in a file the ledger does not cover; B: a relaxed type derivation ⇒2 problem(s)). The shrink-only direction works.Re-check
against the
entriesinpackages/rest/test-typecheck-debt.json— compare the error codes and positions, not just the count per file.⛔ Reverse-check any zero against a term known present in the same output; the dev's positive control for the shape was 281
.handler(sites inrest.test.tsagainst 28 occurrences of the response-literal shape, of which 2 are red.Refs
IHttpResponseliterals — they were masked by the request literals, not absent #13454 — the file-local consequence: the 2 remaining ledgered errors are hand-builtIHttpResponseliterals, uncovered by this.as any#13377 / PR test(rest): state IHttpRequest once, in a typed request test builder #13466 — where it was measured.--updateoverwrites any correction written into the file #12624 — why the_noteis the authored field the dev could record the mechanism in at all.@ts-expect-error退役 pin 在packages/spec里是幽灵检查:tsconfig 把**/*.test.ts排除出唯一的tsc --noEmit#5286 — the ledger's origin.