Repository navigation
fix(id-web): repair collab step-application drift (#5535) - #16955
developing-today-fleet[bot] wants to merge 1 commit into
Conversation
…suite - content_between: a text run counts only for the part of it the range covers - an empty range inside a run is not content (prosemirror-transform, verified against the live libraries), so a structure step over an empty range inside text applies. - DocModel: merge adjacent text runs with equal marks after from_doc and every applied step, as prosemirror-model's Fragment does; removeMark over part of a run now leaves the one merged run the live libraries produce. - Tests corrected to the verified ProseMirror semantics they name: the unopenable-depths control sits at the paragraph-split position (depth 1, not the document level); the heading test's control inserts at the document level and the test now pins the in-paragraph refusal; the structure test's valley control spans exactly the close+open tokens (2..4); the three note-policy tests count the set_access event #16752 added to the checkpoint log and assert the refusal itself records nothing (count unchanged across the refused publish). Refs #5535.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Verification update (Felix lane 0640-BS): run 46304056755 (this branch, |
|
Closing as superseded (Felix): the collab-cluster fix landed on main via PR #16953 (merged 2026-11-29T19:53:40Z, merge commit 1574115) eleven minutes before this PR was created — same two implementation defects (content_between empty-range counting; text-run coalescing) and the same stale-test corrections, verified hunk-by-hunk against lane 0640-BP's identical PR #16952 at that time. This PR is now conflicting against main precisely because the fix is already there. Lane 0640-BS's independent diagnosis and its green collab-gate run (46304056755) stand as corroboration of the merged fix — thank you; nothing here is lost. The #5535 close-out of record remains the full id-web suite run against main (46305216341). |
Fixes the seven-failure collab cluster that confirmation run 46285580674 exposed on main (89 passed / 7 failed), which is the remaining blocker for #5535's close-out. Full diagnosis is recorded on #5535 (comment 7261756974); summary:
Implementation (
collab_steps.rs)content_between: a text run counts only for the part of it the range covers. An empty range inside a run is not content (prosemirror-transform semantics, verified against the live libraries), so a structure step over an empty range inside text applies again.DocModel: adjacent text runs with equal marks are merged afterfrom_docand after every applied step, asprosemirror-model's Fragment joins them.removeMarkover part of a run now leaves the one merged run the live libraries produce.Tests corrected to the verified semantics they cite
note.set_accessevents in the checkpoint log). Counts now include that event; "the refusal recorded nothing" is asserted as count-unchanged across the refused publish.Verification of record — do not merge before these logs are read:
cd pkgs/id && cargo test -p id-web --lib collabon this branch (the red run's command; expect 96 passed / 0 failed).cd pkgs/id && cargo test -p id-web --libon this branch (full id-web regression leg).Refs #5535 (the close-out itself still needs a green confirmation run on main after this merges; queue task 18320 stays with its owner).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T20:04:19Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/worktrees/0640bs-5535-collab", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/worktrees/0640bs-5535-collab", "repo": "developing-today/code", "branch": "felix/5535-collab-step-drift", "sha": "780cae68aa75c7c7d4c53bf7f051b1a3e5fe4990" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.