Skip to content

Session Handoff [auto-2384]: Align details Tag Boundaries Across pr_review.py's Readers per #2384 #2385

Closed

Description

@ptr727

Next steps, in priority order

  1. Work Align details Tag Boundaries Across pr_review.py's Readers #2384 in scripts/pr_review.py's <details> tag readers. Two parts, each either fixed or declined on its own. First, bring DETAILS_OPEN (the overview-preamble end) onto the same tag boundary DETAILS_TAG now reads after Pair Nonstandard details Markup Correctly When Blanking the Overview Narrative #2383, so <details/> ends the preamble and <details\v> does not, and correct the comment above DETAILS_OPEN that says the two boundaries match. Second, for the HTML closes DETAILS_TAG still leaves unread (an attributed or slashed close indented one to three spaces, one behind a blockquote marker, and </details with its > on the next line), either read them while keeping the distinction Pair Nonstandard details Markup Correctly When Blanking the Overview Narrative #2383 relies on, for example by masking a leading code span with a character other than a space so an indented literal mid-line is not paired, or decline the shape with observed-format evidence that rules it out. Add a test per handled shape built from constructed text, plus a case proving a code-span literal is still not read as a tag. Update scripts/README.md only where it states the tag forms. Done looks like: every bullet in Align details Tag Boundaries Across pr_review.py's Readers #2384 handled with a test or declined with evidence recorded on the pull request, the full unit suite, ruff, mypy, the prose gate, the repo gate, and spec/validate.py pass, and a local-strict-review pass is recorded at the pushed head.
  2. Drive the pull request into develop with Closes on promotion: #2384 in its body, scope develop.

External blockers

None known.

Internal dependencies

Step 2 follows step 1. #2383 (merged to develop for #2187, not yet promoted) rewrote DETAILS_TAG and its callers, so base the work on current develop rather than main.

State

No branch or worktree yet. Base the work on develop, per repo-worktree. The parked lane auto-2251 (#2375) holds an unmerged branch, feature/auto-2251, that also edits scripts/pr_review.py, in the Copilot file-table reading rather than the details readers, so expect a later rebase on one side but no shared hunk. Re-derive open pull requests touching scripts/pr_review.py before starting.

The parked decision queue

None for this lane.

What the last round did

Nothing yet. The unattended picker created this lane from the open backlog.

What not to repeat

Nothing recorded yet.

New learnings

None yet.

Activity

  1. added
    handoff
    on Oct 5, 2026
  2. ptr727 commented on Oct 5, 2026

    @ptr727
    OwnerAuthor

    Parked by the unattended worker. Waits on decision #2387.

    Done. The branch feature/auto-2384 is pushed at 5faddd93, three commits on develop at 5ae119bf. No pull request is open. The worktree /home/pieter/repos/worktrees/ProjectTemplate-auto-2384 is left standing and clean.

    • DETAILS_OPEN now ends the preamble at the opener boundary DETAILS_TAG reads, as an O(1) lookahead. <details/> ends the preamble and <details\v> does not. The comment above it is corrected.
    • DETAILS_TAG now reads an attributed or slashed close indented up to three spaces or behind blockquote markers. At such a line start, it also reads a close whose tail runs onto the next line. Mid-line, only the bare </details[ \t]*> is read, because a next line opening on > is a blockquote.
    • A new details_tags helper reports each tag's start at its <. Tags are read from a copy whose code spans are masked with SPAN_MASK (\x00) rather than spaces, so a literal after a span is not read as starting a line. This applies in stated_total, unrecognized_in (through mask_narrative's new tags argument), and marker_blocks (through mask_quotations's new span argument).
    • Tests are added for each shape. Each one fails against develop, against an earlier commit on this branch, or under a mutation that sets SPAN_MASK to a space.
    • The full unit suite, ruff format and check, mypy, the prose gate (comment-added stood down, so the pull request needs the comments label), the repo gate, and spec/validate.py all pass. scripts/README.md states no tag forms and is unchanged.
    • Three local-strict-review passes are recorded, the last at the pushed head's content (digest 43bdfe94).

    What remains. Pass 3 raised two findings on text this change wrote, and the two-round edit budget for this push is spent. #2387 states both findings and the options. The pre-existing finding from that pass is filed as #2386 and is not this lane's work.

    On resume. Follow the answer on #2387. Under option 1 or 3, commit the fix, record a fresh pass, and push. Then open the pull request to develop with Closes on promotion: #2384 in its body, add the comments label, and drive it with drive-pr. Under option 2, open that pull request from the current head. Before pushing, re-derive open pull requests that touch scripts/pr_review.py, since feature/auto-2251 (#2375) also edits that file.

  3. added
    blocked
    on Oct 5, 2026
  4. ptr727 commented on Oct 5, 2026

    @ptr727
    OwnerAuthor

    Lane closed out by an attended resume. #2384's work is merged to develop as #2415 (135e97c1), and #2384 closes on promotion.

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

    blockedhandoff

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions