Skip to content

feat(site): show measured stage in generated Reader homepage - #330

Merged
andy-zen-dev merged 8 commits into
masterfrom
scrip-site-018-stage-at-glance
Oct 27, 2026
Merged

andy-zen-dev merged 8 commits into
masterfrom
scrip-site-018-stage-at-glance

Conversation

@andy-zen-dev

@andy-zen-dev andy-zen-dev commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #285 (generated Reader evidence experience; does not change Pages administration or deployment gates).

What ships

  • Python-generated full Reader only: python -m scriptorium.site_renderer --repo-root . --output build/site puts a readable stage panel in build/site/index.html, immediately next to the pre-existing research atlas. It derives per-book measurement availability directly from the checked-in source-free FantLab evidence matrix: 4 measured books, 94 numeric observations, 19 unavailable values, 5 frozen sources, M2 source-matched parity 0/5. The complete table is linked at generated build/site/evidence/fantlab/.
  • Fail-closed validation for source identity, metrics, rounding, duplicates, and parity. Keyboard/scroll/print/mobile CSS and positive/negative tests.
  • README explicitly distinguishes the new generated-only stage from the public branch-root preview.

Exact deployment boundary, corrected after #332

GitHub Pages is already enabled and GitHub publishes master / (root). PR #332 added its real root index.html, four-book comparison bars, metric explorer and local derived JSON. This PR does not add the stage panel to that public root site and does not change the Pages source or any secret/variable. The independent Actions-artifact deploy job remains guarded by SCRIPTORIUM_PAGES_DEPLOY_ENABLED, but that gate is not needed for branch Pages. Source/data licensing #284 and scientific M2 parity remain open; do not imply a live browser check.

Review recovery

Resolved drevendev's 2026-10-27 CHANGES_REQUESTED review by merging post-#332 master without overwriting the separately merged research-atlas homepage, and by correcting README/publication claims. Current integration commit: 7cd71194ae20d16994ba314ae1602100e4bead77. The former base's successful CI is stale for this commit; require newly completed applicable exact-head checks and later acceptance before merge. Browser/visual inspection: NOT_VERIFIED; branch-root public site: unchanged by this PR.

Copy link
Copy Markdown
Collaborator Author

Exact-head verification for 5d6927b90cf1ade8ebf1032f3b1be9a2a8fd66bd (2026-10-27): Reader package 40477223370, Pages 40477223913 and frozen diagnostic 40477223365 all SUCCESS. Pages job ran the standard-library suite, canonical build, byte-identical rebuild, and uploaded the github-pages build artifact 12721037409. The built homepage was independently extracted and its internal links checked: 23 generated files, 18 homepage links/assets; stage shows four measured works, 94 numeric values, 19 unavailable actuals and M2 0/5, derived from the retained matrix. Browser navigation to local preview was blocked (ERR_BLOCKED_BY_ADMINISTRATOR); VISUAL_NOT_VERIFIED. Deploy job SKIPPED by the existing Pages activation interlock (PR/flag); not deployed or live-verified. No admin, Pages settings, license or secret change. The same PR needs later independent acceptance before merge.

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Exact-head review — REQUEST_CHANGES (public Reader attribution)

Candidate: 5d6927b90cf1ade8ebf1032f3b1be9a2a8fd66bd; linked #285. This is a review of the four-file Python-generated Reader stage panel, not of the separately deployed branch-root site.

Blocking consumer/documentation mismatch after #332 merged: the current master / (root) Pages source contains index.html with the four-book interactive preview, but does not render this PR's stage-overview. The new panel is injected only by scriptorium/site_renderer.py::_render_index into the separate build/site/index.html. However, this PR's new README text says without qualification that "The Reader homepage now summarizes" the measured stage, immediately under the public Pages link. The current master README already distinguishes the public branch-root preview from the separately built full Python Reader. As presented, the proposed statement would misidentify which consumer actually sees the new feature.

The PR handoff also still says Pages is disabled and an administrator must enable it. That was superseded by the read-back in #285 and by merged #332: branch Pages is already enabled; the separately guarded Actions-artifact deploy path is different.

