Repository navigation
fix: publish body-only previews for page chunks - #468
Merged
Merged
Conversation
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.
PAGE chunks currently expose merged full-page content, so display labels can begin with margin text or content belonging to an adjacent section.
Preserve classified body text across PROFILE and Page Memory, then emit
metadata.body_text_previewwith a 180-character limit. Previews use only owned body pages and conservative section boundaries; empty or untrusted body data is explicitly"". Keep full content, chunk identities, references and page assets unchanged. Preserve the field through result ZIP projection, normal/shared-demo publication and canonical demo bundles.Validation on Linux ARM64: all 409 Worker contracts pass; three HTTP/PostgreSQL/storage contracts verify normal-user and demo metadata persistence and canonical ZIP contents. Ruff and Pyright pass for the changed implementation modules. A replay of actual SpaceX physical page 20 produces a preview beginning
GLOSSARY OF TERMSwhile retaining the original full content.Historical results are not automatically backfilled. Readers should show page-number labels when this field is missing or blank. The accompanying document describes a separate, guarded demo-only metadata backfill; this PR does not modify production data or existing ZIP objects.