Skip to content

website: committed demo exports go stale on every UI package change and no PR gate notices #1464

Open

Description

@schlessera

Context

bun run website:check fails on main before it reaches the site checks: website/scripts/check-shares.ts:26 asserts Demo exports are stale. Run bun run website:shares…. The committed demo exports record a recipeHash computed by exportRecipeHash() (website/scripts/export-recipe.ts:5-14). That hash covers every .ts/.tsx/.css/.json file under packages/ui-react/src, packages/ui-sdk/src, packages/ui-kit/src, packages/ui-kit/fixtures, packages/render-template/src and packages/ui-render-puppeteer/src, plus bun.lock. So any PR that touches those packages stales the committed exports, and no PR gate runs check-shares.ts. I confirmed the exports are already stale at 9231b96, before the logo work (#1442, #1457) touched packages/ui-kit/src again.

Publication is unaffected: .github/workflows/publish-pages.yml rebuilds with --refresh-shares. The cost falls on the next website PR. Its author runs website:check, hits the stale-exports assertion, and has to regenerate about 150 PNG/PDF exports. Without the CI's browser, that regeneration is mostly rendering-noise diffs (seen on #1463).

Scope

  • Refresh and commit the demo PNG/PDF exports as part of preparing each new package release, after bun run version and its required lockfile refresh, against the resulting release candidate.
  • Make ordinary local/PR website checks validate the committed release snapshot without requiring its recipe hash to match unreleased package changes. Keep current demo/content checks distinct from snapshot checks.
  • Add a release-preparation freshness gate and document the order in the release skill and contributor procedure. Preserve publication's fresh export generation and validation against the exact assembled publication inputs.

Out of scope

  • Requiring every UI/package PR to regenerate or commit exports.
  • Automated bot refresh PRs, changes to export appearance/content, or weakening renderer isolation, visual baselines, provenance or asset integrity checks.
  • Actually preparing or publishing a release in this triage session.

Acceptance criteria

  1. bun run website:check succeeds on a clean main checkout with a valid committed release snapshot even when covered package sources have changed since that snapshot. It does not modify tracked exports or require a manual export commit.
  2. Ordinary checks retain snapshot self-consistency: index/provenance recipe hashes agree, referenced assets exist, keys/formats match their receipts, bytes/signatures/digests are correct. Snapshot coverage is evaluated against the snapshot's recorded inputs, rather than pretending the snapshot was generated from current unreleased sources. Current demo corpus, graph, search, metadata and link checks still run independently.
  3. Release preparation refreshes the complete committed export set after versioning and the refreshed lockfile, with the pinned renderer. Review and stage the generated exports and receipts with the release changes. The final release candidate must pass a strict freshness check against its exact source/lockfile recipe hash before publishing; generation or validation failure blocks release preparation.
  4. Any subsequent change to a covered input invalidates that release freshness proof and requires another refresh before release. A successful earlier check cannot stand in for the final candidate check.
  5. Website publication continues generating and strictly validating fresh exports for the actual assembled publication inputs, including their provenance and integrity. An older committed release snapshot is never accepted as fresh publication output.
  6. The release skill and contributor procedure describe this ordering and distinguish ordinary snapshot checks from strict release/publication freshness checks. No new release is scheduled by this issue.

Verification

  • Run the ordinary website check on clean main, then with a covered-source mutation, and show that a valid historical snapshot is allowed while current demo checks still execute and tracked exports remain unchanged.
  • Corrupt an asset or receipt and show the ordinary snapshot integrity check fails on the relevant assertion.
  • Run the release refresh/check against a post-version candidate with its refreshed lockfile. Change a covered input and show strict freshness fails, then regenerate and show it passes. Record the actual candidate source/hash and commands.
  • Verify fresh publication validation still rejects stale or corrupt assembled outputs. Preserve pinned offline renderer and browser isolation checks; do not claim a stale-hash assertion proves downstream browser behavior.

Contract impact

No product wire/API change. Contributor and release workflow changes are authorized by this ruling. Preserve docs/decisions/feature-captures.md, docs/decisions/public-website.md, existing visual baselines and publication gates; reconcile their workflow descriptions where necessary in the implementation.

Maintainer ruling — 2026-10-10

The maintainer selected release preparation as the refresh point. Committed exports are a reviewed release snapshot, not an obligation on every covered-source PR. This supersedes the original acceptance criterion requiring each such PR to refresh exports or fail a freshness gate. Strict current-source freshness remains mandatory for the final release candidate and website publication; ordinary checks retain snapshot integrity and independent current-demo checks. No open policy question remains. Implementation and verification remain outstanding.

Activity

  1. added
    type: choreTooling, CI, release plumbing, dependencies.
    area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Oct 10, 2026
  2. added
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    and removed
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Oct 10, 2026
  3. schlessera commented on Oct 10, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-10): Refresh committed demo exports as part of preparing a new release, after versioning and the required lockfile refresh, and validate freshness against the final release candidate before publishing.

    Ordinary PRs do not need to commit refreshed exports. Local/PR checks validate the committed release snapshot's integrity and self-consistency while retaining separate checks of the current demo. Website publication continues generating and validating fresh exports against its assembled inputs. A change after the release refresh requires regeneration before publishing.

    Updated the body and acceptance criteria to this release-based policy, including the release procedure updates and mutation evidence required. The former per-PR freshness criterion is superseded. Removing needs: decision; implementation and verification remain outstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: choreTooling, CI, release plumbing, dependencies.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions