notes
All repositories: gitoria
10.2 KB
# W1124N9 — notes#9Worktree: /media/STORAGE/claude-scratch/atlas/W1124N9/wt. Branch: notes9-no-poll. Base: origin/main c028ac6. No deployment or merge is authorized or performed.DOCS: Read HL-PRIMER.md, HL-STANDARD.md (provided), CODE-ORDER.md, COMPONENTS.md reconnect/reachability/offline/drafts sections and vendored plugins/web/README.md. The working shape is `__hlReach = 'connecting'`, with `on client reconnected(Hybrid r)` for catch-up. COMPONENTS.md #383 explicitly states that F15 provides no debounce primitive. The remaining draft-send animation is an F20 gap, hybriel#444 (https://tickets.worldapi.org/hybriel/444); minimal desired shape: timer-repro/page.hl. This task explicitly permits keeping that existing draft-send mechanism while awaiting the framework form. No replacement workaround was introduced. DECISIONS.md records no decisions; notes#9/#13 history and LOG.md were read.The old-code check used `TMPDIR=$PWD HL_CDP_PORT_BASE=8803 timeout 1800 node wt/tests/no-poll.mjs`. It failed on c028ac6: two notesPull frames during 25 seconds idle, and no offline message within 90 seconds of suspending the server. The captured output is old.log (0 passed, 2 failed).The fix removes the ten-tick polling counter. The offline note reads framework reachability instead of the result of a polling call. The reconnect handler still pulls once. The draft-send tick, flush, edit buffer, server save and rejected-draft logic remain unchanged.Status: PARTIAL / FAILED GATE. Do not merge or deploy this candidate. The targeted change and real-Chrome proof pass, but the full browser gate fails twice. The requested all-gates-zero condition has not been met. At the brief's request cap, implementation stops here.Changes (old → new):- components/notes.hl:14: clock sends drafts and polls every ten seconds → clock sends drafts only; identifies hybriel#444.- components/notes.hl:170: private reachable flag and tick counter → framework __hlReach declaration; both private fields removed.- components/notes.hl:187: offline message follows pull result → follows browser online state and framework server reachability.- components/notes.hl:323: flush plus tenth-tick pull → flush(600) only.- components/notes.hl:363: pull mutates private reachability → catch-up applies login, notes and drafts only. The reconnect pull remains at line 327.- deploy.sh:27: six existing gates → also includes tests/no-poll.mjs.- tests/no-poll.mjs: new wire-level idle/reachability/recovery regression.- tests/proof-notes9.mjs: new dedicated confirmation script attaching to existing Chrome; one owned plain tab and finally cleanup. A separate automated local Chrome supplies the second tab.The gate runner gates.sh sets all NOTES_* env values from the notes deploy-init line inside ports 8800–8810; TMPDIR is this scratch directory and HL_CDP_PORT_BASE=8803. Each test runs as one `timeout 1800 node tests/<name>.mjs` command. ss snapshots precede each run. Fresh test fixtures were isolated from live data. Results:- no-poll: 3 passed, 0 failed (new-no-poll.log); old: 0 passed, 2 failed (old.log).- pr7-regressions: 3 passed, 0 failed.- browser: 124 passed, 2 failed; identical result on required rerun.- security: 86 passed, 0 failed.- signin-return: 3 passed, 0 failed.- ident-access-notes: 35 passed, 0 failed.- theme: `timeout 1800 node theme/check-theme.mjs .`: 26 files, 0 problems.Browser failures: the keyboard New note assertion sees a provisional pathname with the accepted server id selected in the list. The later rejected-draft test times out opening Markdown source. Both reproduced, so they are not called load flakes. The original session did not run the full baseline. The follow-up below runs c028ac6, but its separate earlier failure prevents comparison of those later assertions. No claim is made that the original two failures predate this patch. Next step: identify adoption navigation and source-mode behavior without weakening the unsent/rejected-edit guarantees. Existing PR7 rejected-draft and retained-page checks pass; the failed browser gate prevents a complete no-loss certification.Chrome confirmation: `bash run-proof.sh`, which runs `TMPDIR=$PWD HL_CDP_PORT_BASE=8803 timeout 600 flock /media/STORAGE/claude-scratch/atlas/lisbeth.lock node wt/tests/proof-notes9.mjs`. 7 passed, 0 failed. Existing [::1]:9223 tunnel reused; no new tunnel or browser was started on lisbeth. Test data used its own local host and isolated sessions. Typed text saved at 390×844, 800×1280, 1280×800 and 1280×900. A second tab in a local automated Chrome changed the same note; the creator's Chrome received it by push. SIGSTOP on the local server displayed the offline message; SIGCONT cleared it. Screenshots were inspected: the source text is visible at every size, and the desktop offline screenshot shows the offline message and the pushed text. On the phone the source editor and Delete note are vertically scrollable. Evidence: evidence/proof-390x844.png, proof-800x1280.png, proof-1280x800.png, proof-1280x900.png, proof-offline.png; server HTML evidence/server.html. Before/after page lists: chrome-before.json, chrome-before-proof.json, chrome-after-proof.json, chrome-final.json. No browser data was cleared.Processes: automated test finally blocks closed their browsers and terminated their own app and ident children by saved numeric child handles. Explicitly recorded stopped processes include baseline node 252550 / local Chrome 275524, PR7 ident 342663, proof ident 448141 / notes server 459352, rerun ident 473768 / notes server 488940 / local Chromes 474580, 476212, 486101. Other short-lived gate child PIDs were not persisted; a complete historical PID list is unavailable. No manual kill by name was used. Final /proc cwd audit found only the pre-existing Codex agent processes and the audit command itself, with no worker-started servers/browsers left; ports-final.txt records sockets. Temporary fixture copies were deleted after evidence was preserved.Binary remains day61, SHA256 a11042e548b96f3c2c7c2382624ba11e3386a08f69fcf4697e2dcfb0ab3ac725, identical to main checkout. No bin/plugins/theme/shared tokens edits.Request budget: exceeded approximately 50 model replies while waiting for the blocking gate runner and diagnosing/repeating the full browser failure. Only this ticket was worked on; implementation stopped after the repeated failure. No further fixes or deployments attempted.Final Chrome page list:```json[{"id": "742CF3402C5D35B01ADD8175BB525442","url": "about:blank","title": "about:blank"}]```Initial publication (before the report-only follow-up amendment): ONE commit e915677b08fe1fa5ab769693a65b572d6062f3d3, author Atlas <[email protected]>, subject `|||PR WIP remove notes polling and use framework reachability`. Pushed only notes9-no-poll. Authenticated GET https://notes.gitoria.worldapi.org/api/pulls confirms PR #9 OPEN, source notes9-no-poll, target main, head e915677b08fe1fa5ab769693a65b572d6062f3d3: https://notes.gitoria.worldapi.org/pulls/9 . WIP title and committed report disclose the failed gate. Not merged or deployed. Working tree clean after commit/push.## Follow-up: Arachne's #444 answer and the input-send trialAtlas explicitly authorized testing the documented per-input emit and retaining only the draft-send clock if a gate or draft conflicts break. Read hybriel#444's full history: no timer/debounce form exists; case 9383 supports statement-form emits on every input. Proposed manifest coalesce requires caramboleyo's decision and was not implemented here.Trial: remove notesTick, its keyframes, its View element and tick handler; add flush(0) after recording each typed edit, preserving existing send-buffer and server conflict code. The trial source is saved as input-candidate.hl. It was NOT committed or published.Commands: `bash try-input.sh` runs `timeout 1800 node tests/pr7-regressions.mjs` and `timeout 1800 node tests/browser.mjs`, with all NOTES_GATE_* ports inside 8800–8810, TMPDIR in this scratch directory and HL_CDP_PORT_BASE=8803. ss snapshots precede each run. `bash retry-input.sh` repeats the same full browser command on the input variant, then restores the clock candidate through a shell EXIT trap.Results: per-input PR7 3 passed, 0 failed (input-pr7-regressions.log). Per-input browser 50 passed, 1 failed, repeated as 50 passed, 1 failed (input-browser.log and input-browser-retry.log). Both fail at browser.mjs:507: the concurrent-edit scenario expects four live notes and B as the later winning main note, but the server holds five live notes, A as the main note, and separate A and B conflict copies. Thus the documented per-input form does not preserve this app's gated draft-conflict behavior with the existing save pipeline. No test was weakened or disabled.The same browser gate was then run with components/notes.hl from unchanged c028ac6, using the same day61 binary and isolated fixtures: 53 passed, 1 failed (baseline-browser.log). It PASSED the concurrent-conflict assertions (B wins, A is one copy, four notes). It failed later because the delete question closed itself within 0.5 seconds. This baseline does not certify the later keyboard/adoption and rejected-source assertions that failed in the published candidate; those remain unresolved.Decision: keep ONLY typed-text sending on the CSS clock, identify the remaining debounce gap as hybriel#444, and keep the 10-second pull removed. Final components/notes.hl is byte-identical to the already published e915677 candidate (`git diff --exit-code -- components/notes.hl` passed). No immediate-input code remains. Existing real-Chrome proof still covers the same final component; no new lisbeth tab was opened during this abandoned trial. PR #9 remains WIP because the full browser gate is not green.All follow-up children were audited with child-audit.mjs, recording numeric spawn and exit events. Every started child has a matching exit event; /proc confirms none of these PIDs remains: 564738, 565271, 572383, 574213, 574721, 574923, 576383, 579406, 586273, 586979, 587188, 588926, 591949, 604151, 604653, 604768, 606131, 609024. Full audit files: input-processes.jsonl and input-retry-processes.jsonl. No new tunnel was started. Follow-up fixture data copies were deleted after logs were preserved. Final ports: followup-ports-final.txt. Final Chrome page list:```json[{"id": "742CF3402C5D35B01ADD8175BB525442","url": "about:blank"}]```
Branches
Latest commits
- 8342cd28Merge branch 'notes9-no-poll' into mainAtlas
- 1f0457a5|||PR make provisional rejected-draft setup deterministicAtlas
- 996768bf|||PR WIP sequence note creation before provisional-id adoptionAtlas
- c49ce093|||PR WIP remove notes polling and use framework reachabilityAtlas
- c028ac61Merge branch 'notes-pr7-kunibert' into mainAtlas
- 9cc92bdfKeep conflict and history fixes while awaiting queued save supportAtlas
- a5c27cb6Allow real edits back to earlier text and honor configured identAtlas
- 15c46ced|||PR Preserve note edits, conflict bases and visible historyAtlas
- 4c6e0bf6Merge branch 'notes13-day61' into mainAtlas
- eb51864f|||PR Back/Forward via navigate, server drafts, Hybriel day61Atlas
- 3537cf7eMerge branch 'vendor-day59' into mainAtlas
- c13d188b|||PR Vendor Hybriel day59Atlas
- 24c95433Merge branch 'notes17-ghost-note' into mainAtlas
- ae1075b2Preserve rejected drafts during note ID adoptionAtlas
- 383cce23|||PR Prevent saved local edits from restoring deleted notesAtlas
- 99ca1cf6Merge branch 'vendor-day56' into mainAtlas
- 649cef37|||PR Vendor Hybriel day56Atlas
- aadd0abcMerge branch 'hl-standard-2' into mainAtlas
- 52ffac9f|||PR Keyboard and reload checks for the notes gate (HL-STANDARD F21, F5)Atlas
- 617ee8c0Merge branch 'hl-standard' into mainAtlas