land: area/client-reliability cfc20107bb (client-reliability)

This commit is contained in:
thePR0M3TH3AN committed 2026-10-20 17:06:02 -04:00
commit 2ea6f0682b
5 files changed
+32 -2

No files matched your search

@@ -1,10 +1,11 @@
{
"id": "client-reliability-8",
"area": "client-reliability",
"status": "in-progress",
"status": "done",
"title": "Measure and scope active URL-media last-owner cancellation with shared/rejoin controls",
"blockedOn": null,
"addedOn": "2026-10-20",
"filedAt": "6609269ea11aaff753e6d9f3d8b91eb04e219a20",
"evidence": "At5b77fd20 actual observer/controller controlled media last-owner retains1resource/3listeners/1timer/1slot/unsettled1;strict disposed/fifo checks naturally fail after cleanup. Queue3active/2waiting unchanged until controlled completion;shared/cross/legacy/rejoin/timeout/error/replacement7controls exit0,existing lifecycle18pass. Proposal controller retain/active-media settle cleanup only,explicit queued-only cache/rejoin test contract correction pending dispatch independent confirmation/routing. Evidence test_logs/TEST_LOG_2026-10-20_20-55-00_client-reliability-8-investigation.md. No product/tests/full/build/browser changes."
"evidence": "Implementation3474668a durablylanded43cb1bafe69f0bb3bce698e0b748281d1a04c061 via unchanged normalgateexit0/432discovered+unique file starts;candidate ancestry0. Focused37/3files,lifecycle29,14restored failing mutants,lint11. Active media final-owner cleanup/null/no cache with same-turn replacement/shared/cross/legacy/FIFO/live timeout controls. Strict spec correction documented. FULLSLOT released21:03UTC. Dispatch integrated preview/build/native qualification pending;no worker browser/build or HEAD/HLS/torrent/realfallback/CPU proof. Evidence test_logs/TEST_LOG_2026-10-20_21-03-00_client-reliability-8-landed.md.",
"closedOn": "2026-10-20"
}
@@ -0,0 +1,10 @@
# Item8 durable normal landing
- Candidate `3474668a832f0dc4d58edb93afbc8786f9509114`;postcommit merge unstable3dac0afb already up-to-date. Durable landed/tested merge `43cb1bafe69f0bb3bce698e0b748281d1a04c061` at21:02:29.184UTC. MCP land_status state landed,git log -1 unstable exact43cb1baf,git merge-base --is-ancestor3474668a unstable explicitly exit0. Backlog closed only afterward.
- FULLSLOT granted20:56:47.586UTC;request20:56:19UTC,wait about29seconds. Submit20:57:05.065UTC. Initial sandbox auto-drain exited before gate;durable queued/alivefalse confirmed. Approved `env -u NODE_TEST_CONTEXT -u UNIT_TEST_SHARD UNIT_TEST_TIMEOUT_MS=60000 fleet lander start` recovered same submission;hostdrain383053 gating since20:57:26.262UTC,independently confirmed dispatch. No duplicate submission or altered gate. FULLSLOT release mailbox21:03:01UTC;no worker build/browser.
- SINGLE authoritative full: `env -u NODE_TEST_CONTEXT -u UNIT_TEST_SHARD UNIT_TEST_TIMEOUT_MS=60000 node tools/fleet/bin/landq.mjs submit`. Existing normal shell runs npm ci --ignore-scripts (npm install fallback) then npm test. Durable detail explicitly exit0. Unchanged runner/package/config from3dac0afb;recursive discovery432,quarantine empty,no filters,no shard. Retained actual artifact432unique file starts. No invented stdout All unit tests passed marker (absent).
- Durable result preserved `/tmp/client8-normal-result.json`,3468bytes,SHA256 `2bf0fcd2d62f2743ee716e7877a2d25e0d151c222b3a277378c434f392e32275`. Original `/home/user/.local/state/agent-fleet/bitvid/landq/results/3474668a832f0dc4d58edb93afbc8786f9509114.json`.
- Unit stdout/stderr/file-start artifact preserved `/tmp/client8-normal-unit.log`,709248bytes,SHA256 `514cdc882084dc55ddaf59773c46658ef5970acfec5f47daf0e61979a9fdb9ae`. Not complete npm install/full-process transcript or guarantee of final-marker flush. Raw logs uncommitted.
- Prior exact-candidate focused37/37 across3files,lifecycle29/29,14/14restored failing runtime mutants,lint11exit0;dispatch independent exact-candidate lifecycle29/29 natural313ms. New strict boundary resources/src/listeners/timer/slot/FIFO/cache/inflight/badge verified with controlled IO. All new/changed test contracts documented in unique spec/integrity note.
- Product only controller18added/2removed;no observer/cache/HEAD/HLS/torrent/app/runner/config modifications. Existing finalizer identity guard reused. Explicitly scoped Stage3 active VIDEO-element cancellation,not whole Stage3 completion.
- Remaining dispatch-owned integrated preview/build/native browser qualification;no worker browser/build or actual playback/network bytes/CPU/RSS/live-peer proof. HEAD/HLS/torrent active cancellation remains unimplemented. No optional next task.
@@ -0,0 +1,9 @@
# Item8 bounded native browser qualification
- Dispatch slot grant21:04:01.885UTC after independent integrated build/artifact08620a71/preview audit (dispatch evidence,not worker-rerun). Worker uses `/home/user/Documents/GitHub/bitvid-dispatch/dist` read-only,own ephemeral localhost HTTP server;preview3000 untouched. Script `/tmp/client8-native-smoke.mjs`,retained log `/tmp/client8-native-smoke-approved.log`.
- `env -u NODE_TEST_CONTEXT node /tmp/client8-native-smoke.mjs` initial sandbox exit1 at listenEPERM before browser launch. Approved exact same command hostrun NATURALexit0. No build/full test rerun/product edit.
- Both native Chromium and Firefox: actual native DOM/IntersectionObserver/controller built modules,HTMLMediaElement native src/removeAttribute/load/pause;registered media listeners measured. Native media requests intercepted and held by Playwright (no public IO),HEAD stubbed and media loadeddata/error completion explicitly synthetic. Cache/inflight state is a small controlled facade in this browser smoke;actual shared cache covered in unit scenarios. This is bounded lifecycle qualification,not decoding/playback or whole-app baseline.
- Final-owner disposal immediately native src=null/listeners0/resources0;promise null,slot0,cache0,oldbadgechecking;obsolete mirror HEAD0. Fresh same-source request succeeds (totalHEAD2). Shared live-owner ordered mirror healthy (HEAD2). Rejoin after final disposal starts NEW primary then mirror (HEAD3),livehealthy/oldchecking. Each final resources0/slots0. Hidden URL-only card eager probe/reveal beforehidden=true/after=false. Both publicrequests0/pageerrors0.
- Native intercepted-media requests8perbrowser;requestfailed observations7Chromium/8Firefox at logging snapshot. These are observed protocol events,not a guarantee all pending native requests had aborted before snapshot;no assertion of network-byte savings. Completion controls synthetic;no real media decoding/source fallback/livepeer/CPU/RSS proof.
- All browser contexts,browsers and own private HTTPserver closed through finally,natural process exit0. Browser release event sent21:05UTC. No other process/worktree modified. No browser FIFO scenario added;actual controller/cache FIFO already strict unit-covered.
- Product fullgate43cb1baf remains authoritative;closure metadata892c7f52 committed clean but not resubmitted for another fullgate under dispatch no-rerun directive. Dispatch owns metadata batching/landing and remaining handoff.
@@ -0,0 +1,6 @@
- [x] Investigation,independent confirmation,explicit minimal fix/spec routing.
- [x] Controller media cleanup + strict replacement/shared/FIFO/live timeout controls.
- [x] Focused37/3files,14restored mutants,lint11pass.
- [x] Single unchanged fullgateexit0/432files,durable43cb1baf andcandidate ancestry0;close item8.
- [ ] Closure metadata landing coordination with dispatch.
- Dispatch owns later integrated preview/build/native qualification;worker IDLE/no optionaltasks.
@@ -0,0 +1,4 @@
- [x] Product43cb1baf normalfull432exit0/37focused/14mutants/lint11/ancestry0;item8closed.
- [x] Dispatch integrated build/preview plus worker native Chromium+Firefox bounded lifecycle controlledIO pass;all worker browser/server resources released.
- [ ] Dispatch route/batch final docs metadata landing;no duplicate full/build.
- No optional work. HEAD/HLS/torrent active cancellation,actual media fallback/CPU/livequalification remain outside completed scope.