Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 6.62 KB

STATE.md

File metadata and controls

59 lines (47 loc) · 6.62 KB

Manuk — STATE (living snapshot)

Updated by the loop each tick that changes reality. Take-stock source of truth. See [[CONSTITUTION]] for how this is used, [[LEDGER]] for the scored backlog.

What Manuk is (2026-07-11)

~37k-LOC memory-safe Rust browser, 16 crates: engine/{net,dom,html,css,layout,text,js,paint, compositor,page,a11y}, shell, agent, bidi, store, tests/wpt. Real Stylo cascade (default) with a MinimalCascade panic-fallback; Taffy flex/grid over the arena DOM; swash text; SpiderMonkey JS (mozjs, now the shell default); tiny-skia CPU paint + wgpu GPU present; winit window; hyper/rustls net with persistent cookies + HTTP cache + adblock. Agent-native: stable arena NodeId handles, typed BrowserAction, a11y-tree diffing, in-process automation.

Gate: cargo run -q -p manuk-wpt --release -- parity = 72/72.

Axis scores (0-100; rough, self-assessed; move only with evidence)

Axis Score Notes
RENDER 84 Stylo cascade, flex/grid (incl. flex/grid items with block children — a major collapse bug is fixed), grid-template-areas, UAX#14 breaking, position:sticky, responsive @media. VISUAL verification now autonomous (manuk-wpt render PNG + Chrome ref). border-radius + box-shadow now paint. Missing paint: per-corner/elliptical radii, inset/multiple shadows. Shadow DOM + slots render (flat tree); 2 shadow-tree bugs fixed (a layout PANIC + Stylo styling no shadow content). block-in-inline fixed (an inline containing a block is blockified, CSS2 §9.2.1.1). Container queries + Wikipedia collapsed-menu JS still partial.
JS 77 Interactive: persistent per-page context, real clicks fire listeners, preventDefault. fetch()/XHR real Promises + host round-trip; pushState/popstate + real location; window.open + cross-window postMessage/opener; MutationObserver (attributes/childList/characterData/subtree, microtask-batched). Custom Elements (real upgrade + connected/attributeChanged callbacks) + Shadow DOM (attachShadow/shadowRoot). Missing: IntersectionObserver/ResizeObserver, named slots, many WebIDL APIs.
NET 63 hyper+rustls, HTTP cache (RFC-9111 subset), RFC-6265 cookies persistent across sessions, preconnect, adblock, page-fetch bodies, downloads to disk, multipart/form-data uploads (RFC 7578 encoder + POST builder). Missing: HTTP/2 push nuance, service workers, async non-blocking page-fetch (block_on), streaming to/from disk, GUI file picker.
UI 64 Tab strip (new/close/dup), hamburger menu, omnibox suggestions/history dropdown, scrollbar, find, zoom, text selection + clipboard; omnibox URL tracks SPA pushState routes; downloads saved to disk + listed in the menu. Missing: richer downloads shelf, settings page, richer a11y.
PERF 65 Off-thread nav, bfcache, preconnect, predictive prerender (hover → full page built into bfcache → instant click), partial GPU upload, shaping caches. EPOCH-1 profiled the hot path and fixed the top violation: a rule index made the cascade 2.69× faster and the whole pipeline 1.67× faster on a 19k-node page (128→76ms). Binding floors F1-F3 (§1.7). Remaining: 4 UI-thread block_on (DEBT-1), residual cascade superlinearity (DEBT-2).
MEM 55 Tab hibernation (discard/restore). No SoA DOM yet (deferred, measure first). Binary 16.4 MB (Stylo+SM).
AGENT-IN 44 llama.cpp/GGUF in-browser agent panel (Ctrl+J), typed actions. Deterministic action grounding (model Action → confidence-gated on-page target, model-free + tested). Model inference still depends on a local GGUF backend.
AGENT-EXT 55 In-process typed BrowserAction + a11y targeting; AG2/AG3 targeting with confidence; automation surface: durable Selectors + wait-for Conditions + assertions (act→wait→assert). AG5 ~12× lower per-command latency than CDP. BiDi surface exists (no DevTools UI).
FINGERPRINT 33 Honest human UA + navigator + boot window/screen metrics (innerWidth/screen/dpr/matchMedia/rAF). Not yet complete (fonts, timezone, canvas/WebGL consistency, true window size).
COMPAT 57 Simple + table-driven sites faithful (example.com, HN). Boot-metric ReferenceErrors fixed; fetch/XHR + pushState routing + postMessage/opener + MutationObserver (SPA hydration, routing, OAuth-return, post-fetch DOM-watching all work). Remaining SPA gaps narrowing; responsive @media correctness (Wikipedia-class) still partial (next).
STABILITY 64 Parity green; fast-exit avoids mozjs teardown crash. GUI paths unverified headlessly.
SECURITY 45 (EPOCH-1: probed, no new criticals.) Provenance-tagged agent observations + Action-Guard; adblock; no site sandbox/process isolation (deliberate in-process model).

Recently landed (this loop's precursor session + ticks)

Interactive JS keystone; persistent cookies; SpiderMonkey default; clicks→JS + fast-exit; clipboard + text selection; tab strip; hamburger menu; suggestions/history dropdown; scrollbar; position:sticky; grid-template-areas; UAX#14 line-breaking; speculative preconnect; AG5 latency measurement; MEM3 binary-size measurement; boot window/screen metrics (Tick 1); fetch()/XHR real Promises + host round-trip (Tick 2); history.pushState/popstate + location (Tick 3); downloads to disk (Tick 4); predictive prerender into bfcache (Tick 5); cross-window postMessage + window.opener (Tick 6); MutationObserver (Tick 7); responsive @media + matchMedia (Tick 8); agent targeting AG2/AG3 (Tick 9); action grounding (Tick 10); file uploads / multipart (Tick 11); automation surface selectors/wait/assert (Tick 12); headless screenshot discipline + flex block-child collapse fix (Tick 13); border-radius + box-shadow paint (Tick 14); Custom Elements + Shadow DOM (Tick 15); block-in-inline (Tick 16).

New capability (2026-07-11, user-unblocked)

Autonomous VISUAL verification: cargo run -q -p manuk-wpt --release -- render --html F --out P.png [--chrome] → read the PNG. llama.cpp runnable: ~/llama.cpp/build/bin/llama-server -m ~/qwen_35_4b_claude/Qwen3.5-4B.Q4_K_M.gguf --port 8099 -ngl 0 --no-webui (+ mmproj for vision). Every GUI/EXTERNAL-deferred item across the loop + docs is now workable. See [[CONSTITUTION]] §7.

Known weak frontiers (feed exploration)

Complex-SPA support (fetch/XHR/MutationObserver/observers, history routing); DevTools; downloads/ uploads; cross-window postMessage/opener; complete human fingerprint surface; profiled PERF vs Chromium; the unwired subsystems (passwords/autofill, translate, semantic history) need callers + external pieces; @media/responsive-skin correctness on Wikipedia-class layouts.