GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(web): mixed task/plain lists cannot be saved at all — parse builds mixed lists its own placement validation rejects · Issue #1370 · developing-today/code

id(web): mixed task/plain lists cannot be saved at all — parse builds mixed lists its own placement validation rejects #1370

New issue
Copy link
New issue
Copy link
Closed
#1590
Closed
id(web): mixed task/plain lists cannot be saved at all — parse builds mixed lists its own placement validation rejects#1370
#1590
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Problem

A markdown list that mixes checkbox items with plain items — a very common checklist shape — cannot be saved at all in the id web editor. The codec's parse direction produces a ProseMirror doc its own save direction rejects, so every save of the document fails; the doc is also invalid under the editor's own schema.

Evidence (verified this run on main 0cbb91b1)

Probe: verbatim copy of pkgs/id/src/web/markdown.rs in a standalone crate (comrak 0.56.0), markdown_to_prosemirror → prosemirror_to_markdown. Logs: fleet bookkeeping probe-2026-10-27-creator-a/out2.log + out3.log.

All four mixed shapes fail the same way:

Input Parsed PM shape Save result
- [ ] todo / - plain note / - [x] done task_list containing a list_item Err: Misplaced node: list_item cannot appear inside task_list
- plain note / - [ ] todo / - [x] done bullet_list containing task_list_items Err: Misplaced node: task_list_item cannot appear inside bullet_list
1. [ ] todo / 2. plain step / 3. [x] done task_list (order 1) containing a list_item Err: Misplaced node: list_item cannot appear inside task_list
1. plain step / 2. [ ] todo ordered_list containing a task_list_item Err: Misplaced node: task_list_item cannot appear inside ordered_list

Root cause, both directions:

  • Parse: the List arm decides task-vs-plain from the first child only (pkgs/id/src/web/markdown.rs:223-226 — is_task_list = first child is a TaskItem), then converts every child by its own kind, producing a mixed-children list node.
  • Save: prosemirror_to_markdown first runs the id(web): prosemirror_to_markdown panics on misplaced nodes — json_to_ast never validates block/inline placement #1043 placement validation (markdown.rs:1057-1058), and placement_allowed (markdown.rs:980-981) allows only ListItem under bullet/ordered lists and only TaskListItem under task_list — so the parse direction's own output is rejected.
  • The save route propagates the error (pkgs/id/src/web/routes.rs:1984-1989, ContentMode::Markdown), so the user's save fails outright — not a silent rewrite, a hard failure on any edit to the file.
  • The editor schema agrees the doc is invalid: task_list declares content: "task_list_item+" (pkgs/id/web/src/editor.ts:98-100), so the mixed doc cannot be represented faithfully in the editor either.

Controls from the same probe: pure task lists (bullet, ordered, nested, in blockquotes) and pure plain lists round-trip cleanly; nested task sublists under plain items also work — only same-level mixing breaks.

Why it matters

Checklists with interleaved plain notes/steps are everywhere (shopping lists with headers, procedures with checkbox steps, meeting notes). Today, opening such a file in id and making any edit makes the file unsavable — the user discovers it only when the save errors, with their edit stranded. The #1043 validation did its job (no panic, clean error); the gap is that the parse direction manufactures docs the rest of the system forbids.

Acceptance criteria

  • All four mixed shapes above open and save without error; checkbox states and plain items are all preserved, and the saved form is a fixpoint on a second save.
  • The chosen representation is coherent across all three layers — codec parse, codec save (placement validation), and the editor schema (editor.ts) — with a note in the PR on which shape was picked (e.g. split into adjacent sibling lists at parse time, mirroring the id(web): adjacent bullet lists with different markers accumulate '<!-- end list -->' comments and html fences on every save — non-fixpoint, grows per save #1032 coalescing precedent in reverse; or mixed children allowed end-to-end) and what it does to list numbering/tightness for ordered lists.
  • Pure task lists and pure plain lists round-trip byte-identically to today (existing tests keep passing).
  • Regression tests in pkgs/id/src/web/markdown.rs cover mixed bullet and mixed ordered lists in both first-child orders.
  • No relaxation of the id(web): prosemirror_to_markdown panics on misplaced nodes — json_to_ast never validates block/inline placement #1043 placement validation for genuinely misplaced nodes (its five panic-shape tests keep passing).

Activity

Next
  1. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-466

  2. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  3. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/highImportant and time-sensitive
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    on Oct 27, 2026
  4. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron job new-issue-creator-code-a, run 2026-10-27 03:05 CDT
    • Found via: filed this run
    • Task: Filed after verifying on main 0cbb91b with a verbatim-codec probe crate: all four mixed task/plain list shapes (bullet + ordered, both first-child orders) parse into mixed-children list nodes that prosemirror_to_markdown's own id(web): prosemirror_to_markdown panics on misplaced nodes — json_to_ast never validates block/inline placement #1043 placement validation rejects — every save of such a file errors. Probe logs in fleet bookkeeping (probe-2026-10-27-creator-a/out2.log, out3.log).
    • Expectation: effort/m — triage picks one coherent representation across codec parse, placement validation, and editor.ts schema (split-at-parse vs mixed-children), then implements with regression tests; id(web): prosemirror_to_markdown panics on misplaced nodes — json_to_ast never validates block/inline placement #1043 validation must not be relaxed for genuinely misplaced nodes.
    • Links: queue packet enqueued to repo-health-code-pilot (triage) in the same run.
  5. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Intake review

    Codec parse/save asymmetry in pkgs/id/src/web/markdown.rs: parse builds mixed task_list/list_item shapes its own placement validation rejects, so mixed checklists are unsavable and schema-invalid. Reproduced on main 0cbb91b with a standalone-crate probe (all four mixed shapes fail identically). Risk: any fix must keep pure task lists and pure plain lists round-tripping as fixpoints. Suggested approach: decide the canonical PM shape for mixed lists (split into sibling lists, or normalize items) at parse time, then add round-trip regression tests for the four probed shapes.

    Related: Related: #1369 (same codec round-trip family); queue triage task already live for this issue.

    Still live: checked this run — no merged PR in the recent merged list of this repo implements or resolves this issue, and no closing reference was found; the issue stays open.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: cron repo-fleet-monitor, run 2026-10-27 03:27 CDT
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: Intake review for id(web): mixed task/plain lists cannot be saved at all — parse builds mixed lists its own placement validation rejects #1370: verified still live, normalized labels, acceptance criteria already present in body.
    • Expectation: see effort label on the issue
    • Links: this issue
  6. dezren39
    added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 27, 2026
  7. 157 remaining items

    Load more actions
  8. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 28, 2026
  9. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Parked — CI rollup pending — queue task 1676, lane A shift 2026-10-28.

    PR #1590 @6131d87b: all 31 substantive checks pass (guard, full nix flake check matrix, benchmark, treefmt). The only non-green entry is the aggregate nix flake check rollup job, queued with no runner assigned since 12:41Z. Task parked 20 min; resume = merge PR #1590 as soon as the rollup completes green.

  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 28, 2026
  11. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane B
    • Session / ID: queue task 1676
    • Found via: queue claim (resume from awaiting_ci checkpoint)
    • Task: Merge PR fix(id): split mixed task/plain lists at parse (#1370) #1590 (fix id(web): mixed task/plain lists cannot be saved at all — parse builds mixed lists its own placement validation rejects #1370 mixed task/plain list split) once the aggregate nix flake check completes green
    • Expectation: done = PR merged — fresh check at 13:33Z: all 33 check runs on head 6131d87 completed, zero failures, aggregate "nix flake check" = success; PR MERGEABLE, single-file diff (pkgs/id/src/web/markdown.rs, +196/-55) matching the triage decision
    • Links: PR fix(id): split mixed task/plain lists at parse (#1370) #1590 fix(id): split mixed task/plain lists at parse (#1370) #1590
  12. dezren39
    added a commit that references this issue on Oct 28, 2026

    Merge pull request #1590 from developing-today/queue/1676-1370-mixed-…

    d39e611
  13. dezren39
    closed this as completedin #1590on Oct 28, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 28, 2026
  15. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane B
    • Session / ID: queue task 1676
    • Found via: queue claim (resume from awaiting_ci checkpoint)
    • Task: Merge PR fix(id): split mixed task/plain lists at parse (#1370) #1590 (fix id(web): mixed task/plain lists cannot be saved at all — parse builds mixed lists its own placement validation rejects #1370) once CI green
    • Expectation: DONE — PR fix(id): split mixed task/plain lists at parse (#1370) #1590 merged 2026-10-28T13:14:37Z, merge commit d39e611; all 33 check runs on head 6131d87 passed incl. aggregate nix flake check; issue auto-closed; queue task 1676 completed (fixed_merged)
    • Links: PR fix(id): split mixed task/plain lists at parse (#1370) #1590 fix(id): split mixed task/plain lists at parse (#1370) #1590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.