Add portable page citation maps - #483
Draft
JSv4 wants to merge 3 commits into
Draft
Conversation
JSv4
force-pushed
the
agent/issue-454-page-citations
branch
from
August 14, 2026 09:49
0a0bb29 to
2a6ae05
Compare
JSv4
force-pushed
the
agent/issue-447-preconditions
branch
2 times, most recently
from
August 14, 2026 10:03
e467c0d to
9222540
Compare
JSv4
force-pushed
the
agent/issue-454-page-citations
branch
from
August 14, 2026 10:04
2a6ae05 to
308f1df
Compare
JSv4
force-pushed
the
agent/issue-447-preconditions
branch
from
August 14, 2026 11:11
9222540 to
a666aa3
Compare
JSv4
force-pushed
the
agent/issue-454-page-citations
branch
from
August 14, 2026 11:11
308f1df to
dc888c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #454.
Summary
Architecture
The converter owns stable canonical source identity; the browser pagination layer owns physical page geometry. Page maps remain detached DTOs, never serialized DOM snapshots. Paginated conversion always carries the private canonical identity needed for measurement, while public editor anchors remain opt-in.
The citation response includes the exact registered physical page descriptors used by MCP preview. The preview projects the cited source into that page geometry without inventing a second layout algorithm. Critical PageMap/citation schemas are strict and action-specific, and the shared runtime parser rejects unknown fields as well as missing or mistyped required fields.
Adversarial hardening
Verification