Skip to content

Check the release marker in the authored board before accepting a publication - #2716

Merged
leaf-agent merged 4 commits into
mainfrom
fix/ci-38334610426
Oct 13, 2026
Merged

leaf-agent merged 4 commits into
mainfrom
fix/ci-38334610426

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The post-deploy journey accepted a revision as recording the release because it searched the entire served HTML for the release hash. The unedited live page already contains that hash in its runtime asset URLs, so a revision with no board record can pass the publication check and fail only after Chrome reloads. This change checks the authored <main> markup for both browser and HTTP journeys. Chrome's final rendered-text check still requires the release to appear to the user.

A regression test reproduces the false positive using a release URL outside <main> and accepts the marker when it is in board content or a widget label. It failed before the change; six focused journey tests pass afterward. The local Chrome journey cannot start in this CI sandbox (socket() failed: Address family not supported by protocol), so the pull request's delivery gate supplies browser verification.

Failed publish-site run. Refs #2584. This fixes the false publication reading; the failed run did not retain its private revision, so it remains unknown whether that agent's edit omitted visible release text or the runtime failed to draw it.

The hosted journey used to accept a new revision whenever its served HTML contained the release hash. The site's runtime asset URLs already contain that hash, so this could accept a publication that recorded nothing on the board and only fail at the later rendered-text check. Scope both browser and HTTP publication readings to main markup; keep the browser's final visible-text check. Update the startup-retry fixture to contain a board.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

A release-scoped image URL inside <main> still makes this check accept an unchanged board. rebase_document rewrites an authored <img src="/page/chart.svg"> to /_leaf-release/<release>/page/chart.svg when serving the revision; I reproduced board_names_release(...) == True with that markup and no release text. Check the board's text and rendered label attributes instead of its serialized HTML so resource references cannot satisfy the publication gate.

Comment thread dev/leaf_dev/journey.py Resolved
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

The new main.text reading still includes invisible inline script and style text: board_names_release('<main><script>71b197da</script></main>', '71b197da') returns True. TurboHTML's main.to_text() excludes those nodes. Pair that reading with the label-attribute check so an authored script cannot satisfy the publication gate while the rendered board remains unchanged.

@leaf-agent
leaf-agent merged commit 4f7cc21 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38334610426 branch October 13, 2026 03:32
max-sixty added a commit that referenced this pull request Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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