Repository navigation
fix(id-web): collab step-engine normalization + stale test oracles (#16947) - #16953
Merged
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 29, 2026
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #16947 — the 7
cargo test -p id-web --lib collabfailures from run 46285580674. Per-test diagnosis is recorded on the issue (comment 7261581776). Two genuine engine fixes incollab_steps.rs; five stale test expectations corrected incollab.rs(engine behaviour is the ProseMirror-verified side in each).Engine fixes (
crates/id-web/src/collab_steps.rs)content_between: a text run now counts as content only where the replaced range covers a positive length of it. An empty range inside a text run was refused as "structure replace would overwrite content"; PM'scontentBetweenwithdist == 0is always false. Fixesstructure_replace_refuses_to_overwrite_content.coalesce_text_runsinapply_step_in_doc), mirroring PM's fragment invariant. AremoveMarkleft two adjacent unmarked runs (5 + 6) where the document model holds one (11). Fixesmark_steps_update_the_model.Stale oracles (
crates/id-web/src/collab.rs)test_apply_steps_rejects_slice_with_unopenable_depths: control slice now inserted inside the paragraph (from 1, depth 1 — the paragraph-split shape). At from 0 (depth 0) PM refuses the same slice as deeper than the insertion position; the engine's own oracle test pins that refusal.test_apply_steps_rejects_non_numeric_heading_level: control heading now inserted after the paragraph (from 7, document level). Inside the paragraph a block child is invalid content, as PM also refuses.note.set_accessevent recorded since design(id): note access policies do not replicate — a peer rebuilding from events alone treats scoped notes as public (#3819 follow-on) #16717 (owner publish + set_access + publishes). The oracles' intent — a refused publication records nothing — is unchanged; each refusal still adds zero events.Verification:
cargo test -p id-web --lib collabto be dispatched against this branch via fleet Actions exec; the full diff is the merge evidence per Drew's rule (CI is not a gate).Lane 1337-G (alpha DRIVE author lane, 2026-11-29).
{ "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-29T19:51:28Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.