Skip to content

Extract the anchored-chain provenance stack to standalone repos #641

Description

@bdelanghe

Sibling of #638 (verbspec extraction). The packaging pass for the provenance cluster is done (see the "publish-ready packaging" PR); this tracks the physical extraction.

The cluster is casanchored-chainanchored-chain-sqlite (acyclic; anchored-chain depends only on cas). Extract as a unit so no published package has a workspace-only dependency.

  • Create github.com/bounded-systems/anchored-chain and move packages/anchored-chain/ into it (history-preserving).
  • Create github.com/bounded-systems/anchored-chain-sqlite and move packages/anchored-chain-sqlite/ into it.
  • Ensure cas is published first (it's the shared base; already packaged, also still in-tree — see Extract @bounded-systems/verbspec to a standalone repo #638 context).
  • Drop the @bounded-systems/anchored-chain and @bounded-systems/anchored-chain-sqlite entries from the root tsconfig.json paths map.
  • Switch the workspace:* deps (anchored-chain → cas; anchored-chain-sqlite → anchored-chain, cas) to real version ranges.
  • Publish 0.1.0 for both, then verify prx resolves the published packages.

Notes

  • anchored-chain-sqlite is Bun-only (bun:sqlite, drizzle-orm/bun-sqlite, .sql/.json import attributes). Its published runtime entry is source under the bun condition; dist is declaration-only. The standalone repo's CI must run on Bun.
  • anchored-chain's build treats cas as an external dep (paths: {} override in tsconfig.build.json), so it needs cas's built declarations available at build time — i.e. cas published (or built first).

Context: claude.ai/code session 01PGAut6CEjiQjFMURp8UA5A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions