Skip to content

feat(comic): add public editorial companion to the library - #195

Open
anantham wants to merge 2 commits into
mainfrom
feat/codex-comic-editorial
Open

anantham wants to merge 2 commits into
mainfrom
feat/codex-comic-editorial

Conversation

@anantham

Copy link
Copy Markdown
Owner

Summary

The Occasion now has a public editorial companion beside its library card and in the comic toolbar. Readers can select any of the 95 pictures across 45 pages, inspect its copy or silence rationale and predicted reader inference, and turn on an optional eye-path overlay. Eye paths start off and are explicitly described as editorial hypotheses.

The companion reuses the published artwork, crops and separate lettering. It links back to the selected comic picture; page navigation and the toolbar collapse independently. A field allowlist publishes only the requested analysis, excluding private notebook notes, prompts and provenance records. Existing prose-book behavior is unchanged.

Validation

  • 32 focused checks across publication, editorial, library card and registry contracts (including failure/recovery, crop mapping and missing analysis).
  • Node 24 typecheck, production build/client-secret scan and integrity checks pass; lint has zero errors with existing warnings.
  • Browser library → editorial → selected comic picture, last-picture navigation and browser history verified at 390/834/1512 widths; no horizontal overflow, eye paths off initially.
  • Independent Gemini 4 Argon High code/design review: no supported findings.

The large JSON diff is the generated, allowlisted analysis for the existing 95 pictures; no image bytes change. Rollback is a revert of this scoped publication change, with no user-data migration. Required Codex review and CI must finish before merge.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexicon-forge Ready Ready Preview Oct 19, 2026 3:50pm UTC

@anantham

Copy link
Copy Markdown
Owner Author

@codex review
Please review the public editorial companion, library navigation, crop/eye-path mapping, privacy allowlist and failure handling. The generated editorial JSON is publication content explicitly requested by the author; no private notebook or prompts are included. Existing comic artwork and lettering renderer are unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T15:52:45.114289Z b15a91e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7cf7e7b27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +64 to +65
expect(Object.keys(analysis).sort()).toEqual(['edition','pages','panels']);
for (const note of Object.values(analysis.panels) as any[]) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Enforce the allowlist for page-level analysis

The exact-field allowlist covers the document root, panel notes, and eye-path points, but skips every value in analysis.pages; validateCompanion likewise only checks that purpose and compositionReason exist. Consequently, a regenerated editorial file containing an additional page-level field such as draft, generationMetadata, or another private working field would pass these publication checks and be copied verbatim into the public JSON. Assert that each page analysis has exactly the two intended keys, as is already done for panel notes and eye-path points.

Useful? React with 👍 / 👎.

@anantham

Copy link
Copy Markdown
Owner Author

@codex review
Addressed the page-level publication allowlist finding in b15a91e: every page must have exactly purpose and compositionReason. The focused tests pass, and a synthetic draft field injected only into an isolated test fixture causes the publication test to fail as intended. Public data and runtime code are unchanged. Please review the final head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: b15a91e5c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch was successfully deployed

1 active deployment
Preview — b15a91e5 Deployed Oct 19, 2026 by vercel[bot]
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