Skip to content

id(web): collect link reference definitions indented relative to a list item's content column #8360

Closed

Description

@dezren39

Follow-on from PR #5949 review (CodeRabbit minor, heavy lift — deferred by lane code-o, task 14767)

collect_link_reference_definitions in pkgs/id/src/web/markdown.rs applies its indent > 3 indented-code skip to the RAW line. A link reference definition nested inside a list item can be indented four or more columns from the line start while sitting at a relative indent of 0–3 from the item's content column:

- item

    [unused]: /keep

(relative indent 2 from the - content column, after the blank line ends the item paragraph). The raw-indent check skips the line before collection, so the unused definition is dropped on save.

Fix shape

The scanner currently tracks fences, HTML blocks, footnote blocks, and block-start eligibility, but no list-container context. Evaluate the indentation relative to the enclosing container's content column (the recorded container prefix machinery — container_signature / strip_container_levels — is the natural base) before applying the indented-code skip, with regression tests covering: list-nested definition collected; a genuinely indented code line inside a list item still NOT collected; the no-blank-line paragraph-continuation case staying paragraph text.

Deferred from PR #5949 because it is a structural scanner change in a file with a long history of edge-case regressions, and the PR's own Codex gate findings were the merge blockers in scope.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Nov 11, 2026
  2. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane code-c
    • Session / ID: task 18642
    • Found via: queue claim
    • Task: Triage of issue id(web): collect link reference definitions indented relative to a list item's content column #8360 (id(web): collect link reference definitions indented relative to a list item's content column) — verdict: real and still live on current main; first triage of this issue, routed as task 20131.
    • Expectation: done = triage verdict + labels recorded (this note), follow-on task 20131 queued, task 18642 completed as triaged.

    Triage (inline, this pass):

    • Work kind: small-fix (task/small-fix) — a bounded scanner change with the fix shape and regression cases already specified in the issue.
    • Priority: priority/normal — a save-time data-loss defect (unused definitions dropped), default band.
    • Effort: effort/m — structural scanner change in a file with a long edge-case regression history; the three named regression cases plus the full markdown suite are the cost.
    • Kind: kind/bug already present; app/id applies to the id-web crate (added with the label set).

    Evidence (fresh, 2026-11-16):

    Issue #8360 stays open for task 20131.

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
  5. 21 remaining items

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-j), worker repo-worker-code, queue task 20131
    state: picked up; scoping the list-relative indent fix in parse_helpers.rs

  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-j), worker repo-worker-code, queue task 20131
    state: parked (delay 20 min). Defect verified live on main (parse_helpers.rs:283 raw-indent gate, no container context). No edits yet. Resume: list-container-relative indent before the indented-code skip; 3 regression tests; full id-web markdown suite; PR linking #8360.

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-j), worker repo-worker-code, queue task 20131
    correction: the earlier note said nothing was started. Worktree ~/git/fleet/20131-verify exists, is clean, and sits at a main merge (ccb195b). No edits were made by this lane.
    dependency: #11250 (id-worlds E0004) is now CLOSED, so the gate that parked this task is lifted.
    state: parked (relative delay 20 min). Resume: apply container-relative indent before the indented-code skip in collect_link_reference_definitions, add the 3 regression tests, run the full id-web markdown suite via fleet-build-lock, open a PR linking #8360.

  9. added
    queue/claimedQueue 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 Nov 17, 2026
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-f), worker repo-worker-code, queue task 20131
    state: resumed. Fresh revalidation this pass: issue #8360 OPEN; the parking blocker #11250 is CLOSED (2026-11-17T12:59Z); PR #11224 (head queue/20131-8360-link-ref-list-indent, commit 3fc7542 authored by repo-worker-tmp-code-b, not Drew) is the canonical prior worker PR for THIS queue task — not a Drew-owned PR — so this lane resumes it rather than opening anything new.
    plan: verify the diff (4 regression tests present incl. the 3 packet cases), run the id-web markdown suite on the PR head under fleet-build-lock, then merge #11224 with a merge commit if green, and close out task 20131.

  11. added a commit that references this issue on Nov 17, 2026
  12. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-f), worker repo-worker-code, queue task 20131
    state: done. Merged PR #11224 (merge commit d1c2b67, 2026-11-17T19:14:27Z) — the prior worker PR for this task, resumed rather than duplicated.
    tests: verify tree = PR head merged onto origin/main e7d7c06. cargo test -p id-web markdown 299 passed / 0 failed; the 4 new #8360 tests (list_nested, list_indented_code, list_paragraph_continuation, ordered_list_nested) pass.
    note: the PR body verification note (E0004 blocker) is superseded; #11250 is closed and main compiles.

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

Metadata

Metadata

Assignees

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)priority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions