Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions evidence/native-layer-acquisition-20261004/SCOPE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# One layer inheritance decision in Widget, one native traversal

Same finished checkout normally joined Text51/main2fac. Source first: Widget.layers
and Compositor._arrange_root.get_layers independently choose the outermost authored
layer declaration. The compositor additionally maintains inherited_layers for every
visited node and recursive resolver custody until the scene completes.

Extend existing Widget behavior to resolve its authored declaration against the
original inherited order. Public layers and native layout traversal use that same
behavior. Carry original resolved order through existing add_widget/arrange_widget,
removing the recursive get_layers algorithm, per-pass inheritance map and duplicate
public selection. Preserve subtree key order, external-root ancestry, explicit empty
and default layer declarations, custom layers property behavior, detached nodes,
placement order, capture/projection lifetime and custom override context.

No new cache/map/type/flag/registry, no Toad edits, WT/env/native copy or film.
NRA Package AST covers entire native/Toad/tools roots before editing; omissions
and dynamic limitations explicit. Original420 ProfileTrace arrangement activation
is source context, not callcounts/CPU time/dominance. Batch affected native sanity
last, then one changed joined installed journey owned by Heisenberg; no unchanged
51 capture or physical speed claim. Full performance remains active.

## Published implementation and final native controls

Production `6b4326827d9258875f973af61390dee746966c81`: Widget and Compositor,
54 added / 27 deleted lines against merged51. Existing Widget owns
`_inherit_layer_order`; public `layers` and the native tree traversal consume
it. `_get_layer_order` acquires external-root ancestry once, using the original
Widget/App boundary and traversal order. The transient optional tuple means
an actually absent authored declaration, retaining the original optional
contract; it is not a new durable/runtime state or mirror. Explicit empty and
duplicate tuples are preserved exactly by the public property. Native rank
mapping is a derived synchronous resource, projected only when a declaration
is reached and shared through descendants. Custom `layers` overrides remain
local arrangement policy, preserving the original raw inherited key semantics.

Deleted the independent compositor resolver and recursion, all its callers,
per-widget inherited-order registry and completion cleanup; deleted public
Widget's separate declaration-choice loop. Original subtree key rank snapshot,
scene map, clip/placement/capture publication and custom property dispatch
remain their existing contracts. No new class/map/cache/state field. Root
public acquisition still requires inspecting ancestry to find the outermost
source; its temporary ordered ancestor sequence is not a semantic registry.

Whole roots before: native249/26 relevant sites, Toad288/0, tools41/0,
zero omissions. Native after249/31 sites, zero omissions; sole authored
inheritance choice is Widget._inherit_layer_order. Added sites are shared
owner methods and traversal parameters, not independent decisions. Full search
has no get_layers declaration/caller in current source; original GC control
now names the actual two recursive arrangement closures. Other `.layers`
reads are Styles declarations or Compositor front-to-back order, semantically
separate resources. Dynamic external overrides are not resolved by AST.

Final batched native controls: **21 passed in 1.94s**, real App/compositor and
subtree resources, covering outermost inheritance/change, custom property,
empty/duplicate public names, detached Widget default/declaration, nested
capture with external ancestor, clipping/scroll/retention/invalidation, and
recursive closure release without GC. No production changes after this batch;
no old51/420 controls or film repeated. Resource warning with12.3GiB available
RAM supported this single short existing-dependency process; no memory caps,
new environment, native copies, installed writes or provider calls.

**Source-qualified draft; installed changed-path qualification pending** the
next meaningful joined Heisenberg workflow. No CPU gain, dominance, smoothness,
physical FPS or 144Hz claim. Existing 51/420 original evidence remains frozen.

## Original joined422 installed qualification

**Scoped installed Ready for review**, using corrected native53a52e5b/wheela805
which includes this unchanged52source. Original installed App contracts passed
retained A/B/A/editorUndo/shellclose, native left/right pointer+slider sidebar
controls, rapidcoldPageDown/End and bounded preparation/runway. Original physical
seven input checks and drag/scroll/Up/Down/reverse/End completed.

