Skip to content

Move destination_pointer into ForkP#68

Merged
DavidSagan merged 1 commit into
mainfrom
fork-pointer-in-forkp
Jul 22, 2026
Merged

Move destination_pointer into ForkP#68
DavidSagan merged 1 commit into
mainfrom
fork-pointer-in-forkp

Conversation

@DavidSagan

Copy link
Copy Markdown
Member

The pointer expansion writes for a resolved Fork was a key loose on the element,
beside kind and length. It belongs in the group with the parameters it
resolves -- to_line and destination_element -- and with the forked_to
name it becomes.

handle_fork already has the ForkP node in hand, and both readers
(run_element_bookkeeper's propagation seed and link_fork_connections) already
look ForkP up for a sibling parameter, so each now reads the pointer from there
too. remap_destination_pointers matches on the key alone and is unaffected by
the depth.

destination_pointer is deliberately not added to the check's ForkP vocabulary:
that list is the spec's, and unlike forked_to this key is an implementation
detail of expansion with no entry in fork.md. Writing one in input is a mistake
worth reporting, and the check only ever sees combined, where the parser has
not yet written any.

🤖 Generated with Claude Code

The pointer expansion writes for a resolved Fork was a key loose on the element,
beside `kind` and `length`. It belongs in the group with the parameters it
resolves -- `to_line` and `destination_element` -- and with the `forked_to`
name it becomes.

handle_fork already has the ForkP node in hand, and both readers
(run_element_bookkeeper's propagation seed and link_fork_connections) already
look ForkP up for a sibling parameter, so each now reads the pointer from there
too. remap_destination_pointers matches on the key alone and is unaffected by
the depth.

`destination_pointer` is deliberately not added to the check's ForkP vocabulary:
that list is the spec's, and unlike `forked_to` this key is an implementation
detail of expansion with no entry in fork.md. Writing one in input is a mistake
worth reporting, and the check only ever sees `combined`, where the parser has
not yet written any.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@DavidSagan
DavidSagan merged commit 5176bc8 into main Jul 22, 2026
2 checks passed
@DavidSagan
DavidSagan deleted the fork-pointer-in-forkp branch July 22, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant