You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(web): collect link reference definitions indented relative to a list item's content column #8360
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.
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).
Defect re-verified on current origin/main this pass: the code moved since filing — collect_link_reference_definitions now lives at pkgs/id/crates/id-web/src/markdown/parse_helpers.rs:283 (the issue cites the old pkgs/id/src/web/markdown.rs path). Its scan still computes a raw per-line indent (tab-aware) and gates on it (indent <= 3 checks in the loop) with no list-container context and no relative-indent evaluation — the exact mechanism id(web): collect link reference definitions indented relative to a list item's content column #8360 describes.
First concrete step (in task 20131): evaluate indentation relative to the enclosing container's content column (container_signature / strip_container_levels machinery) before the indented-code skip.
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.
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.
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.
Activity
developing-today commentedon Nov 11, 2026
CODE-2494
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged
Triage (inline, this pass):
Evidence (fresh, 2026-11-16):
Issue #8360 stays open for task 20131.
21 remaining items
dezren39 commentedon Nov 17, 2026
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
dezren39 commentedon Nov 17, 2026
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.
dezren39 commentedon Nov 17, 2026
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.
dezren39 commentedon Nov 17, 2026
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.
Merge pull request #11224 from developing-today/queue/20131-8360-link…
dezren39 commentedon Nov 17, 2026
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 markdown299 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.