Skip to content

Start included-range roots at the selected byte - #973

Merged
odvcencio merged 1 commit into
mainfrom
codex/included-range-root-start
Aug 24, 2026
Merged

Start included-range roots at the selected byte#973
odvcencio merged 1 commit into
mainfrom
codex/included-range-root-start

Conversation

@odvcencio

Copy link
Copy Markdown
Owner

Summary

  • Start byte-seek token sources at the first included byte.
  • Seed the initial parser stack at the clamped selected byte.
  • Preserve the configured start point during recovery.
  • Preserve complete boundary tokens when a source cannot byte-seek.
  • Add focused unit and locked-C checks.
  • Update the changelog and retirement guide.

Why

The Go included-range root began at byte zero. The C root began at byte 26. This change moves root-start ownership into the producer.

Tests

  • Focused Go included-range tests passed on the host.
  • The focused Go Docker suite passed.
  • The four locked-C geometries and arm guards passed.
  • The locked-C Go live-arm digest probe passed.

All Docker runs used one grammar and one CPU. They exited zero without timeout or memory failure.

Remaining work

Go has 10 root children, while C has seven. Compact and forest included-range routes remain uncertified. Keep dispatch.go.source-file-root live.

This PR does not claim full parity or campaign closure.

- Re-seek or preserve overlapping tokens at range boundaries.
- Align initial parser stack offset with the first included byte.
- Route empty-stack end points through a new accessor method.
- Add parity checks for root start bytes and start points.
- Update docs to record the root-start fix as partial parity.

Buckley-Change-Hash: sha256:57418d5725d1b68369e0708b92c5ab1222839c12865933a4812ea5f978a0b0da
Buckley-Change-Stats: files=8 insertions=311 deletions=37 binaries=0
@odvcencio
odvcencio merged commit 0ff900f into main Aug 24, 2026
49 checks passed
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