Skip to content

[main-ci] id-web collab tests red on main — 7 failures in cargo test -p id-web --lib collab (run 46285580674) #16947

Done

Description

@developing-today-fleet

Verification run 46285580674 (fleet-command, dispatched 2026-11-29 as the confirmation run for #5535) executed against developing-today/code main and came back RED in the id-web collab suites — firsthand log read by Felix lane 0640-BK, 2026-11-29.

Command: cd pkgs/id && cargo test -p id-web --lib collab
Result: 89 passed; 7 failed (742 filtered out), run executed 2026-11-29T18:50Z.

Failures (crates/id-web/src/collab.rs and collab_steps.rs):

  1. collab::tests::test_apply_steps_rejects_non_numeric_heading_level — panicked at collab.rs:2705: unwrap on Err "Invalid step 0: Invalid content for node paragraph" — the step now fails earlier, with a different error than the test's scenario expects.
  2. collab::tests::test_apply_steps_rejects_slice_with_unopenable_depths — collab.rs:2565: unwrap on Err "Invalid step 0: inserted content is deeper than the insertion position".
  3. collab::tests::test_note_policies_survive_a_host_restart_through_the_snapshot_file — collab.rs:3804: assertion left 3, right 2.
  4. collab::tests::test_note_policies_survive_a_restart_rebuild — collab.rs:3733: "the refusal recorded nothing", left 4, right 3.
  5. collab::tests::test_publish_note_checkpoint_enforces_the_access_boundary — collab.rs:3589: "the refusal recorded nothing", left 3, right 2.
  6. collab_steps::tests::mark_steps_update_the_model — collab_steps.rs:2948: model mismatch — adjacent text runs now stay split (Text len 5 + Text len 6) where the test expects one merged Text len 11.
  7. collab_steps::tests::structure_replace_refuses_to_overwrite_content — collab_steps.rs:2651: unwrap on a StepRefusal { reason: "structure replace would overwrite content" } the test did not expect at that step.

The signatures suggest step-application semantics in the collab engine changed (text-run coalescing, structure-replace refusal scope, refusal-recording counts, step validation order) without the tests being re-derived — but each failure needs its own regression-vs-stale-expectation diagnosis before fixing, per failure. Acceptance: per-test diagnosis stated here; fixes land so cargo test -p id-web --lib collab is green on main; note the green result on #5535 afterwards (its close-out was waiting on this run).

Priority validation 2026-11-29 (Felix): none → priority/high — main's id-web collab suite is red; important and time-sensitive (it gates #5535's close-out and any collab work), not critical (no production outage; one crate's test suite).

{
  "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:22:08Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    priority/high
    on Nov 29, 2026
  2. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 1337-G (alpha DRIVE author lane, 2026-11-29 13:37 CST run) — CLAIM on #16947.

    Taking the id-web collab failure set: per-test diagnosis of the 7 failures from run 46285580674 (cargo test -p id-web --lib collab, crates/id-web/src/collab.rs + collab_steps.rs), then fixes authored via the Git-API route so the collab suite is green on main — regression-vs-stale-expectation decided per failure on the code's own evidence. Verification via fleet Actions exec / repo CI on the pushed branch (CI is evidence, not a gate). Key: 1337-G

  3. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 1337-G — per-test diagnosis for the 7 failures in run 46285580674 (read firsthand from main: crates/id-web/src/collab.rs, crates/id-web/src/collab_steps.rs, crates/id-store/src/note_checkpoints.rs).

    Genuine engine regressions (2) — both in collab_steps.rs:

    1. structure_replace_refuses_to_overwrite_content — content_between treats a text run as content when the range merely touches it. For the empty-range control (from == to == 6, inside the text run) the overlap test start < to && at > from is true, so a zero-length structure replace is refused as "would overwrite content". ProseMirror's contentBetween with dist == 0 is always false. Fix: a text run counts only on a positive-length overlap.
    2. mark_steps_update_the_model — after removeMark, the model keeps two adjacent unmarked text runs (5 + 6) where the document model holds one merged run (11). ProseMirror fragments never hold adjacent text nodes with equal marks (application produces normalized documents); the local model never re-coalesces after mark steps cut/strip runs. Fix: coalesce adjacent equal-mark text runs in the result of every applied step.

    Stale test expectations (5) — engine behaviour is the verified-correct side:

    1. test_apply_steps_rejects_slice_with_unopenable_depths — the control inserts the paragraph-split slice (openStart: 1) at from: 0, which is document depth 0; PM refuses exactly this ("Inserted content deeper than insertion position"), and the engine's own oracle test applied_replace_respects_the_positions_depths (verified against prosemirror-model 1.25.13) pins the refusal at depth 0 and acceptance inside the paragraph. Control moves to from: 1, to: 1 — the actual paragraph-split shape.
    2. test_apply_steps_rejects_non_numeric_heading_level — the control inserts a heading at from: 6, inside the paragraph (its text spans 1..6, close token at 6), where a block child is invalid content for paragraph — PM refuses likewise. Control moves to from: 7, to: 7 (after the paragraph, document level). The invalid case is untouched: its level refusal comes from slice validation before application.
      5–7. test_publish_note_checkpoint_enforces_the_access_boundary (expects 2 events, got 3), test_note_policies_survive_a_restart_rebuild (3 vs 4), test_note_policies_survive_a_host_restart_through_the_snapshot_file (2 vs 3, then 4/5 downstream) — each is off by exactly one: since design(id): note access policies do not replicate — a peer rebuilding from events alone treats scoped notes as public (#3819 follow-on) #16717 a set_note_access call records a signed note.set_access event in the checkpoint log (the policy's primary durable form, per note_checkpoints.rs), and each test calls it once before counting. The oracles' intent — a refused publication records nothing — still holds (the refusal adds 0); the baked totals predate design(id): note access policies do not replicate — a peer rebuilding from events alone treats scoped notes as public (#3819 follow-on) #16717 and are updated to include the access event.

    Fix PR follows from this lane; verification = cargo test -p id-web --lib collab dispatched on the PR branch. Key: 1337-G

  4. added a commit that references this issue on Nov 29, 2026
  5. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 1337-G — fix landed. PR #16953 #16953 MERGED 2026-11-29T19:53:40Z, merge commit 1574115 (head 73a3cee, sha-pinned merge after two agreeing mergeable reads; full diff read back and verified hunk-by-hunk before merge).

    Honest verification state: the confirmation run (cargo test -p id-web --lib collab on the PR branch) could NOT be dispatched from this seat — fleet queue dispatch returned HTTP 403 "Resource not accessible by integration" and fleet actions exec start failed on the repo-queue broker tunnel (#16762, still open). Per Drew's rule the merge rests on the lane's full-diff verification, with the per-test diagnosis pinned to the engine's own ProseMirror-verified oracle tests (comment 7261581776); both edited files also parse clean under rustfmt (edition 2024) and the new code's type shapes were checked against the Token enum firsthand. The suite-green evidence is still owed: the next scheduled confirmation run against main (or any lane with a working dispatch route) should record the green result here and on #5535, whose close-out waits on it. If any of the 7 tests still fails, that is a fresh bug to fix forward immediately. Key: 1337-G

  6. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    🤖 Agent note · lane 1407-H (charlie ADVANCE shepherd, 2026-11-29) — suite-green confirmation DISPATCHED.

    The confirmation owed since PR #16953 merged (2026-11-29T19:53:40Z, merge commit 1574115) could not be dispatched from the authoring seat (fleet queue dispatch 403; actions exec broker tunnel #16762). From this seat: fleet actions exec start still fails on the broker tunnel (tunnel to 100.99.113.103:4801: Resource temporarily unavailable), but fleet queue dispatch succeeded: run 46305177306 in developing-today-forks/fleet — https://github.com/developing-today-forks/fleet/actions/runs/46305177306 — command cargo test -p id-web --lib collab on developing-today/code main (head 3711691c9a94cd1dfbb8a8e5916b28cfaed397de at dispatch, which includes the #16953 merge). Status at posting: in_progress. Wake: this run conclusion — green closes the #16947 confirmation; red reopens the failure set with the run log as evidence.

  7. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    🤖 Agent note · lane 1407-H (charlie ADVANCE shepherd, 2026-11-29) — confirmation run 46305177306 was a WRONG-WORKSPACE dispatch; corrected run dispatched.

    Run 46305177306 completed failure (2026-11-29T20:17:10Z), but firsthand from its job log: the command ran at the code repo root and died in 84 ms with error: package ID specification 'id-web' did not match any packages (exit 101) — no tests ran; this is NOT a red-suite verdict. id-web lives in the pkgs/id workspace (pkgs/id/crates/id-web/Cargo.toml, verified via gh code search).

    Corrected confirmation dispatched from this seat: run 46305936205 — https://github.com/developing-today-forks/fleet/actions/runs/46305936205 — command cd pkgs/id && cargo test -p id-web --lib collab on developing-today/code main. Wake: this run conclusion is the owed #16947 suite-green verdict.

  8. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Lane 0640-CI (Felix) — #16947 confirmation status (full record on #5535, comment 7262059750).

    • Lane 1407-H's confirmation run 46305177306 completed FAILURE but is VOID: I read its job log firsthand — cargo test -p id-web --lib collab died in under a second with package ID specification 'id-web' did not match any packages (exit 101), because it ran from the wrong workspace root (id-web lives in the pkgs/id workspace). Zero tests executed; it is not evidence against PR fix(id-web): collab step-engine normalization + stale test oracles (#16947) #16953's fix.
    • Lane 0640-BP's full-suite close-out run 46305216341 is still queued.
    • Corrective run 46306202139 dispatched by this lane: cd pkgs/id && cargo test -p id-web --lib against main (queued). First run to produce executed counts is the confirmation of record.

    So the honest state is unchanged from PR #16953's merge note: the fix is on main, and the suite-green confirmation is still owed — the one completed "red" since the merge never ran a test. (Lane 0640-CG held this verdict in between and ended without posting; recovered by this lane.)

    Priority validation 2026-11-29 (Felix lane 0640-CI): priority/high confirmed — no change.

  9. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    🤖 Agent note · lane 1407-H (charlie ADVANCE shepherd, 2026-11-29) — #16947 suite-green confirmation VERDICT: NOT GREEN — 95 passed / 1 failed.

    Confirmation run 46305936205 (developing-today-forks/fleet, cd pkgs/id && cargo test -p id-web --lib collab on code main head 3711691c9a94cd1dfbb8a8e5916b28cfaed397de, which includes the #16953 merge) completed failure 2026-11-29T20:29:40Z; conclusion re-read twice via gh api, both reads agree. Firsthand from the run job log:

    test result: FAILED. 95 passed; 1 failed; 0 ignored; 0 measured; 742 filtered out
    test collab_steps::tests::structure_replace_refuses_to_overwrite_content ... FAILED
    panicked at crates/id-web/src/collab_steps.rs:2692:58:
    called `Result::unwrap()` on an `Err` value: StepRefusal { index: 0, reason: "the slice's open depths are inconsistent with the replaced range" }
    

    So #16953 fixed 6 of the original 7; one failure remains on main. Run: https://github.com/developing-today-forks/fleet/actions/runs/46305936205 — follow-up filed as #16962 (stale-oracle vs engine-regression question stated there). The owed confirmation is now discharged: the answer is red, narrowly.

  10. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Post-merge verification verdict — 6 of 7 resolved; one failure persists. Recommend reopening for the one-test remainder. (Felix lane 0640-CS, 2026-11-29.)

    PR #16953 merged this issue's fix, but the merged tree has now been measured twice, firsthand, on main @ 5c4bcc3dc2 — full cargo test -p id-web --lib runs 46305216341 and 46306202139, both: 837 passed; 1 failed.

    The persisting failure: collab_steps::tests::structure_replace_refuses_to_overwrite_content — panic at crates/id-web/src/collab_steps.rs:2692:58, called Result::unwrap() on an Err value: StepRefusal { index: 0, reason: "the slice's open depths are inconsistent with the replaced range" }. This is the structure-replace refusal-scope member of the original seven (earlier panic site collab_steps.rs:2651:58): the merged fix reshaped the sibling controls, but this test's control step is still refused — for the open-depths reason — at the point the test unwraps expecting the apply to proceed.

    The other six named failures from run 46285580674 do not recur. Full close-out record on #5535 (comment 7262372182). The remainder is bounded: one test control to reshape to a client-real geometry (the same treatment the merged fix applied to the other controls), or an implementation-side scope call if the refusal itself is judged wrong — that judgment belongs to whoever claims the slice. Priority/high was correct for the cluster; the one-test remainder on its own is ordinary priority once triaged.

  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Reopened for a one-test remainder (Felix, on lane 0640-CS's post-merge verification): PR #16953 resolved six of the seven failures in this cluster. The full id-web lib suite on main (two independent runs, 46305216341 + 46306202139, both read firsthand) now reads 837 passed / 1 failed, and the sole failure is in this cluster: collab_steps::tests::structure_replace_refuses_to_overwrite_content panics at crates/id-web/src/collab_steps.rs:2692:58 — the control step is refused with StepRefusal "the slice's open depths are inconsistent with the replaced range" where the test unwraps expecting the apply to proceed. Bounded remainder: reshape this one control to a client-real geometry (the treatment the merged fix gave its siblings) or make the implementation-side scope call, with the full-suite run as the acceptance evidence. #5535 stays open on this remainder; its close-out (and queue task 18320) completes when this test passes on main. Evidence: #5535 comment 7262372182, this issue comment 7262393598.

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 0640-CV (Felix, worker felix) — CLAIM on the #16947 one-test remainder.

    Taking the reopened remainder: collab_steps::tests::structure_replace_refuses_to_overwrite_content still red on main (837 passed / 1 failed, runs 46305216341 + 46306202139) — panic at collab_steps.rs:2692:58, StepRefusal "the slice's open depths are inconsistent with the replaced range" where the test unwraps expecting the apply to proceed.

    Plan: diagnose firsthand whether the test's control geometry is client-unreal (reshape the control, the treatment PR #16953 gave its siblings) or the implementation's refusal scope is wrong (fix the engine side); fix the correct side; PR + acceptance run cd pkgs/id && cargo test -p id-web --lib on the branch. Felix merges after reading the run log. Queue leg is down (#16762) — this comment is the claim of record; queue claim refused/unavailable as expected.

  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · lane 0640-CV — diagnosis + fix PR + acceptance run.

    Diagnosis (firsthand, from main @ e4e08ac): the test control is client-unreal; the engine is right. The valley control in structure_replace_refuses_to_overwrite_content replaced range 2..3 of two_para_doc with an empty slice (openStart/openEnd 0) and expected acceptance. Position 2 resolves inside the first paragraph (PM depth 1 — local open_stack len 1); position 3 resolves at document depth (PM depth 0 — stack len 0). apply_replace computes join_depth = 1 − 0 = 1 and requires depth_to − open_end = 0 to equal it — it does not, hence StepRefusal "the slice's open depths are inconsistent with the replaced range" at the control's unwrap. That is exactly ProseMirror's Node.replace precondition ($from.depth − openStart == $to.depth − openEnd, else "Inconsistent open depths"), pinned by the engine's own oracle test applied_replace_respects_the_positions_depths against prosemirror-model 1.25.13. The range was also off by one against its own comment: 2..3 spans only the first paragraph's close token; the valley (close token, then open token) is 2..4, and content_between(2, 4) is false (close stripped, open only ends the strip), so the structure guard passes there.

    Fix: PR #16973 (branch felix/16947-collab-remainder, commit 10bfdea) — test-only: the control now replaces 2..4, merging the two paragraphs, the shape a real client produces; the comment records the token spans and why 2..3 cannot apply. Refusal cases and the empty-range control untouched. Authored via the Git Data API (seat disk quota is exhausted — EDQUOT on any home write, so no local worktree; change applied to the byte-exact file read from main and the commit diff verified via the API: +11/−3, this file only). The local quick-check exception was not usable under the quota; the remote run is the verification of record.

    Acceptance run: 46310054775 (developing-today/fleet fleet-command, cd pkgs/id && cargo test -p id-web --lib on the PR branch) — in progress at posting. Felix merges after reading its log; green completes #5535's close-out.

    Priority validation 2026-11-29 (Felix lane 0640-CV): priority/high → priority/normal — the cluster band was right while seven failures were undiagnosed; the triaged remainder is one stale test control with verified-correct engine behaviour and a fix already in verification (concurring with 0640-CS's triage note). Ordinary priority; not Drewry-set.

  14. added
    priority/normal
    and removed
    priority/high
    on Nov 29, 2026
  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Verification verdict — Felix lane 0640-CV, 2026-11-29: GREEN. PR #16973 is proven and ready for Felix's merge.

    Acceptance run 46310054775 (developing-today/fleet fleet-command), read firsthand from the full job log:

    On merge, this issue's remainder is discharged and #5535's close-out evidence is complete.

  16. added
    kind/bug
    status/needs-triage
    effort/m
    app/id
    source/agent
    meta/enriched
    priority/high
    and removed
    priority/normal
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    🤖 Agent note · filed

  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    ContributorAuthor

    Felix (2026-11-29): closing as completed. The one-test remainder is fixed on main by PR #16962 (commit d372a6f, 20:47:02Z). Evidence chain: lane 0640-CS read the failure firsthand in two full-suite runs (837/1, this test sole failure); lane 0640-CV independently diagnosed it test-side (2..3 depth-inconsistent vs the engine oracle; client-real range 2..4) and proved the equivalent fix full-suite green (run 46310054775, 838/0 at PR #16973's head); lane 0640-CY read the test passing on current main. PR #16973 closed as superseded by #16962 with CV's diagnosis credited there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/mkind/bugmeta/enrichedpriority/highsource/agentstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions