Skip to content

Window Companion: measure frame and heap costs and agree performance budgets #1167

Closed

Description

@DoodleBears

Parent

Specification #1135. This performance qualification was split from #1142 by explicit Human decision on 2026-10-08; it does not block #1166 functional review or #1143 mouth work.

What to build

Establish measured browser frame-time and retained-memory budgets for multiple in-window companions using the real installed DSH path, so supported load and lifecycle costs are reviewable and regressions can be detected. Preserve the confirmed absence of a pin cap or +N fold.

Acceptance criteria

  • Record exact parent/current commits, pinned DSH/browser/device, viewport, visible companion/card counts, foreground/background state and repeatable scenario durations.
  • Compare frame-time distributions and long frames for idle, roaming, drag/release and concurrent message reveal/expanded reading; do not infer FPS from the sampled interaction video.
  • Measure retained browser heap after settling and after at least ten pin/unpin or archive/reactivation cycles using the same garbage-collection/snapshot procedure on both revisions; inspect retained companion resources and listeners.
  • Include background/foreground and bounded reconnect return; preserve current reading and cold-start no-replay behavior while measuring cost.
  • Record asset/bundle costs separately from frame/heap costs, then agree measured budgets with the Human before claiming performance acceptance.
  • Resolve any measured regression at its owning seam with focused coverage, one issue-backed PR if code changes are needed, and actual runtime evidence.

Known functional baseline: PR #1166 head 6bf3c8a6159af51804125ade4a0a19f67d330b7a, parent 75a236a56942f75c3ebbbe84b88bde2e6fc3abcb; official DSH 0.2.0-rc.1. Windows 11 Pro 10.0.26200; Intel i5-12600KF (16 logical processors), 63.8 GiB RAM; Chrome 154.0.8037.97. Five visible companions fit a measured 960 × 640 viewport; three repeated archive/reactivation pairs passed functional checks. Bundle JS 2,582,922 → 2,587,992 B (+5,070 B), gzip 654,047 → 655,240 B (+1,193 B). Saved unsupported-rig PNG: 10,408 B. Companion subtree nodes after deleting the fifth identity: 1,080 → 1,062. These are structural/build measurements, not frame/heap acceptance.

Original #1166 limitation: the browser-control surface lacked profiler/heap capture. On 2026-10-08 the Human authorized Chrome DevTools MCP; real trace and GC heap collection now works, with first paired lifecycle measurements recorded in the progress comments. Qualification remains incomplete: the official MCP currently forces focused-page emulation, so actual hidden/background return still needs a legitimate profiling path. The Human confirmed scoped budgets, including walking presentation-interval p95 ≤16.7ms; see the decision record. Historical walking observations exceeded that limit. A new observer-clean same-build short comparison records candidate walking p95 8.388–8.456ms versus layout-control 14.289–14.628ms, with no >50ms frame/presentation events across sixteen traces; see the controlled checkpoint. This formal Avatar0.10.0 diagnostic series does not qualify the intended final Avatar0.10.1 build, a matched quiet-machine run or the remaining concurrent/heap/recovery gates. Budget agreement and these samples are not overall acceptance.

Blocked by

None: functional baseline is available in #1166; profiling can proceed independently of #1143.