The actual raw journey **FAILED** at peer click: the target was clipped outside
the captured roster after sidebar-up, although sidebar-down showed it. No16warm
or full physical A/B/A/Undo/IRC pass. Both raw completed flags remainFALSE; no
replay, new movie or oracle relaxation. Original owner identity unchanged; owned
cleanup remaining/errors empty; transferredUI custody/encoder255 preserved.
All14original keeper hashes matched; source proof records exact339Core/319Toad/
266Text/3Diff files, Core611d416/native2ea/SDK.12.1/normal69.

Heis reviewed actualUp52.7559..53.5559DURING originalUI; Down/reverseAFTER.
Kepler personally reviewed18-8SIDEBAR32.2385..33.0385 while sameUI alive,
notUp; earlier personal-up filenames are corrected by original live_review
phase. Selected bands show painted body/chrome with repeatedpositions/stepped
movement. Up writer23.05median/63.44p95/205.67worstms; Down13.22/27.12/
222.82; observer-inclusiveCPU76.06/64.23%, unmatched workloads. No causal
gain/smoothness/FPS/144Hz claim. Last10s idle zero viewport churn is separate
from full idle marker18.60%UI. Fullnativeperformance remainsactive.

F0 main normally integrated WITHOUT native source change. Required Debt ratchet
must pass before merge; this installed receipt cannot waive any growth. Full
native suite remainsdeferred. Existing holder/code imports handed back toSchF1;
no ongoing borrowed package/App/client/native claim from this qualification.

## F0 correction: one source fold and one carried resource

Parent's original packaged ratchet against main919 reported Compositor +7 and
Widget +20. This supersedes the earlier source-qualified assessment; original
installed422 evidence does not waive growth and remains unchanged.

Widget._get_layer_order now folds supplied original sources in native leaf-to-root
order, keeping the last (outermost) authored declaration. Public layers supplies
its lazy ancestry; root acquisition supplies the same traversal; descendant
admission supplies its one local source only while no ancestor declaration owns
rank order. The same behavior handles explicit empty orders and the Widget/App
boundary. Public duplicate names remain exact; rank projection preserves their
last ordinal. Custom layers property dispatch remains local arrangement policy.

