Skip to content

[Bug]: Published store 0.4.2 needs core changes that core 0.4.2 does not have #346

Closed

Description

@jimhoyd

Found while writing the first-publish runbook (see docs/FIRST-NPM-PUBLISH.md).

@jimhoyd/[email protected] was published from main at 7972185, which includes the --allow-public-write scaffold contract (#343) and the unordered --with contract (#342). The published @jimhoyd/[email protected] predates both (no allowPublicWrite in its dist), yet the store peers on >=0.4.2 <0.5.0.

Reproduced in an empty directory with the published packages installed:

  • urlcode init site --with store refuses and tells the user to pass --allow-public-write.
  • urlcode init site --with store --allow-public-write fails with Unknown option; use --help. A user cannot get a no-auth store scaffold at all.
  • urlcode init site --with ui,auth,store (published ui, auth, store, core 0.4.2) scaffolds a site (README, app, data, host.mjs, operator-service.mjs, ui). Not verified beyond scaffolding.

Fix: release core 0.4.3 with #342 and #343 through the pipeline, and raise the store peer floor to that core in the next store release, so an older core cannot be paired with a store that assumes the new scaffold contract. Consider a rule that a package's peer floor must include every core API it uses.

Activity

  1. added
    bug
    extension
    important
    in-progress
    on Sep 20, 2026
  2. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Cleanup scope for the release fix: update the stale first-store-publication guidance in the same release/follow-up. Current main still says “until release wiring lands (#323), init --with store is not yet available from npm” in docs/AI-AUTHORING.md, docs/RECIPES.md, docs/STORE.md, llms.txt, llms-full.txt, and the recipes/store-crud README/metadata; VERSION-ALIGNMENT also says first publication is pending.

    The wording must not simply flip to “available” while core 0.4.2 remains incompatible. Once the core/store peer-floor repair is published and verified from an empty consumer, update those sources to name the compatible install path and regenerate llms/full recipe output. That keeps agents from either hand-writing a store unnecessarily or installing the currently broken pair.

  4. removed
    in-progress
    on Sep 21, 2026
  5. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Guard merged in #355: scripts/peer-api.ts records the first core release of each scaffold field and the extension authoring API, and release-prepare and the tag workflow's publish preflight refuse a package whose core peer floor lacks an API it uses; release:peers no longer crashes for the store, and packages/store/CHANGELOG.md exists. Not fixed yet: the store peer floor is still >=0.4.2 and the published store 0.4.2 still reads the old request field, so the actual fix is a coordinated release. The plan in #355 recommends one all-package 0.4.3 release (core, ui, auth, admin, store; peer floor raised by release-prepare once core 0.4.3 is in the checkout). Decisions needed: all five together or split; tag @jimhoyd/[email protected] at 7972185 (needs the maintainer identity) or relax the missing-tag assertion for the hand-published first version. Nothing was released. Keeping this open.

  6. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Resolved by the 0.4.6 release: all five packages were published together and verified as an installed consumer set, and the store's core peer floor is now >=0.4.6 <0.5.0, so a store can no longer be paired with a core that lacks the scaffold contract it uses (guarded by scripts/peer-api.ts from #355, exempting core in #370). Along the way the release found and fixed three release-path failures, in #363 (git ownership in the candidate container), #370 (the guard held core to a floor) and #372 (the pattern input bound), plus #376 (starter commit identity). Core 0.4.7 followed as a core-only release.

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

    bugextensionimportant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions