Repository navigation
Check the release marker in the authored board before accepting a publication - #2716
Conversation
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
left a comment
There was a problem hiding this comment.
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.
|
The new |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.