Skip to content

recordprims 0.1.3

Latest

Choose a tag to compare

@3leapsdave 3leapsdave released this 04 Dec 02:02
Immutable release. Only release title and notes can be modified.
v0.1.3
422c86a

v0.1.3

Patch release of recordprims (recordprims-fs/v2), pinned to 3leaps/crucible
v0.2.16 (919f673), adding non-creating store and stream openers, shared
filesystem verification options, durable lock-file pre-creation during Init,
Rust OwnedStream handles, canonprims 0.1.5, and PDR-0013 byte-exact
repository data checks.

Stability

Surface Status
durable-record/v1 records written by the Go module and the Rust crate Conform to durable-record/v1 as pinned (3leaps/crucible v0.2.16), and later recordprims releases keep reading them. The contract itself is proposed and experimental upstream.
Go module github.com/3leaps/recordprims Supported. Any breaking API change before 1.0 comes in a new minor release and is listed in the changelog.
Local filesystem store format (recordprims-fs/v2) Later 0.x releases open a store written by 0.1.x, or a store-format change ships with a documented migration and a changelog entry.
Rust crate recordprims (crates.io) Preview; crates.io availability follows the separate verified registry publication step after the GitHub release is published. Plain streams only (open, open_existing, open_stream, open_existing_stream, OwnedStream, append, retire, protect, head, revisions, reconcile, release, read_served); continuation streams and streams carrying compaction state are refused.
Vendored record-collection/v0 contract files Proposed and experimental upstream; vendored with reference controls only. No public API or implementation uses them in 0.1.3.
Bucket stratum (internal/stratum/bucketcas) Experimental and internal. It has no public API and has not been tested against a cloud storage provider.
TypeScript and Python bindings Planned.

What changed since 0.1.2

  • Non-creating store and stream opens (OpenExisting / recordprims::open_existing and
    Store.OpenExistingStream / Store::open_existing_stream).
    Open an
    initialized store or stream without creating directories, journals or index
    files on disk, returning ErrStoreNotFound / Error::StoreNotFound
    (store_not_found) on an absent path or an empty valid directory and
    ErrStreamNotFound / Error::StreamNotFound (stream_not_found) on an
    absent stream. Non-empty directories without valid store metadata, symlinked
    or non-directory paths, permissive stream directories, and missing
    journal.ndjson inside an existing stream directory return ErrStoreInvalid
    / Error::StoreInvalid, and the designated body-removal stream returns
    ErrSchema / Error::Schema. Existing Open / recordprims::open and
    OpenStream / Store::open_stream keep their behavior.
  • Durable lock-file pre-creation and root confinement hardening. Init /
    recordprims::init durably pre-creates the empty regular lock file (0600
    on Unix) before STORE commits. Directory opens and ancestor checks verify
    handles without following symlinks (openat with O_DIRECTORY|O_NOFOLLOW on
    Unix, and a retained non-FILE_SHARE_DELETE root handle with parent-relative
    NtCreateFile FILE_OPEN_REPARSE_POINT traversal on Windows).
  • Shared filesystem admission options (FSOptions / FsOptions). Go adds
    FSOptions on InitOptions.FS and OpenOptions.FS (combined via logical OR
    with the deprecated flat AllowOverlay and AllowTmpfs fields until
    0.2.0); Rust re-exports fsroot::Options as FsOptions and deprecates
    OpenOptions::allow_overlay in favor of OpenOptions::fs.
  • Rust Arc-backed Store and OwnedStream. Store implements Clone
    and Debug over a shared Arc root handle, and OwnedStream
    (Store::open_stream_owned, Store::open_existing_stream_owned,
    Stream::into_owned, OwnedStream::as_stream) allows holding open streams in
    structs without borrowing Store by lifetime.
  • Contract pin, dependencies, and repository data checks. Moves the contract
    pin to 3leaps/crucible v0.2.16 (919f673, with durable-record/v1 and
    record-collection/v0 schemas, vectors, ADRs and reference scripts
    byte-identical to v0.2.14), updates canonprims to 0.1.5 in Go and Rust,
    adopts PDR-0013 byte-exact repository data checks (make byte-exact across
    Linux, macOS and Windows core.autocrlf=true), hardens post-create GitHub
    Release draft readback retries in scripts/release-page.sh, and tightens
    internal bucketcas content-addressed readback and apiscan checks.

Not claimed

One store is used from one host on a local filesystem; there is no cloud or
network storage backend. A receipt survives the writer process being killed;
power loss is not claimed.

Platforms

CI runs make check and cargo publish --dry-run --locked -p recordprims on
Linux amd64 and arm64 in the digest-pinned tools container, make check-platform natively on darwin arm64 and windows amd64 and arm64, and
builds and tests the Go module standalone outside the repository. The Go module
is cgo-free and needs Go 1.26 or later; the Rust crate's MSRV is Rust 1.88.

Verification

One signed annotated tag, v0.1.3, is the common source for the Go module and
the recordprims 0.1.3 Rust crate:

  • Tag and GitHub Release manifests: verify the signed v0.1.3 tag and the
    SHA256SUMS / SHA512SUMS signatures against the public signing pins and
    fingerprint anchors committed in the tagged commit (docs/security/,
    keys/expected-fingerprints.*) obtained through an independent channel.
  • crates.io package (once published): credential-free CI builds and tests
    recordprims-0.1.3.crate at the tagged commit and records its expected
    SHA-256; the release ceremony reproduces that archive without compiling and
    verifies that expected SHA-256 against both the crates.io sparse-index
    cksum and the downloaded .crate archive.

See docs/security/README.md for full verification steps.