Activity

  1. added this to the v1.2 milestone on Oct 8, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:ui-uxInteraction and visual experience; may accompany a code-layer area
    feature:avatarPersonaBot avatar media and activity frame
    scope:tracerHuman-testable implementation slice
    on Oct 8, 2026
  3. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex
    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269 (not a DSH Session)
    • Issue scope: use the authorized official Chrome DevTools MCP to compare the recorded parent/current lifecycle baseline, then qualify relevant current companion motion costs; record real traces, retained heaps and limitations before asking for measured budget agreement.
    • Branch: codex/1167-companion-performance
    • Started: 2026-10-08 14:02 UTC
    • State: active

    Profiler connection and private trace/heap smoke checks now succeed. These checks do not establish multi-companion performance acceptance.

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 8, 2026
  5. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent progress — profiler connected; first paired baseline recorded

    Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269. Scope remains active; this is not performance acceptance.

    Human-authorized official Chrome DevTools MCP1.10.1 now records real authenticated DSH traces and GC heap snapshots. Compared the issue's exact parent 75a236a5 and lifecycle baseline 6bf3c8a6, using clean installed DSH0.2.0-rc.1 builds, five real seeded PersonaBots,960×640/DPR1, dark/Chinese, Windows11/i5-12600KF, installed Chrome154.0.8037.98 (current UA verified; parent patch inferred from the same unchanged installed binary).

    Scenario Parent animation-frame wall p95 Current animation-frame wall p95 Frames >50ms
    Idle, about10s 8.487ms 8.549ms 0 /0
    Roaming, about10s 7.619ms 7.746ms 0 /0
    Three drag/releases, about20s 7.846ms 7.870ms 0 /0

    These are actual DevTools trace events, not video-derived FPS or CPU execution time. One successful sample per revision/scenario; input cadence and exact trace durations are recorded, not assumed identical. No statistical parity or agreed budget is claimed.

    Both revisions completed ten real mount/dispose cycles through existing Client pin-button handlers, observing4→5 companions each cycle. Whole-page post-GC graph totals: parent80,233,694→78,750,651B; current80,050,498→78,702,187B. These are not Companion-only retained bytes. Both retained5 WindowCompanion,5 CompanionMotion,5 native EventSource; native EventListener/V8EventListener counts stayed682/623;0 detached nodes named bh-companion. Bounded official retaining paths were saved for owner/child/motion/bubbles. This run found no accumulation of those counted resources; it does not prove absence of every leak.

    Rebuilt client bundle/gzip-level6 deltas remain+5,070/+1,193B, separately recorded.

    Remaining: repeated/longer loads, concurrent message reveal/expanded reading, actual background return and bounded reconnect/cold-start costs, latest spring/mouth branch costs, Human budget agreement. Background attempt failed its precondition: after bringing another tab forward, DSH still reported visible. Official MCP1.10.1 McpPage.init() always enables focused-page emulation, with no public emulate off switch; no hidden lifecycle was fabricated or accepted. Earlier tool timeouts and failed preparations were excluded from the comparison.

    Raw traces/heaps remain private. The owned MCP daemon/browser was stopped, closing its test tabs. Feature PRs remain draft/unmerged; no product code changed in this checkpoint.

  6. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    #1167 — concurrent reveal observation

    Recorded 2026-10-08 UTC, following the lifecycle checkpoint. Partial measurement, not a passed performance budget.

    Same lifecycle comparison: parent 75a236a5, current 6bf3c8a6; neither is the later #1180 motion branch. Same machine/browser configuration, 960×640, dark/Chinese, five real seeded pixel Bots, walking paused, CPU1× and unthrottled network.

    Both runs sent five Human inputs through the owning Host RPC. Each native model used channel_send three times with exact 651-character bodies. All fifteen fresh Bot-authored canonical DM messages were independently verified. Real companion SSE drove incremental reveal; a public character focus expanded Bot5 after ten or more cards were present. Both reached fifteen rendered cards and the expanded presentation. Cards overlap at this narrow viewport; fifteen DOM cards does not imply fifteen independently readable cards.

    Actual trace observation Parent Current
    Trace duration 42.200s 38.029s
    Target AnimationFrame wall p95 11.657ms 12.883ms
    Target AnimationFrame wall p99 17.720ms 35.806ms
    Frame wall duration >50ms 18 35
    Maximum frame wall duration 785.692ms 319.362ms
    Distinct presentation interval p95 16.723ms 17.582ms
    Presentation intervals >50ms 20 39
    Whole-page trace CLS 0.21 0.79

    These are actual DevTools AnimationFrame wall durations and presentation intervals, not JavaScript CPU cost or display FPS. Frame attribution uses the official parser's main-frame renderer process; one unrelated in-bounds frame from a second process was excluded in the parent run. Boundary frames and duplicate presentation timestamps are handled separately. Current had only its main renderer in this sample.

    Single successful sample each. Model/tool arrival timing, durations and pre-existing active Chat history differ; current had one additional readiness-test exchange. DOM geometry observation and screenshot/focus tool calls also incur work during the trace. Thus whole-page CLS and spikes cannot be attributed to Companion, or described as a proven lifecycle regression, from these samples. They do show that concurrent output is substantially heavier than idle and requires repeated, attributed profiling before agreeing budgets. Both completed runs' consoles contain only the native form-field issue, with no new runtime errors.

    Before the successful current run, one real Client composer send and Bot reply succeeded while all five were mounted, then the page became blank. The first observed error was native SlotAssemblyError: scope 'session-maybe' rendered without an installed adapter at pinned RC1 ui-renderer/src/client/bindings.tsx:170; later stale-session/Connection errors followed. Failed console/DOM/screenshot were preserved. One explicit reload recovered the same Host and five companions; this is not a fix or causal diagnosis. The failed page is excluded from successful traces. This extends the unresolved native assembly investigation described in #1184.

    Both owned measurement pages were closed by stopping their isolated MCP browser after capture. Raw traces/console/owner messages remain private. Lifecycle heap observations in the earlier checkpoint remain unchanged. Remaining gates include repeated samples, latest motion/mouth costs, real background/resume and bounded cold/reconnect recovery, attribution of concurrent long frames, and Human-approved budgets.

  7. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Runtime qualification observation

    Task codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269, state active. During #1179 at integrated runtime ce926cb/formal pixel-avatar0.7.0, Chinese1559×865, two same-context local DSH pages were opened. First companion stayed live; second pin showed selected but no companion mounted. Read-only official MCP network inspection observed second companion GET pending, no companion subscription POST, no console errors. Bounded mount wait expired; browser closed, no native question created.

    Two independent official isolated browser contexts then both connected and completed real question reconciliation and correct-contract concurrent native answer acceptance(1accepted/1refused/1canonical answer). This supports connection contention as a hypothesis but does not establish HTTP connection-limit causality or fix same-context multi-tab behavior. No profiler/frame/heap acceptance is inferred from these captures. The observation needs a narrower causal probe before any source change. Exact screenshots/qualification: PR #1188 e00ab3c. Existing #1167 latest paired traces/background/heap/asset-cost/Human-budget requirements remain open.

  8. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Background precondition recheck

    Task codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269, active. At integrated runtime ce926cb, official MCP opened a real authenticated DSH document and installed only a read-only native visibilitychange recorder. After switching to the existing blank tab with bringToFront, no tool call targeted the original page for5seconds. Returning to that same document then read the recorded history: only visible, no hidden event; timeOrigin unchanged. Owned browser closed.

    This removes the earlier confound of evaluating the original page while nominally background. Actual hidden→visible qualification is still unavailable in this tool path; no hidden lifecycle, frame/heap metric or performance acceptance is inferred. Installed MCP source explicitly initializes focused-page emulation; no vendor edits, raw-protocol override or synthetic visibility were used. #1167 latest paired scenarios/retained-resource attribution/asset costs/Human budget remain unfinished.

  9. DoodleBears commented on Oct 9, 2026

    @DoodleBears
    ContributorAuthor

    Agent progress — repeated foreground performance checkpoint

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269. State: active; qualification remains incomplete.
    • Draft report PR: #1247, head 9b1a1bfc. No runtime or dependency change in this PR.
    • Actual parent 75a236a5 and candidate composition fc356883 / main 66d2767a / local unpublished Avatar owner ac9e257 measured through official DSH 0.2.0-rc.1 and Chrome DevTools MCP 1.10.1, Chrome 154.0.8037.98. Native dark, Chinese, 960×640/DPR1, five visible live companions, zero message cards; exact five saved recipe/portrait hashes match. Shell histories/rosters/setup/upstream application changes differ and are disclosed.
    • Eighteen traces: three each of idle, roam and native drag/release per revision, independently parsed frame wall and presentation intervals. Four post-GC heaps around ten actual 5→4→5 pin/unpin cycles per revision. Counted companion owners, motion, bubbles, EventSources and listeners do not accumulate within each run. Bounded retaining paths, including one deeper capped bubble query, are disclosed; no leak-free guarantee.
    • No sampled frame-wall duration above50ms. Roaming cadence still needs attribution: parent presentation p95 9.697–9.720ms versus candidate16.180–16.253ms; this is not physical FPS or an accepted budget. A controlled owning-feature comparison remains required.
    • Public numerical summaries match all18 actual distributions and four heap summaries. Formatting, public-data guard, image dimensions and bilingual ledger checks pass. Documentation Standards0 / Spec0 actionable findings against fixed latest fetched main66d2767a. CI remains tracked on the draft PR.
    • Original light-theme candidate collection remains private and excluded; the candidate was repeated with native dark setting. Raw traces/heaps/authentication/runtime logs remain private. Owned measurement browsers/tabs closed; published screenshot rendering is checked separately before final reporting.
    • Remaining: concurrent real reveal/expanded reading cost; actual hidden/background return (MCP still forces focused-page emulation); bounded reconnect/cold-start no-replay cost; controlled roaming attribution; supported-load/device envelope and Human agreement on budgets. Window Companion: measure frame and heap costs and agree performance budgets #1167 stays open. This does not authorize candidate Avatar publication or merging feature drafts.
  10. 22 remaining items

  11. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    Resumed qualification — measurement interference found

    Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269 (not a DSH Session). State: active for remaining #1167 qualification; the completed bounded report delivery in merged #1247 remains separate.

    Four fresh native DSH diagnostic runs completed in candidate2 → control1 → control2 → candidate3 order, with four traces each. Same integrated head 0e122cca0ee814dc0a3f552ffa9ddcb3204f8132, production source 1c0651ef8485b4e8a359959bbed14e30b0acf41c, formal Avatar0.10.0, identical Host and five canonical Bots/recipes/portraits/history, Chrome154.0.8037.98, foreground Chinese/dark960×640/DPR1. The layout control changes only left/bottom versus translate3d positioning and its geometry test fixture. This does not qualify the accepted separate Avatar0.10.1 build. An earlier candidate1 launcher-script filename error produced no browser/trace and is preserved/excluded.

    All eight walking traces fail a new measurement-hygiene check. Raw TimerInstall events on the verified main renderer contain 154,014 calls whose actual stack points to official Chrome DevTools MCP1.10.1 WaitForHelper.waitForStableDom; per walking trace, 14,504–23,995 such calls. Each installs a100ms timeout; the observer repeatedly cancels/reschedules it as the real characters move. These are profiler automation hooks, not BotHarness application timer calls. No tool calls were made during the timed intervals, but previously installed hooks remained active. Numeric frame extraction and ten-stage outermost wall totals match an independent raw interval-coverage sweep; correct extraction does not remove measurement interference.

    Run Walking presentation p95, samples1 /2 ms MCP stable-DOM timer installations, samples1 /2
    Candidate2 16.676 /16.769 14,504 /19,680
    Control1 13.484 /13.617 19,124 /23,640
    Control2 13.565 /13.532 14,675 /21,904
    Candidate3 8.387 /8.396 16,492 /23,995

    All sixteen recorded traces contain zero frame-wall or presentation intervals >50ms. The varying candidate p95 values and unequal tool observer work do not establish a product regression, optimization benefit, SVG/GPU bottleneck or budget acceptance. Preserve all runs as contaminated diagnostic evidence; do not select the favorable candidate or average p95 values into a pass. Existing earlier reports remain historical observations; walking attribution/acceptance needs this hygiene audit rather than assuming earlier automation had no cost.

    Next protocol uses the documented evaluate_script.waitForStableDom=false for observations, plus a real document reload after native walking controls to dispose previous-document observers. Pins/walking settings must restore through the existing Client persistence; fresh traces must demonstrate zero WaitForHelper stable-DOM timer events before any frame comparison is interpreted. No native driver replacement, MCP vendor edits, application state injection or production code change is involved.

    The formal quiet-machine preflight was34/36/39%, failing the agent's three-sample≤20% collection guard. Completed runs were separately marked diagnostic-only under≤50% preflight; neither collection rule changes the Human-confirmed walking p95≤16.7ms or other performance budgets. Each completed run closed its owned measurement browser and exact-identity Host. Raw traces, authentication URLs, process identities and local paths remain private. #1167 stays open; no new PR merge or overall acceptance is claimed.

  12. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    Controlled walking comparison — stable-DOM tool interference removed

    Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269 (not a DSH Session). State: active for the remaining qualification; merged #1247 is still a partial report.

    Following the measurement-interference finding, completed a fresh candidate2 → control1 → control2 → candidate3 series: sixteen real installed-DSH traces, four scenes per run, with native walking settings 0→5→5→0. Each trace requests five seconds after a real document reload and settling. The reload disposes earlier input-tool observers; documented evaluate_script.waitForStableDom=false avoids installing new ones during observations. No evaluation or interaction recording runs during the timed interval. Official trace JS sampling and trace screenshots remain enabled on both variants.

    Same integrated head 0e122cca, production source 1c0651ef, formal Avatar 0.10.0, pinned DSH0.2.0-rc.1, identical owning Host, canonical five Bots/recipes/portraits and existing message counts, Chrome154.0.8037.98, foreground Chinese/dark960×640/DPR1. Controls restore original left/bottom on that same integrated build; they are not a historical main checkout. This does not qualify the separate accepted Avatar0.10.1 build.

    Run / position style Paused-before presentation p95 ms Five walkers sample1 p95 ms Five walkers sample2 p95 ms Paused-after presentation p95 ms CPU preflight %
    Candidate2 / translate3d 8.680 8.456 8.440 8.600 21 /20 /27
    Control1 / left-bottom 8.651 14.435 14.628 8.646 25 /19 /24
    Control2 / left-bottom 8.633 14.289 14.453 8.629 33 /7 /39
    Candidate3 / translate3d 8.640 8.402 8.388 8.665 10 /9 /14

    All sixteen samples are below the scoped16.7ms idle/walking p95 threshold, with zero frame-wall durations or presentation intervals >50ms. Actual trace durations are5.075–5.829s; the largest frame-wall duration is28.111ms and largest presentation interval28.397ms. These are official renderer trace events, not physical-display FPS or GPU utilization. Candidate walking p95 is consistently lower in both short repeated runs; this supports retaining the existing translate3d implementation rather than reverting from contaminated earlier observations.

    Raw-data checks:

    • Zero stable-DOM TimerInstall or FunctionCall events across all sixteen traces; total timer installations per trace are0 or1, versus14,504–23,995 identified tool-observer installations per walking trace in the excluded series.
    • 32 outside-trace motion checks independently verify the saved native geometry: three observations before and three after each trace, with enabled/moving counts0/0 or5/5. Five companions remain live with no message cards or expanded reading at the checked endpoints.
    • Ten main-renderer stage names match an independent interval-coverage sweep. Same-name nesting is removed from outermost wall totals; actual thread durations remain separate. Different stage totals are never summed as exclusive CPU time.
    • Control walking Layout outermost wall cost18.559–24.584ms per trace-second and Paint74.836–93.845ms per trace-second. Candidate walking has zero selected complete Layout/Paint events on the verified main renderer thread. That is not zero GPU/raster work, SVG-only attribution or a GPU bottleneck diagnosis.
    • An initial observer-clean pilot is preserved/excluded from the paired comparison: its endpoint-only movement check returned3/5 because two avatars crossed the edge and returned near their starting coordinates during the acquisition/tool gap. The replacement checks use three actual positions outside the trace. Original motion-reference fields were serialized as null; independent validation resolves the exact named observations in the unchanged saved ledger, rather than rewriting evidence.

    Scope remains diagnostic-only. Only the last candidate preflight satisfies the separately retained three-sample≤20% quiet-machine guard; the first three do not. Do not relabel this as a completed matched quiet-machine qualification or overall #1167 acceptance. All distributions and failures remain retained; neither the favorable candidate nor averages of p95 values replace the individual samples.

    All five observer-clean runs, including the excluded pilot, closed their owned measurement browser and exact-identity Host. A final process-identity check confirms no owned Host remains; official MCP status confirms its daemon is not running. Raw traces, canonical identities, auth URLs and machine-local paths stay private. No product code, PR state or merge changed in this checkpoint.

    Remaining: qualify the intended final Avatar0.10.1 build under the retained collection conditions; concurrent reveal/expanded reading, fresh ten-cycle post-GC/resource checks, and scoped reconnect/browser restart costs. Genuine hidden/background return and matched process-cold scenarios remain open. The accepted budgets are unchanged; #1167 stays open.

  13. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    Qualification checkpoint after QA blink correction

    Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269. Overall #1167 remains open and unaccepted.

    The new QA finding has its own issue #1367 and PR #1368. Stable per-Bot blink phase/idle interval uses the existing paired browser-owned animations; no per-frame JavaScript scheduler was added. Final visual evidence uses formal Avatar0.10.1 in real DSH, but style polling/recording is explicitly excluded from performance measurement.

    Latest three whole-machine CPU samples were 43 / 55 / 66%, failing the retained three-sample≤20% quiet-machine collection guard. No formal trace, retained-heap, reconnect or restart result was collected or accepted at this source. Owned recording/review browser tabs were subsequently closed; no unrelated user process was stopped. The Human-confirmed idle/walking p95≤16.7ms budget remains unchanged.

    Remaining qualification still requires final-source stable-load frame distributions, concurrent reveal/expanded reading, ten-cycle post-GC/resources, scoped reconnect/process-restart costs and genuine background/no-replay scenarios. Preserve the earlier observer-clean diagnostic-only comparison and startup shell-timeout failures; neither this fix nor the video closes those gates.

  14. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim — final-source qualification continuation

    • Agent: Codex
    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269 (not a DSH Session)
    • Scope: remaining Window Companion: measure frame and heap costs and agree performance budgets #1167 frame, concurrent reading, retained-heap/resources, genuine visibility and bounded recovery gates at merged main 5520168b, formal Avatar 0.10.1. Preserve all previous diagnostic measurements and limitations.
    • Branch: codex/1167-final-qualification
    • State: active; resumes the previous qualification claim after Window Companion: stagger blinking independently for each Bot #1367 was merged.
    • Method: keep CPU-sensitive frame/latency qualification gated by the recorded quiet-machine condition; collect post-GC memory/resource observations separately with actual load disclosed. No overall performance pass from a partial gate.
  15. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    Final-source Window Companion qualification checkpoint

    Issue #1167. Recorded 2026-10-10 UTC / 2026-10-11 JST.

    Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269 (not a DSH Session).

    Partial diagnostic checkpoint; overall acceptance remains open. No production code changed.

    Source and procedure

    • Merged main 5520168bf80ce05c6c18878c0be6891d48e1d30b; measured clean checkout 473ead433fd59a30caf737e10c7e1a3f0f2f597a has the identical source tree c764bf2630d5af880d0ca2c4c08785acb2909268.
    • Installed formal Pixel Avatar 0.10.1 verified from the installed package; DSH 0.2.0-rc.1; Chrome 154.0.8037.98; Chrome DevTools MCP 1.10.1; Windows 11 / i5-12600KF / 16 logical processors / 63.8 GiB RAM.
    • Five canonical seeded Bots in the real installed DSH path; Chinese/dark 960×640/DPR1; foreground. Idle and heap endpoints: all five live, walking paused, no cards. Walking endpoints: all five moving. Natural moving trajectories can overlap; five mounted companions do not establish five unoccluded silhouettes at every instant.
    • Official renderer AnimationFrame/Presentation events are analyzed using the pinned official Meta and AnimationFrames handlers. These are renderer measurements, not physical-display FPS or GPU utilization. No video is recorded during traces.
    • Every read-only page evaluation disables the tool's stable-DOM waiting. A queued real reload disposes previous native-input wait observers. Per-trace hygiene checks retain the failed walking sample rather than rewriting it.
    • The retained collection guard requires three whole-machine CPU samples ≤20%. It was not met: low-overhead six-second preflights included 29.18/25.06/23.01%, 38.18/60.53/42.82%, 23.68/31.77/29.88%; latest after the profiler interruption was 50.25/46.80/30.87%. Do not call these a matched quiet-machine qualification.

    Frame observations

    Sample Seconds Presentation p95 ms Presentation max ms Presentation >50ms Frame wall p95 ms Frame wall >50ms Interpretation
    Idle, original 15.037109 8.820 16.156 0 8.628 0 No stable-DOM observer events; diagnostic
    Walking, original 15.028050 8.390 — — 8.276 — Exclude: 5,319 stable-DOM observer events
    Idle, fresh document 15.033519 8.793 15.952 0 8.569 0 No stable-DOM observer events; diagnostic
    Five walkers, fresh document 15.043199 8.401 8.751 0 8.139 0 No stable-DOM observer events; diagnostic
    Concurrent attempt 1 15.608228 8.767 15.631 0 8.512 0 No stable-DOM observer events; exact reveal overlap not established, so not concurrent acceptance
    Concurrent attempt 2 56.438486 47.471 1524.913 163 34.755 91 Actual seven-card workload observed; no stable-DOM observer events; exceeds concurrent reference budget, diagnosis/repetition required

    Concurrent attempt 2 starts tracing before five real Human DM inputs. The real model uses the owning channel_send path: seven expected new canonical messages, each 448 characters, four Bots send one and the fifth sends three. A read-only endpoint observation inside the trace verifies 1/1/1/1/3 cards, including text lengths 294 and 154 in still-revealing cards; those cards and completed cards follow their latest text at the bottom. This one observation is disclosed instrumentation, not an observer-free interval or proof of sustained seven-card concurrency. The original owner poll encountered ECONNRESET; a separate read-only reconciliation subsequently verifies exactly one new canonical output for every expected body, matching all seven bodies. No feed is fabricated.

    The profiler saved the raw second trace, then lost its transport while generating its own analysis. Independent chunked parsing of that saved trace succeeded; an initial whole-string hygiene parser exceeded Node's string-size limit and was replaced with the pinned official chunked parser. Both concurrent traces contain zero stable-DOM wait events.

    In the second trace, the longest complete FunctionCall belongs to the application bundle's tick callback: 451.762ms wall / 371.790ms recorded thread duration. Native Client callbacks also exceed 50ms. Main-thread selected complete Layout maximum is 33.244ms, Paint 7.824ms, MajorGC 26.515ms, UpdateLayoutTree 56.443ms. These nested stages are never summed as exclusive CPU time. This narrows the next investigation to the callback/React/native Client work; it does not establish the source of the delay, a final regression, SVG-specific cost or GPU pressure.

    Post-GC heap/resource observation

    Each official capture invokes GC before snapshotting. Four snapshots are retained. The first ten-cycle series has a native-tooltip/focus mismatch (DOM 4,182→4,184), preserved rather than passed as a matched resource return. After focusing the real composer and settling 2.5 seconds, another ten actual remove/pin cycles use the same focus and settle at both endpoints.

    Matched second ten-cycle series Before After
    Whole-page snapshot graph self bytes, including native objects 81,636,254 79,449,350
    V8 heap bytes 29,765,044 27,565,440
    DOM nodes 4,182 4,182
    Document animations 10 10
    WindowCompanions / WindowCompanion / CompanionMotion / CompanionBubbles 1 / 5 / 5 / 6 1 / 5 / 5 / 6
    Native EventSource 4 4
    Native RegisteredEventListener / EventListener / V8EventListener records 574 / 574 / 507 574 / 574 / 507
    Matching native companion nodes / detached companion nodes 21 / 0 21 / 0

    Matched graph increment −2,186,904 bytes; V8 increment −2,199,604 bytes. The measured ten-cycle observation meets the ≤512KiB growth limit with the listed counts returning. Graph totals are whole-page self-size sums after GC, not Companion-only retained sizes, process RSS or a leak-free guarantee. Native listener record categories can describe the same underlying listener; they are not added as independent listeners. Absolute parent differences and memory savings are not established: the final-source matched parent heap collection remains outstanding.

    Asset observation, separate from runtime costs

    Built Client JavaScript: 3,034,203 bytes, gzip level6 751,223 bytes, SHA-256 0a396a89e2a662041508259db099da737609cda3bda8edd8c17007e83439621a. No fresh paired-parent asset-cost or feature-isolated attribution is claimed.

    Remaining and tool state

    • Repeat final-source frame/concurrent/expanded-reading/drag measurements under the retained quiet condition, with matched controls; investigate the adverse concurrent trace before acceptance.
    • Genuine hidden→visible remains unqualified. Both T3 preview and the DevTools browser stayed document-visible when switching pages. Ordinary Chrome still returned ERR_BLOCKED_BY_CLIENT after the Human reported allowing the site, including refresh and direct re-navigation. No synthetic hidden state was substituted.
    • Qualify current-source reconnect ≤6s, browser-process restart restoration ≤4s, preserved reading and cold-start no replay; historical reload/restart results do not qualify this source.
    • The profiler transport is now closed, including a subsequent list_pages call. Browser measurement must resume only after the actual MCP connection recovers.
    • Ordinary Chrome's owned blocked tab was closed. Earlier T3 documents were disposed and previews closed. All four loaded heap analyzers were released. Closing the profiler-owned page could not be verified because its close_page call also returned Transport closed; no unrelated browser or process was terminated.
    • Runtime verification services remain available. Raw traces/heaps, canonical identities, credentials and private prompts stay local.

    This checkpoint does not close #1167 or change the Human budgets (idle/walking ≤16.7ms, concurrent/reading ≤33.3ms, no steady >50ms events).

  16. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    Authentication / tool recovery update

    Agent-Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269; #1167 remains open and unaccepted.

    The Human reported the native authentication-required response after using the local HTML entry. The current-process launch token is still valid: a fresh exchange returns 303 with a signed cookie; that cookie authenticates both the index and the owning botharness/list API with 200. A private current login-address file is provided for direct manual address-bar entry. The Human browser's failed redirect/cookie path remains unattributed; no authentication guard was changed or bypassed and no Host was restarted.

    The collaborative preview recovered: real DOM has five live companions and no authentication-required text, the fresh browser snapshot has no console entries, and native diagnostics reports the newest document shell-ready while retaining the earlier shell-lost failure. This visible follow-up uses 1280×800, not the performance qualification viewport. It proves the observed preview works, not that the Human's ordinary Chrome is authenticated.

    Chrome DevTools MCP list_pages now responds, with only its pre-existing blank page; the previous task-created page is absent. Profiler trace/analysis recovery still needs a short smoke test. Latest CPU preflight is 53.01 / 63.06 / 65.33%; no new timing trace was acquired under that load. Preserve the preceding heap observation and adverse concurrent trace, without accepting the remaining gates.

  17. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    #1167 continuation — profiler recovered; qualification remains open.

    • The current private login URL successfully authenticated a fresh task-owned DevTools page. A 2.51s smoke trace completed recording, saving and analysis without a transport disconnect. This verifies the profiler pipeline, not a scenario budget.
    • Five companions were pinned through the real header controls at 960×640. All five reached live; no historical message cards appeared at the observed settled endpoint.
    • The longest callback in the previously preserved adverse concurrent trace is now source-verified against the actual running combined plugin resource: it is the Window Companion tick, at zero-based line 154975. Its 451.762ms wall / 371.790ms recorded thread duration cannot be described as GPU-only cost. CPU sample counts do not distinguish the calls inside this function or establish the root cause. The CPU-profile URL was truncated to 1024 characters; the original heuristic other-script classification was therefore misleading. Exact matching against the complete observed resource verified the source.
    • Final frame/latency acceptance remains deferred: successive whole-machine preflight readings were 48.54%, 46.12%, 43.65%, above the retained ≤20% quiet-machine collection guard. The prior adverse concurrent trace remains recorded and is not a pass.
    • A scoped DevTools offline probe did not make the companion stream stale: all five remained live during the 5.05s observation, despite native connection-loss diagnostics. Consequently the immediate live endpoint after restoring network is not a reconnect timing measurement. This attempt is excluded rather than counted as a ≤6s recovery.
    • The native preview can be out of view while its document still reports visible; this does not satisfy genuine background/foreground qualification. Ordinary Chrome control currently reports that Chrome is unavailable.
    • The measurement launcher enables the developer startup diagnostic observer by default; installed production profiles default to disabled. Its DOM observer performs a layout read. A future same-build, same-workload comparison must control this flag through the documented launcher option --no-client-diagnostics; no observer was disposed or production code changed to manufacture a passing measurement.

    Remaining gates include quiet matched-revision scenarios (drag, concurrent reveal and expanded reading), paired retained-memory procedure, genuine background/foreground, bounded reconnect with an actually interrupted companion transport, and browser process restart. No production change or new PR in this continuation.

  18. DoodleBears commented on Oct 10, 2026

    @DoodleBears
    ContributorAuthor

    #1167 — same-build diagnostic-observer control and real reading check

    Partial evidence only. Source tree remains merged main 5520168, measured clean checkout 473ead4; formal Avatar 0.10.1 and pinned DSH 0.2.0-rc.1. No production code or dependency changed.

    Diagnostic control

    Four short traces in on → off → off → on order, same browser page, same installed Profile, 960×640/DPR1/dark, five live walking companions, no message cards or reading. The application-defined developer startup observer was switched only through the launcher's documented --no-client-diagnostics flag and exact-owned Host restarts. The normal diagnostics-on configuration was restored afterwards. Actual endpoint movement was verified. Natural trajectories can overlap.

    Read-only evaluations disable stable-DOM waiting. Each changed document was actually reloaded before collection to dispose the native-input tool's wait observers; every trace has zero WaitForHelper events. No in-interval DOM reads or video recording. Each trace was requested for eight seconds; recorded trace bounds and actual frame spans differ, and raw captures are preserved.

    Order Startup diagnostics Trace bounds (s) Presentation p95 (ms) Presentation max (ms) Presentation intervals >50ms Style-tree updates / contained animation frame
    1 on 8.103 8.416 8.820 0 1879 / 938 ≈2.00
    2 off 12.435 8.408 8.610 0 963 / 961 ≈1.00
    3 off 9.108 8.427 8.604 0 931 / 930 ≈1.00
    4 on 8.880 8.473 108.286 2 2066 / 1032 ≈2.00

    The repeated style-tree count difference is consistent with the observer's layout read causing an additional style update. The walking p95 observations are close; this does not establish that the observer explains the previously adverse concurrent workload, nor that disabling it fixes long frames. The final on sample still has a 107.499ms frame-wall event and two presentation intervals >50ms; it is not passed or discarded. No qualifying quiet preflight: initial 57.42/52.17/59.99%, later 25.98/40.52/40.06%, latest 33.17/33.83/54.18%.

    Callback and stage distributions use the official Meta trace bounds and the same renderer thread. Backfilled/out-of-bounds events are tracked separately rather than mixed into the measured interval: final on includes a raw 349.823ms tick outside those bounds. Recorded thread durations occasionally exceed their wall durations, so they are retained as telemetry rather than interpreted as exclusive CPU usage. Whole-page DOM endpoint counts are 5188/5186/5186/5187, so identical whole-page DOM is not claimed. No qualifying parent/current result, physical-display FPS, or GPU attribution.

    Real streamed-message reading

    One actual Human input to the isolated performance Bot produced one canonical channel_send message, exactly 1,588 characters, verified against the owning Channel history. No companion feed was fabricated.

    • At the first flowing endpoint, visible text length 250, paragraph viewport 54px, scrollHeight 234px, scrollTop 180px: following the bottom.
    • Keyboard reading is active. After native Home input, visible text increases 840 →901 over the three-second observation while scrollTop stays 0 and viewport stays 54px.
    • After native End input, visible text increases 1215 →1275; scrollTop increases 1116 →1170 as scrollHeight increases 1170 →1224, leaving bottom gap 0 at both endpoints.
    • Computed scrollbar-width is none; the actual 960×640 screenshot was saved and inspected. Fresh console has no warnings/errors.
    • Automated mouse hover timed out on the moving character. This is preserved and not counted as successful mouse coverage; keyboard focus was used for the reading check. Five companions are mounted, with overlapping trajectories; the screenshot does not show five unoccluded silhouettes.

    This verifies the narrow real reading behavior, not expanded-reading frame-budget acceptance. Genuine hidden/visible, an actually interrupted companion transport and bounded reconnect, browser process restart, quiet final-source paired frame/heap scenarios, and concurrent root-cause qualification remain open. Tests did not change the agreed budgets.

  19. DoodleBears commented on Oct 11, 2026

    @DoodleBears
    ContributorAuthor

    官网同步跟进已建立:#1393。它是 #1135 的原生子 Issue,原生依赖本票 #1167,已加入 Project #5(Bot Activity & Avatar Presence)与 v1.2。

    待本票最终优化与验收结论确认后,在 BotHarness/deepseekbot-site 同步适用于官网的结果,保留现有动作手感,并通过真实官网截图、录屏、性能对照和 deepseekbot.app 发布后回归完成交付。当前部分诊断结果不作为已完成优化。

  20. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Claude Code
    • Task: claude/cloud/session_01TGxRUyfupYsSFGE59dcLeL (not a DSH Session)
    • Issue scope: reduce companion main-thread work during concurrent message reveal (shared frame read/write phase, batched tail scrolling, mouth updates without style reads, no avatar SVG re-parse on thinking ↔ working). This doesn't claim budget acceptance on the reference Windows machine.
    • Branch: claude/project-thread-kxff1l
    • Started: 2026-10-13 13:15 UTC
    • State: active

    Generated by Claude Code

  21. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Outcome: the frame-cost optimizations shipped in #1573 (squash 5c54bce), and Vain accepted them in the project thread, so I'm closing this as completed.

    With 5 pinned Bots typing real replies at 960×640 (4 × 45 s per build), frames over 50 ms dropped from 15 to 4.5, avatar SVG re-parses from 43 to 14.75, and forced style recalcs per frame from 6.95 to 2.45. Pin/unpin × 10 returns DOM nodes and listeners exactly, and the heap shows no retained app objects. These numbers come from headless Chromium on Linux, not the Windows reference machine. The full table is in #1573.

    The website port of these changes is tracked separately in #1393.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDsarea:ui-uxInteraction and visual experience; may accompany a code-layer areafeature:avatarPersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions