Skip to content

fix: publish body-only previews for page chunks - #468

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/page-body-text-preview
Oct 23, 2026
Merged

suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/page-body-text-preview

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

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_preview with 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 TERMS while 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.

@suguanYang
suguanYang merged commit 7e30312 into main Oct 23, 2026
6 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