gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit413b11e1413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre413b11e1/reports/LY7-layouts-style-form.md

17.1 KB

  1. # LY7 — nested Style correction, ready for Atlas review
  2. Status: completed through proof and gates; stopped before deployment. Nothing deployed or pushed. Branch `ly7-style`; worktree `/media/STORAGE/claude-scratch/atlas/LY7/wt`. Source base `d8628cf`. The original phase and the temporary blocker report are preserved as REPORT-part1.md and REPORT-slot-blocker.md.
  3. Task lines, unchanged: “The styles are totally wrong formatted. This is getting annoying.” and “'@media (min-width: 60rem)' { <- the language has also something for this”.
  4. ## Final form and scope
  5. The eleven scoped files have one declaration per line, nested child-combinator keys, nested compounds and pseudo-classes, and bare media blocks. The declaration trees now use keys such as `applicationHeader { '> button' { … } }`, `threePane { '> main' { '> menu' { … } } }` and `userMenu { '> button' { svg { … } } }`. Duplicate and orphan comments were removed. Every supported child and compound relationship is nested. Whole-selector exceptions are listed below for selector lists, pseudo-elements, :has conditions and the caller-slot gap authorized by Atlas.
  6. Only Style blocks changed in the eleven scoped files. No View, handler, id, control, route or declaration value changed. No control was moved or removed. theme/theme.hl remains byte-identical to the original base. Synced component files remain verbatim from 8176eb1.
  7. Home, mail-demo and tracker-demo already had nested trees after part 1; their correction removes the obsolete compound-gap comment lines. Notes-demo already had the required tree and retains it, with one short explanation above its root rule. The other seven shell files now use the deeper accepted tree form.
  8. ## Commits
  9. Vendor and sync:
  10. ```text
  11. 87e4003 Re-vendor layouts to Hybriel set day35
  12. 3aca2d7 Sync components from 8176eb1 with reviewed nested styles
  13. ```
  14. Correction and review history:
  15. ```text
  16. b1d4f37 app-header: nest child and compound selectors in Style
  17. 69c9f78 Record LY7 slot nesting blocker and minimal repro
  18. eae2be7 app-sidebar: nest child selectors and document caller-slot gap
  19. c545b64 content-first: nest child and compound selectors in Style
  20. 0541397 list-first: nest child and compound selectors in Style
  21. 3e389b8 main-menu: nest child and compound selectors in Style
  22. 6960494 three-pane: nest child and compound selectors in Style
  23. e631791 user-menu: nest child and compound selectors in Style
  24. fe2d8de home: nest child and compound selectors in Style
  25. ab22bdc mail-demo: nest child and compound selectors in Style
  26. 0b5b1d6 notes-demo: nest child and compound selectors in Style
  27. b810453 tracker-demo: nest child and compound selectors in Style
  28. ```
  29. The part-1 commits are retained in history; the correction adds one commit per scoped file. The intervening report commit records the independently reproduced blocker and its tab cleanup.
  30. ## Vendor and sync proof
  31. Set day35 SOURCE: `cb9e480dafb867b9345772c96ae9fedb476a1b03`. Binary SHA-256: `4bb25cfa94ddcbaffbb7ae729a7e696182c13f484d269d1023ff87d80e9490a4`. SHA256SUMS passed for every set entry. bin/ contains set bin/ plus lib/ and is an untracked directory. Core and web plugin sources, including README, come from git archive cb9e480d; other plugin sources were retained with their .so from the set. The upstream blank line at the end of plugins/web/view.hl is preserved. README records the vendoring. tools/sync-components.sh 8176eb1 copied 25 files, with thirteen changed files; --check passes.
  32. ## Gates
  33. `theme-day35.log`: check-theme: 46 files, 0 problems
  34. `gate-day35.log`: 340 passed, 0 failed — screenshots in .scratch/gate-shots/
  35. `theme-sync.log`: check-theme: 46 files, 0 problems
  36. `gate-sync.log`: 340 passed, 0 failed — screenshots in .scratch/gate-shots/
  37. `theme-final.log`: check-theme: 46 files, 0 problems
  38. `gate-final.log`: 340 passed, 0 failed — screenshots in .scratch/gate-shots/
  39. `review/theme-final.log`: check-theme: 46 files, 0 problems
  40. `review/gate-final.log`: 340 passed, 0 failed — screenshots in .scratch/gate-shots/
  41. The final correction gate passed on its first run; no gate flake or rerun occurred. Before that final run, the compiler refused nested slot-only tags. Those startup rejections are recorded below and were resolved by Atlas’s authorized whole-selector exception.
  42. Gate ports: LAYOUTS_GATE_PORT=8800, LAYOUTS_GATE_CHROME=8801-8809, HL_PORT_BASE=8800; TMPDIR inside LY7/gate-tmp. Preview 8810; independent repro 8811. Only automated repository gates used headless Chrome.
  43. ## Served CSS per file
  44. The same unchanged day35 binary served CSS before and after each file. The comparison counts exact (query, selector, ordered declarations) entries, including multiplicities. It performs no selector mapping. The strict per-file logs are review/css-<name>.txt. The complete corrected sheet also matches the original post-sync sheet before any part-1 formatting, with all 703 entries identical.
  45. | File | Exact entries before / after |
  46. |---|---|
  47. | `theme/shell/app-header.hl` | 703 / 703, exact selectors and declarations |
  48. | `theme/shell/app-sidebar.hl` | 703 / 703, exact selectors and declarations |
  49. | `theme/shell/content-first.hl` | 703 / 703, exact selectors and declarations |
  50. | `theme/shell/list-first.hl` | 703 / 703, exact selectors and declarations |
  51. | `theme/shell/main-menu.hl` | 703 / 703, exact selectors and declarations |
  52. | `theme/shell/three-pane.hl` | 703 / 703, exact selectors and declarations |
  53. | `theme/shell/user-menu.hl` | 703 / 703, exact selectors and declarations |
  54. | `components/home.hl` | 703 / 703, exact selectors and declarations |
  55. | `components/demo/mail-demo.hl` | 703 / 703, exact selectors and declarations |
  56. | `components/demo/notes-demo.hl` | 703 / 703, exact selectors and declarations |
  57. | `components/demo/tracker-demo.hl` | 703 / 703, exact selectors and declarations |
  58. The sheet has rule-order changes from nesting. The comprehensive order check considers every inverted pair within the same query, including pairs whose property names differ so that shorthand/longhand interactions are not excluded. There are 37 inverted pairs. In his Chrome, all four sizes and the default, open sidebar, open search and open user-menu states gave 68 page/state/size observations; none of the 37 pairs matched the same element. Thus the reordered pairs cannot compete on the captured pages/states. Artifacts: review/order-pairs.json, review/after/order-audit.json, review/order-hits.json, and per-file review/order-<name>.txt. The gate additionally covers normal shell navigation and controls.
  59. Media overrides remain at the rule they change. When minWidth/minHeight/maxWidth/maxHeight must be declarations, the bare query wraps a child rule rather than treating them as query conditions. Exact specificity is preserved; existing ids were not substituted for tag selectors.
  60. ## Screenshot and browser proof
  61. Fresh before: review/before from the reviewed part-1 source, before the first correction. After: review/after from the complete correction. Both use the same day35 binary and were captured on 2026-11-01. Seven pages × four sizes = 28 pairs. All have exact RGBA AE 0; no image, browser date or screenshot content was altered.
  62. | Page | 390×844 AE | 800×1280 AE | 1280×800 AE | 1280×900 AE |
  63. |---|---:|---:|---:|---:|
  64. | / | 0 | 0 | 0 | 0 |
  65. | /shells/content-first | 0 | 0 | 0 | 0 |
  66. | /shells/content-first/movie | 0 | 0 | 0 | 0 |
  67. | /shells/list-first | 0 | 0 | 0 | 0 |
  68. | /shells/list-first/trip | 0 | 0 | 0 | 0 |
  69. | /shells/three-pane | 0 | 0 | 0 | 0 |
  70. | /shells/three-pane/m2 | 0 | 0 | 0 | 0 |
  71. I inspected all four before and all four after contact sheets. Header contents, the home columns, wrapped long note titles, dense mail rows, desktop panes and mail action strip match. On phone/tablet widths below the breakpoint only the selected list/detail view is shown; desktop keeps the expected columns. Screenshot contacts are review/before-<size>.jpg and review/after-<size>.jpg. HTML served by the corrected preview is saved under review/after/html-*.html.
  72. Proof used one own plain tab in his existing lisbeth Chrome :9223 under lisbeth.lock. The after run also used real clicks to open visible menus and Escape to close them for the order audit. The own tab was closed and its absence verified after every run. Only the preview origin’s service worker was unregistered; no browser-wide data was cleared. The foreign tab 7F717BE2749D811AB873C4AB0D92ECB7 and his original about:blank tab were untouched.
  73. ## Retained whole-selector gaps
  74. Atlas authorized caller-provided slot rules with the exact one-line reason “slot content from the caller: nesting refused (repro LY7/review/repro)”. The same compiler validation applies to caller-provided list-first and three-pane descendants, so the authorized exception is recorded there as well. Ten whole rules carry that reason: two sidebar rules, three list-first rules, and five three-pane rules. Child/compound relationships accepted by the compiler remain nested. Single quoted child or compound keys are the measured language form and are not listed as whole-selector gaps.
  75. - `theme/shell/app-header.hl:93` — `'body:not(:has(#sidebar)) application-header > button.menu-toggle'`: Keep the whole selector for :has condition.
  76. - `theme/shell/app-header.hl:95` — `'application-header > form.search::backdrop'`: Keep the whole selector for pseudo-element.
  77. - `theme/shell/app-header.hl:97` — `'body:has(list-first) application-header, body:has(three-pane) application-header'`: Keep the whole selector for selector list, :has condition.
  78. - `theme/shell/app-header.hl:100` — `'application-header > button.menu-toggle, application-header > button.search-toggle'`: Keep the whole selector for selector list.
  79. - `theme/shell/app-header.hl:110` — `'application-header > form.search, application-header > form.search:not(:popover-open), application-header > form.search:popover-open'`: Keep the whole selector for selector list.
  80. - `theme/shell/app-sidebar.hl:33` — `'app-sidebar::backdrop'`: Keep the whole selector for pseudo-element.
  81. - `theme/shell/app-sidebar.hl:57` — `'app-sidebar h2'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  82. - `theme/shell/app-sidebar.hl:67` — `'app-sidebar nav a'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  83. - `theme/shell/app-sidebar.hl:81` — `'app-sidebar nav a.current, app-sidebar nav a[aria-current="page"]'`: Keep the whole selector for selector list.
  84. - `theme/shell/app-sidebar.hl:87` — `'app-sidebar, app-sidebar:popover-open'`: Keep the whole selector for selector list.
  85. - `theme/shell/app-sidebar.hl:105` — `'app-sidebar.mobile-only, app-sidebar.mobile-only:popover-open'`: Keep the whole selector for selector list.
  86. - `theme/shell/content-first.hl:40` — `'content-first:not(:has(> app-sidebar:not(.mobile-only)))'`: Keep the whole selector for :has condition.
  87. - `theme/shell/list-first.hl:50` — `'list-first > aside ul'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  88. - `theme/shell/list-first.hl:56` — `'list-first > aside li'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  89. - `theme/shell/list-first.hl:58` — `'list-first > aside li a, list-first > aside li > a:first-child'`: Keep the whole selector for selector list.
  90. - `theme/shell/list-first.hl:71` — `'list-first > aside li a'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  91. - `theme/shell/list-first.hl:78` — `'list-first > aside li a.selected, list-first > aside li a[aria-current="page"]'`: Keep the whole selector for selector list.
  92. - `theme/shell/list-first.hl:84` — `'list-first > aside input, list-first > aside select'`: Keep the whole selector for selector list.
  93. - `theme/shell/list-first.hl:90` — `'list-first a.back::before'`: Keep the whole selector for pseudo-element.
  94. - `theme/shell/list-first.hl:94` — `'list-first > aside, list-first.detail > aside'`: Keep the whole selector for selector list.
  95. - `theme/shell/list-first.hl:103` — `'list-first > main, list-first.list > main'`: Keep the whole selector for selector list.
  96. - `theme/shell/three-pane.hl:74` — `'three-pane > aside ul'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  97. - `theme/shell/three-pane.hl:80` — `'three-pane > aside li'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  98. - `theme/shell/three-pane.hl:82` — `'three-pane > aside li a, three-pane > aside li > a:first-child'`: Keep the whole selector for selector list.
  99. - `theme/shell/three-pane.hl:95` — `'three-pane > aside li a'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  100. - `theme/shell/three-pane.hl:102` — `'three-pane > aside li a.selected, three-pane > aside li a[aria-current="page"]'`: Keep the whole selector for selector list.
  101. - `theme/shell/three-pane.hl:108` — `'three-pane > aside input, three-pane > aside select'`: Keep the whole selector for selector list.
  102. - `theme/shell/three-pane.hl:114` — `'three-pane a.back::before'`: Keep the whole selector for pseudo-element.
  103. - `theme/shell/three-pane.hl:116` — `'three-pane > main > menu li'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  104. - `theme/shell/three-pane.hl:118` — `'three-pane > main > menu button'`: slot content from the caller: nesting refused (repro LY7/review/repro)
  105. - `theme/shell/three-pane.hl:125` — `'three-pane > aside, three-pane.detail > aside'`: Keep the whole selector for selector list.
  106. - `theme/shell/three-pane.hl:134` — `'three-pane > main, three-pane.list > main'`: Keep the whole selector for selector list.
  107. - `theme/shell/user-menu.hl:55` — `'body:has(list-first) user-menu > nav:popover-open, body:has(three-pane) user-menu > nav:popover-open'`: Keep the whole selector for selector list, :has condition.
  108. - `theme/shell/user-menu.hl:58` — `'user-menu > nav::backdrop'`: Keep the whole selector for pseudo-element.
  109. - `theme/shell/user-menu.hl:60` — `'user-menu > nav a, user-menu > nav button'`: Keep the whole selector for selector list.
  110. - `theme/shell/user-menu.hl:73` — `'user-menu > nav a:hover, user-menu > nav button:hover'`: Keep the whole selector for selector list.
  111. The independent repro is review/repro/project.hl, page.hl and sidebar.hl. It rejects h2 and nav that the caller supplies through the slot, with the error at plugins/web/css.hl:538:11. Bare nested tags, a quoted component root, and explicitly quoted child tag keys all hit that validation. Logs: review/repro.log, review/repro-quoted-children.log, review/sidebar-retry.log and review/resume.log. Atlas is forwarding the repro to Arachne. The correction does not alter plugins or compiler sources.
  112. ## DOCS
  113. DOCS: read the whole HL-PRIMER.md and CODE-ORDER.md, COMPONENTS.md §4 Styles (nested tags, pseudo-classes, id rules, selector-shaped keys, bare media queries and descendant validation), archived hl:web ARCHITECTURE.md, archived worker rules, T36R answer, CS23/CS23b reports and layouts README Run, test, deploy. Read arachne-theme-answer.md whole and used its measured quoted nested child/compound shape. The open language/doc question is descendant validation for caller-provided slot elements in a component Style. The relay’s styles-file example does not resolve that component-Style case; Atlas authorized the exact listed exception. No other unanswered language question or workaround was introduced.
  114. ## Processes and cleanup
  115. Preview/native app launcher PIDs for the full mission were 1195587, 1251477, 1254607, 1257782, 1261024, 1264093, 1267268, 1270312, 1274095, 1277672, 1281308, 1284246, 1404688, 1443980, 1451256, 1485915, 1533210, 1536442, 1539500, 1567122, 1572043, 1577043, 1581743, 1586520, 1591333, 1596300, 1601264. Each preceding launcher was stopped by numeric PID before the next restart or exited on the recorded startup error. Final cleanup stopped 1601264 (/home/mre/.hybriel/cache/run/df81c0f16a17111cbaa06a0882f6ad575a814137ac7449eb2650216293dfc88b-1.app), 1535507 (ssh -N -o ExitOnForwardFailure=yes -R 8810:127.0.0.1:8810 lisbeth). Their cwd was checked under LY7 before signalling; all recorded preview and tunnel PIDs are gone. Prior stopped orchestration/restart PIDs 1404661, 1450571 and 1485909 remain recorded in review/stopped-orchestration.json and review/stopped-retry.json. The independently run repro, including the quoted-child variant, exited 1. Repository gate helpers finished and closed their own fixture server and headless Chrome. Process snapshots are in processes-*.json; review/ports-final.txt has no listeners in 8800–8819. No Chrome cwd under LY7 remains. The pre-existing :9223 SSH tunnel and all foreign tabs were untouched.
  116. ## Request budget
  117. The initial part-1 phase used approximately 50 model requests. The blocked correction phase used approximately 20. This authorized continuation used approximately 20 additional requests, mainly implementation, long-job waits, screenshot inspection and cleanup. No subagent was spawned.
  118. ## Final page list
  119. Page targets from the final curl -s 127.0.0.1:9223/json/list:
  120. ```json
  121. [
  122. {
  123. "description": "",
  124. "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@1d17a2e2ee147bb7d6ae2ab6abdb3a2510c17775/inspector.html?ws=127.0.0.1:9223/devtools/page/2B36106C7AF83C7D196B54C5C499429C",
  125. "id": "2B36106C7AF83C7D196B54C5C499429C",
  126. "title": "about:blank",
  127. "type": "page",
  128. "url": "about:blank",
  129. "webSocketDebuggerUrl": "ws://127.0.0.1:9223/devtools/page/2B36106C7AF83C7D196B54C5C499429C"
  130. }
  131. ]
  132. ```

Branches

Latest commits

  • 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
  • b810453etracker-demo: nest child and compound selectors in Stylemre
  • 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
  • ab22bdc2mail-demo: nest child and compound selectors in Stylemre
  • fe2d8de9home: nest child and compound selectors in Stylemre
  • e631791buser-menu: nest child and compound selectors in Stylemre
  • 69604944three-pane: nest child and compound selectors in Stylemre
  • 3e389b83main-menu: nest child and compound selectors in Stylemre
  • 05413975list-first: nest child and compound selectors in Stylemre
  • c545b642content-first: nest child and compound selectors in Stylemre
  • eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
  • 69c9f784Record LY7 slot nesting blocker and minimal repromre
  • b1d4f379app-header: nest child and compound selectors in Stylemre
  • 6385ff8eRecord LY7 style formatting proof and review statusmre
  • 0100f51etracker-demo: format Style with nested rules and bare mediamre
  • 5f82554enotes-demo: format Style with nested rules and bare mediamre
  • 3dc27d78mail-demo: format Style with nested rules and bare mediamre
  • cf9648afhome: format Style with nested rules and bare mediamre
  • 846a6242user-menu: format Style with nested rules and bare mediamre
  • 4d58708cthree-pane: format Style with nested rules and bare mediamre