Required bounded correction: reconcile the README with current master so the new evidence-coverage panel is explicitly described as part of the separately built Python Reader, not as a feature of the branch-root Pages homepage; update the PR's deployment limitation to the current branch-vs-artifact distinction. Do not silently expand this PR to a second deployment path. Re-evaluate integration and exact-head checks once the newer master is incorporated.

Otherwise positive source review: render_stage takes counts from the retained matrix, checks 4 measured works / 113 rows / 94 numeric / 19 unavailable, keeps M2 at 0/5, distinguishes NOT_RUN, escapes work titles, and has negative regression coverage. All three workflows reported SUCCESS for this head (Reader, Pages, diagnostic); these are pre-#332-base checks and do not prove the newer integration candidate. Browser screenshots and the deployed root route were not independently exercised in this review. Source/CI judgement is not a live-publication claim.

Merge current master into the stage-panel branch without dropping the research atlas. Preserve branch-root Pages and distinguish it from the local/CI-generated full Reader in README.
@andy-zen-dev andy-zen-dev changed the title feat(site): show measured research stage on Reader homepage feat(site): show measured stage in generated Reader homepage Oct 27, 2026

Copy link
Copy Markdown
Collaborator Author

Post-#332 review recovery — exact head 7cd71194ae20d16994ba314ae1602100e4bead77 (2026-10-27).

  • Merged current master@6098ce58 into the existing PR branch without rewriting branch history or overwriting the newer research atlas from feat(site): show verified four-book evidence in a literary reading room #331. PR is mergeable; only four intended files differ from master.
  • README and PR description now distinguish the generated-only stage panel from the already enabled, branch-root Pages public homepage. No deployment/admin flag was touched.
  • Exact-head workflows all SUCCESS: Pages #40499659168, Reader package #40499659205, frozen diagnostic #40499659312. Inspected Pages build artifact 12732560298: generated index.html includes the existing research atlas and new stage, five per-work coverage rows, and 19/19 internal static links resolve; evidence/fantlab/index.html exists.
  • Browser visual/navigation verification is NOT_RUN: Chromium navigation to local HTTP preview returned net::ERR_BLOCKED_BY_ADMINISTRATOR. Static artifact and CI checks do not establish live public Pages for this generated panel.
  • Acceptance caveat: feat(site): show verified four-book evidence in a literary reading room #331 already displays aggregate coverage in the research atlas; the new panel adds a per-work numeric/unavailable/parity table but repeats top-level totals. Review this visual redundancy in later acceptance, and do not conflate coverage with metric-value comparisons or FantLab parity.

PR remains open for later independent acceptance. The root public Pages branch is unchanged by this review fix.

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Exact-head acceptance — approved

Reviewed HEAD: 7cd71194ae20d16994ba314ae1602100e4bead77, against current master@6098ce582ed7d06b9dbaec82a75957ac779a601e. This is a content/CI judgement for the Python-generated Reader stage only, not public Pages publication.

The previous CHANGES_REQUESTED finding is resolved: README and PR handoff now distinguish build/site/index.html (generated full Reader, with the new per-work stage) from the independently published master / (root) four-book Pages preview. The branch has incorporated the newer master changes, and the diff remains limited to README.md, site_renderer.py, new site_stage.py, and its tests.

Source review finds consistent numeric/unavailable totals and M2 0/5, explicit UNKNOWN/NOT_RUN semantics, escaped titles, reject-on-invalid matrix validation, and positive/negative coverage. The stage's four aggregate numbers partly duplicate the existing research atlas, but its per-work table adds useful detail; that is a non-blocking consumer-design tradeoff.

Exact-head evidence: Pages #40499659168, Reader package #40499659205, and frozen diagnostic #40499659312 all completed SUCCESS. Pages build artifact 12732560298 is associated with this HEAD. I inspected the changed source and CI/job/artifact metadata; I did not re-execute local tests, independently validate the artifact bytes, inspect desktop/mobile browser screenshots, or perform live Pages readback.

Acceptance boundary: #285 public deployment/live verification and #284 licensing remain separate. The generated-only panel is not a feature of the branch-root public URL; this approval does not establish publication or FantLab scientific parity.

@andy-zen-dev
andy-zen-dev merged commit c590a5e into master Oct 27, 2026
5 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.

2 participants