Deleted _inherit_layer_order, the temporary ancestry list/reverse walk and every
layer_names parameter/caller. Native traversal carries only the original derived
rank mapping; cache keys snapshot that resource. No new type, registry, map,
compatibility path or policy change. The corrected property documentation describes
the actual outermost contract; no unrelated class behavior is removed to offset
metrics. Relative main919, Widget has no class-span growth and Compositor shrinks
by two lines. Before/after packaged ratchet and changed App controls remain the
final required confirmation, not a source-only Ready claim.
276 changes: 276 additions & 0 deletions evidence/native-layer-acquisition-20261004/SCOPED-READY.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
{
"status": "SCOPED_INSTALLED_READY_FOR_REVIEW; required Debt ratchet remains a merge gate",
"scope": "Native52 layer inheritance/traversal resource + Native53 ordered rule publication/repaint intent, from original joined422 installed App and completed physical input/sidebar phases",
"qualified_textual_head": "a52e5b122b09e6414f8adb1fa04995ac9ad6961b",
"qualified_toad_head": "9138bc6a3fb2d5e7d5fa517f139272a900192a50",
"qualified_core_head": "d41601c16d74e9e3e4195b6527fb218b8fe14af9",
"native_manifest": "2ea0a4d4ff2e362864c156e4b11642775b3f2a96e7f01522b346b6f6d9526936",
"source_receipt": "/home/ts/wt/toad-viewport-raster-cpu-continuation-20261001/evidence/session-native-custody-owner-20261004/SCOPED-READY.json",
"source_receipt_sha256": "feec53af541b617ceef802ff43eb1c9e58d7f58632da6873665e5ef763a4d9db",
"installed_app_checks": {
"blank_ABA_editor_Undo_shell_shutdown": true,
"left_right_sidebar_pointer_drag_slider_hover_collapse": true,
"rapid_PageDown_End_cold_tail_frame_editor_Undo": true,
"runway_configuration_reversal_End_resource_bounds": true
},
"physical_input_checks": {
"input_remains_focused": true,
"original_editor_window_and_mode": true,
"draft_and_caret_preserved": true,
"input_pageup_moves_history": true,
"input_pagedown_moves_history": true,
"input_pageup_reaches_original_window": true,
"input_pagedown_reaches_original_window": true
},
"raw_completed": false,
"raw_capture_completed": false,
"raw_error": "CalledProcessError: Command '['xdotool', 'exec', '--sync', '/home/ts/wt/toad-viewport-raster-cpu-continuation-20261001/.artifacts/runtime-native-style22-20261002/bin/python', '/home/ts/wt/toad-viewport-raster-cpu-continuation-20261001/tools/performance/click_history.py', '--target', 'thread', '--state', 'phase-switch-b-state.pickle', '--name', 'nra-domain-mapping']' returned non-zero exit status 1.",
"warm_physical_A_B_A": "NOT REACHED; peer clipped outside captured roster, no16warm/wholejourneyPASS",
"cleanup": {
"remaining": [],
"errors": []
},
"original_owner_before": {
"root": "/var/tmp/agent-comms-live-20260927-wzjtqhza",
"mode": "existing_thread",
"name": "nra-architecture",
"identity": {
"pid": 288457,
"start_time": 55741087
},
"original_owner_alive": true
},
"original_owner_after": {
"root": "/var/tmp/agent-comms-live-20260927-wzjtqhza",
"mode": "existing_thread",
"name": "nra-architecture",
"identity": {
"pid": 288457,
"start_time": 55741087
},
"original_owner_alive": true
},
"raw_keepers": [
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/receipt.json",
"sha256": "c9f6a898c17a72fc36b35d47a120c9136ad5cb960f0870ab0acab68840f6ec1b"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/events.jsonl",
"sha256": "4441bdd91b3e2afc16a99dde49f1b723d4c085da8fd88fadd4e65f3fe5571873"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/driver.log",
"sha256": "ebeac2499364f2a891ad9dc0c99163f2db35f51566b1f042619703a3c44516d1"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/actions.xdo",
"sha256": "bf1d93b1d1d91671c2f89a97952061edd2e4cd95dfcdfa0fdc420516b3ccad58"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/frame-delivery.json",
"sha256": "90ab1a66340ddf86190cc7cea801ece0951e9734d9361b49a1047dfe70c657af"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/frame-delivery.svg",
"sha256": "5d3330a21692b4640178eb57696856b4e6778cb8b2f1038ef84d94bcf25b92a6"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/cpu-profile.json",
"sha256": "362b75eee34353df45af684ab74e9f3bb230bc44a582282a1c72d5610627dbdc"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/profile-review.json",
"sha256": "af9b68db4d6229a0d0d5001e6e6c103106933c70438d46611712a0350529411d"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/profile-launch.json",
"sha256": "0644e38dd12f11351cfc61c59b11b2899264f18f09820d0a2382633554ca8d90"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/phase-input-held-up-done-state.pickle",
"sha256": "13835ffd1245a9d65b06993564ed60f8a3eb1c5c36afea6c6774b05263d590f9"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/phase-switch-b-state.pickle",
"sha256": "3f65f07f95d20fe961041bc5c8a0828b026fb39f9d80573db0286707143b604b"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/live-29-14-frames.png",
"sha256": "108904c16d7b2b8e7492ba091585e386d7a189bca586ef32b3d87be1189c22f0"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/live-36-19-frames.png",
"sha256": "bf557e7e15ace19a62d241f95975a87eb984316144126830438bac79ff776261"
},
{
"path": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/live-54-29-frames.png",
"sha256": "365359ae640c3ab843a5b53b09f8fb83720875ffcbde41ec2de49db3c1533500"
}
],
"writer_phases": [
{
"action": "input-held-up",
"intervals": {
"count": 50,
"median_ms": 23.05,
"p95_ms": 63.44,
"p99_ms": 198.57,
"max_ms": 205.67
},
"writer_receipts": 51
},
{
"action": "input-held-down",
"intervals": {
"count": 108,
"median_ms": 13.22,
"p95_ms": 27.12,
"p99_ms": 39.38,
"max_ms": 222.82
},
"writer_receipts": 109
},
{
"action": "up",
"intervals": {
"count": 131,
"median_ms": 11.76,
"p95_ms": 27.13,
"p99_ms": 38.48,
"max_ms": 124.65
},
"writer_receipts": 132
},
{
"action": "down",
"intervals": {
"count": 124,
"median_ms": 12.68,
"p95_ms": 26.58,
"p99_ms": 30.55,
"max_ms": 114.11
},
"writer_receipts": 125
},
{
"action": "reverse",
"intervals": {
"count": 147,
"median_ms": 10.11,
"p95_ms": 23.17,
"p99_ms": 40.79,
"max_ms": 106.02
},
"writer_receipts": 148
},
{
"action": "end",
"intervals": {
"count": 6,
"median_ms": 485.34,
"p95_ms": 501.7,
"p99_ms": 501.7,
"max_ms": 503.43
},
"writer_receipts": 7
},
{
"action": "sidebar-scroll-down",
"intervals": {
"count": 14,
"median_ms": 11.69,
"p95_ms": 95.48,
"p99_ms": 95.48,
"max_ms": 99.11
},
"writer_receipts": 15
},
{
"action": "sidebar-scroll-up",
"intervals": {
"count": 11,
"median_ms": 4.53,
"p95_ms": 102.56,
"p99_ms": 102.56,
"max_ms": 103.37
},
"writer_receipts": 12
}
],
"motion_review": {
"during": {
"phase": "input-held-up",
"frames": "/home/ts/.cache/agent-scratch/session422-sidebar-native53-public-20261004-01/capture/live-29-14-frames.png",
"interval": [
52.75589658,
53.55589658
],
"before": {
"monotonic_ns": 563947734770750,
"phase": "before-personal-Up-view",
"identities": [
{
"pid": 1747649,
"expected_birth": "56383659",
"actual_birth": "56383659",
"state": "S",
"same_birth_alive": true
},
{
"pid": 1748988,
"expected_birth": "56384474",
"actual_birth": "56384474",
"state": "S",
"same_birth_alive": true
}
]
},
"after": {
"monotonic_ns": 563975320055112,
"phase": "after-personal-Up-view",
"identities": [
{
"pid": 1747649,
"expected_birth": "56383659",
"actual_birth": "56383659",
"state": "S",
"same_birth_alive": true
},
{
"pid": 1748988,
"expected_birth": "56384474",
"actual_birth": "56384474",
"state": "S",
"same_birth_alive": true
}
],
"review": "48 consecutive Up frames52.75589658..53.55589658: body/chrome present; repeated positions then discrete advances and internal whitespace. No full-body blank in this band; no smoothness/FPS/CPU claim."
},
"assessment": "Consecutive recorded frames reviewed personally during original UI lifetime. Body/chrome present, repeated positions and discrete advances/internal whitespace; no full body blank seen in this selected band. Not live continuous playback/smoothness/FPS."
},
"after": [
"Down79.502229452..80.302229452 live-36-19",
"reverse117.15386885..117.95386885 live-54-29"
],
"after_assessment": "Both sheets reviewed after original UI exit; body/chrome painted with stepped advances/repeated positions. No full-body blank in these selected bands; not whole-screen text legibility or smoothness proof."
},
"personal_kepler_review": {
"sheet": "live-18-8",
"actual_phase": "sidebar-scroll-up",
"source_interval_seconds": [
32.238479831954464,
33.03847983195446
],
"ui_identity": {
"pid": 1748988,
"birth": 56384474
},
"before_monotonic_ns": 563951721818363,
"after_monotonic_ns": 563986554172980,
"assessment": "Original recorded sidebar sheet reviewed while same UI alive; painted body/chrome, repeated positions/stepped motion. Not heldUp; earlier mislabel explicitly corrected."
},
"performance_claim": "No overall CPU gain, smoothness, physicalFPS or144Hz; fullnativeperformance active",
"remaining": "Stepped motion, high main-thread CPU, true presentation/input-to-paint/144Hz, busyIRC/tab-open/growingEnd/void/globalCPU and TC1/T9/T4 remain active. No causal/historical CPU gain or smoothness claim.",
"checks_not_repeated": "No new App/capture/build/environment/provider/native or package write for qualification; existing wheels preserved"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Loading
Loading