Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions BEARING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ timeline

## Current State

`v6.5.2` shipped on `2026-07-19`. Application asset, bundle, page, cache,
`v6.5.3` shipped on `2026-07-19`. Application asset, bundle, page, cache,
expiry, witness, and repository-diagnostics APIs sit above mutable root sets
and the low-level CAS pipeline. Direct bundle-reference reads and bounded
immutable metadata/page reuse, bounded Git object sessions, page batches, and
Expand Down Expand Up @@ -72,11 +72,15 @@ What exists now:
and `mktree` processes behind `GitPersistenceAdapter`, uses one scoped
`fast-import` process for an explicit page batch, and keeps individual blob
writes one-shot so external pruning cannot poison duplicate writes.
- **Coherent session reuse.** The v6.5.3 candidate preserves `cat-file` across
- **Coherent session reuse.** v6.5.3 preserves `cat-file` across
successful immutable writes and preserves `mktree` across loose writes. It
still retires `mktree` after a bounded bulk write because Git's quick lookup
cannot discover a pack created after that process prepared its object
database.
- **Batched workspace page retention.** The v6.5.4 candidate adds
`workspace.pages.putBatch()` so one bounded ordered page group is written and
retained under one exact workspace generation instead of rewriting a growing
root set for every page.
- **Migration script.** `scripts/migrate-encryption.js` upgrades legacy v1/v2
manifests to the current scheme identifiers.

Expand Down Expand Up @@ -132,15 +136,15 @@ These were the active tensions from the previous bearing. All resolved.

## Next Horizon

With v6.5.2 shipped and the versioned v6.5.3 release candidate being prepared,
With v6.5.3 shipped and the versioned v6.5.4 release candidate being prepared,
active work is tracked in GitHub Issues and Milestones. Repo docs hold design
and evidence records, not the active queue.

The latest landed design is
[0053-git-object-session-coherence](./docs/design/0053-git-object-session-coherence/git-object-session-coherence.md).
[0054-batched-page-retention](./docs/design/0054-batched-page-retention/batched-page-retention.md).
Its release evidence is attached to
[#94](https://github.com/git-stunts/git-cas/issues/94) and the
[`v6.5.3` milestone](https://github.com/git-stunts/git-cas/milestone/13). Tag
[#99](https://github.com/git-stunts/git-cas/issues/99) and the
[`v6.5.4` milestone](https://github.com/git-stunts/git-cas/milestone/14). Tag
and publication evidence remain pending; no later design is selected here.

The broader horizon remains:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [6.5.4] — 2026-07-26

### Added

- **Batched staging-workspace page retention** -
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Unlike traditional LFS which moves files to external servers, `git-cas` treats t
Existing v5 users should read [UPGRADING.md](./UPGRADING.md) and run
`npm run upgrade` in dry-run mode before restoring old encrypted vault entries.
For the release overview, see the
[v6.5.3 Release Notes](./docs/releases/v6.5.3.md).
[v6.5.4 Release Notes](./docs/releases/v6.5.4.md).

### 1. CLI Usage

Expand Down Expand Up @@ -219,6 +219,8 @@ All three runtimes are tested in CI on every push. The hexagonal architecture is
object sessions, scoped page batches, and deterministic resource closure.
- **[v6.5.3 Release Notes](./docs/releases/v6.5.3.md)**: Coherent reuse of
persistent Git object sessions across compatible immutable writes.
- **[v6.5.4 Release Notes](./docs/releases/v6.5.4.md)**: Ordered page batches
retained under one exact staging-workspace generation.
- **[Upgrading](./UPGRADING.md)**: Migration guide for v5 → v6.
- **[Changelog](./CHANGELOG.md)**: Version history and migration notes.

Expand Down
5 changes: 3 additions & 2 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ GitHub wins and this file should be corrected.
| [`v6.5.1`](https://github.com/git-stunts/git-cas/milestone/11) | Bounded immutable page payload reuse | [#85](https://github.com/git-stunts/git-cas/issues/85) |
| [`v6.5.2`](https://github.com/git-stunts/git-cas/milestone/12) | Persistent bounded Git object sessions | [#90](https://github.com/git-stunts/git-cas/issues/90) |
| [`v6.5.3`](https://github.com/git-stunts/git-cas/milestone/13) | Coherent Git object sessions across immutable writes | [#94](https://github.com/git-stunts/git-cas/issues/94) |
| [`v6.5.4`](https://github.com/git-stunts/git-cas/milestone/14) | Batched staging-workspace page retention | [#99](https://github.com/git-stunts/git-cas/issues/99) |
| [`v6.6.0`](https://github.com/git-stunts/git-cas/milestone/9) | Operator TUI and agent automation follow-through | [#39](https://github.com/git-stunts/git-cas/issues/39), [#40](https://github.com/git-stunts/git-cas/issues/40) |
| [`v6.7.0`](https://github.com/git-stunts/git-cas/milestone/10) | Browser and edge read-path exploration | [#41](https://github.com/git-stunts/git-cas/issues/41) |
| [`v7.0.0`](https://github.com/git-stunts/git-cas/milestone/6) | Protocol break only if audit requires it | [#42](https://github.com/git-stunts/git-cas/issues/42), only when justified |
Expand All @@ -49,10 +50,10 @@ GitHub wins and this file should be corrected.

The latest landed design record is:

- [0053-git-object-session-coherence](./docs/design/0053-git-object-session-coherence/git-object-session-coherence.md)
- [0054-batched-page-retention](./docs/design/0054-batched-page-retention/batched-page-retention.md)

Its GitHub goalpost issue,
[#94](https://github.com/git-stunts/git-cas/issues/94), owns the release
[#99](https://github.com/git-stunts/git-cas/issues/99), owns the release
evidence. The design doc is the durable contract; GitHub records completion.

The `v6.2.0` slice record is:
Expand Down
11 changes: 8 additions & 3 deletions STATUS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# STATUS

**Last tagged release:** `v6.5.3` (`2026-07-19`)
**Current release state:** `v6.5.3` is published to npm with provenance and to GitHub Releases.
**Latest verification:** merge `00df6077` passed 14/14 release-verifier steps with 6,829 observed tests; release workflow `29696131557` then passed validation, tests, trusted npm publication, and final GitHub Release creation from signed tag `v6.5.3`.
**Current release state:** `v6.5.4` release candidate; tag, npm publication, and GitHub Release remain pending the reviewed tag workflow.
**Latest verification:** the versioned `v6.5.4` candidate passed 14/14 release-verifier steps with 6,844 observed tests across Node, Bun, Deno, and all three real-Git integration suites; tag and publication verification remain pending.
**Playback truth:** `main`
**Runtimes:** Node.js 22.x, Bun, Deno
**Current planning method:** [WORKFLOW.md](./WORKFLOW.md)
Expand All @@ -18,6 +18,11 @@
- The machine-facing `git cas agent` surface exists and now supports
OS-keychain passphrase sources for vault-derived key flows, but parity and
portability are still partial.
- **v6.5.4 candidate posture** — batched staging-workspace page retention
merged through reviewed commit `e6c58f10` under
[#99](https://github.com/git-stunts/git-cas/issues/99). npm, JSR, and runtime
version metadata identify `6.5.4`; tag and registry artifacts remain
deliberately absent until release-candidate review completes.
- **v6.5.3 artifact posture** — signed tag `v6.5.3` resolves to reviewed merge
`00df6077`; npm reports `@git-stunts/git-cas@6.5.3` as `latest` with SLSA
provenance, and release workflow `29696131557` published the final GitHub
Expand Down Expand Up @@ -134,7 +139,7 @@
under the
[`v6.6.0` milestone](https://github.com/git-stunts/git-cas/milestone/9).
- The latest landed design record is
[0053-git-object-session-coherence](./docs/design/0053-git-object-session-coherence/git-object-session-coherence.md).
[0054-batched-page-retention](./docs/design/0054-batched-page-retention/batched-page-retention.md).

## Read Next

Expand Down
22 changes: 22 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

v6.0.0 is a major release that simplifies the encryption model, hardens security defaults, and cleans up the architecture. This guide covers every breaking change and what you need to do.

## v6.5.3 To v6.5.4

v6.5.4 adds `workspace.pages.putBatch()` and requires no stored-data migration.
Callers that stage many bounded pages can opt into one count-and-byte-bounded
page write plus one workspace-generation installation:

```js
const sources = [Uint8Array.of(1), Uint8Array.of(2)];
const staged = await workspace.pages.putBatch({
pages: sources.map((source) => ({ source })),
maxBatchPages: 256,
});
Comment thread
coderabbitai[bot] marked this conversation as resolved.
```

Results preserve input order, including repeated content, and every result has
an exact retained witness for the same workspace generation. Existing
`workspace.pages.put()` behavior is unchanged. Applications do not need to
adopt the batch API unless they need to remove per-page root-set rewrites.

See [v6.5.4 Release Notes](./docs/releases/v6.5.4.md) for the measured
8,188-page migration workload and compatibility details.

## v6.5.2 To v6.5.3

v6.5.3 changes no public API and requires no stored-data migration. Long-lived
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ release_home: 'v6.5.4'
issue: 'https://github.com/git-stunts/git-cas/issues/99'
goalpost_issue: 'https://github.com/git-stunts/git-cas/issues/99'
tracker_source: 'github'
status: 'active'
status: 'landed'
base_commit: 'd446d97e0436afccdfc0398091ba18888375d8b0'
owners:
- '@git-stunts'
Expand Down Expand Up @@ -297,4 +297,11 @@ does it authorize git-warp v19 release without its full migration rehearsal.

## Retrospective

Fill this section after implementation and review.
PR #100 landed the bounded batch surface without changing stored formats or
existing staging methods. The final review repair strengthened the order proof
by deriving expected handles independently from the returned batch.

The synthetic 8,188-page workload completed in 32 workspace generations and
15.546 seconds, replacing the pre-change per-page rewrite path that had retained
only 5,213 pages after 75 minutes. Downstream git-warp adoption and a complete
disposable migration rehearsal remain separate release gates for git-warp v19.
102 changes: 102 additions & 0 deletions docs/design/0054-batched-page-retention/witness/release-candidate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# PERF-0054 v6.5.4 Release Candidate Witness

Date: 2026-07-26

Issue: #99

Implementation review: #100

Release review: #101

## Scope

This witness records the pre-publication release candidate for batched
staging-workspace page retention. It does not claim that a `v6.5.4` tag, npm
artifact, or GitHub Release exists. This is an explicitly unpublished
candidate.

The candidate:

- sets npm, JSR, and the runtime `PACKAGE_VERSION` export to `6.5.4`;
- moves batched workspace page retention from `Unreleased` to `6.5.4`;
- packages and links `docs/releases/v6.5.4.md`;
- adds v6.5.3-to-v6.5.4 compatibility guidance to `UPGRADING.md`;
- marks design 0054 landed and records its release-candidate posture;
- preserves all v6.5.3 publication evidence as immutable history; and
- leaves tag and registry publication claims deliberately absent.

## Implementation Provenance

| Capability | Review anchor | Commit |
| ---------------------------------- | ------------- | ------------------------------------------ |
| Batched workspace page retention | #100 | `6dba2bab22241276a316d2af12f06704f7582eee` |
| Independent ordered-result proof | #100 | `18d3c9e66b4c1cef6c6c148dd6d21eeb544d5b5d` |
| Reviewed feature merge | #100 | `e6c58f10bf5244d0ee815a60636dec3c896ef38f` |

The staging workspace delegates one bounded page batch, resolves every page,
deduplicates only the installed target map, installs one generation, and maps
the exact witness back to every ordered result.

[cite: `src/domain/services/StagingWorkspace.js#209-269@e6c58f10bf5244d0ee815a60636dec3c896ef38f`]

Unit coverage derives expected handles independently and proves input order,
duplicate-result preservation, a shared generation, one ref update, bounded
failure, and failure containment. Real-Git integration proves reachability
through prune and exact release cleanup.

[cite: `test/unit/domain/services/StagingWorkspace.test.js#87-185@e6c58f10bf5244d0ee815a60636dec3c896ef38f`]
[cite: `test/integration/staging-workspace.test.js#117-154@e6c58f10bf5244d0ee815a60636dec3c896ef38f`]

The change adds one public method and changes no stored format, handle identity,
existing staging behavior, retention policy, ref authority, or release
lifecycle.

## Scale Witness

A disposable bare repository staged 8,188 deterministic tiny pages in 32
batches of at most 256 pages. It completed in 15.546 seconds, the final
generation matched the workspace ref, 8,188 page objects were reachable, and
Git reported no garbage.

The pre-change downstream rehearsal had retained only 5,213 pages after 75
minutes and produced about 1.16 GiB of loose scratch objects. The scale witness
contained no Think data and no large benchmark repository or fixture is part of
this release candidate.

## Verification

The versioned candidate passed the complete `pnpm run release:verify` method:

| Gate | Result | Observed tests |
| -------------------------- | ---------------- | -------------: |
| Lint | PASS | - |
| Unit tests (Node) | PASS | 2,086 |
| Unit tests (Bun) | PASS | 2,085 |
| Unit tests (Deno) | PASS | 2,076 |
| Public type compatibility | PASS | - |
| Integration tests (Node) | PASS | 199 |
| Integration tests (Bun) | PASS | 199 |
| Integration tests (Deno) | PASS | 199 |
| Examples and build stamp | PASS | - |
| npm and JSR dry-runs | PASS | - |
| **Release method summary** | **PASS (14/14)** | **6,844** |

The implementation PR merged only after GitHub lint and all Node/Bun/Deno jobs
passed, CodeRabbit approved the exact head commit, and its only review thread
was resolved against the independently derived order proof. Tag and publication
evidence remain deliberately absent from this candidate witness.

## Publication Gate

Publication remains blocked until all of the following are true:

1. the versioned candidate passes every release-verifier step;
2. the release PR passes GitHub CI and review without unresolved findings;
3. the release PR is merged;
4. a signed annotated `v6.5.4` tag points at the reviewed merge commit;
5. the release workflow passes version validation and runtime tests;
6. npm reports `@git-stunts/git-cas@6.5.4` with provenance; and
7. GitHub reports the final non-draft `v6.5.4` Release.

Downstream git-warp adoption and its full disposable v18-to-v19 migration
rehearsal remain separate post-publication obligations.
47 changes: 47 additions & 0 deletions docs/releases/v6.5.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# git-cas v6.5.4 Release Notes

v6.5.4 adds ordered page-batch retention to scoped staging workspaces. It lets
applications write a bounded page group and retain the complete group under one
exact workspace generation instead of rewriting a growing root set for every
page.

## Batched Workspace Pages

`workspace.pages.putBatch()` accepts the existing page-batch count and byte
limits, delegates page creation to the bounded page service, and installs the
resulting handles in one compare-and-swap workspace update. Returned pages stay
in input order and each carries an exact retained witness for the shared
generation.

Repeated content still produces one result per input position while the
workspace target set deduplicates the content handle. An oversized batch fails
before workspace-ref mutation, and a failed generation installation returns no
retained batch.

## Measured Effect

A disposable bare repository staged 8,188 deterministic tiny pages in 32
batches of at most 256 pages. It completed in 15.546 seconds, installed 8,188
page objects under the expected generation chain, and left no garbage reported
by Git.

The motivating pre-change git-warp rehearsal had retained only 5,213 of the
same 8,188-page cardinality after 75 minutes while producing about 1.16 GiB of
loose scratch objects. These measurements establish the removed quadratic
root-set rewrite at that workload; they are local evidence, not a
cross-platform timing guarantee. The benchmark used synthetic tiny pages,
contained no Think data, and added no large fixture to this repository.

## Verification

The versioned candidate passed 2,086 Node unit tests, 2,085 Bun unit tests,
2,076 Deno unit tests, and 199 real-Git integration tests on each runtime. The
full release verifier passed all 14 steps with 6,844 observed tests, including
public type compatibility, examples, build stamping, and npm and JSR dry-runs.

## Compatibility

This release is API-additive and requires no application or stored-data
migration. Existing `workspace.pages.put()` calls, handles, object identities,
workspace refs, witnesses, retention semantics, limits, release behavior, and
pruning behavior are unchanged. Callers opt into batching explicitly.
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@git-stunts/git-cas",
"version": "6.5.3",
"version": "6.5.4",
"exports": {
".": "./index.js",
"./service": "./src/domain/services/CasService.js",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@git-stunts/git-cas",
"version": "6.5.3",
"version": "6.5.4",
"description": "Content-addressed storage backed by Git's object database, with optional encryption and pluggable codecs",
"type": "module",
"main": "index.js",
Expand Down Expand Up @@ -40,6 +40,7 @@
"docs/releases/v6.5.1.md",
"docs/releases/v6.5.2.md",
"docs/releases/v6.5.3.md",
"docs/releases/v6.5.4.md",
"docs/THREAT_MODEL.md",
"docs/VAULT_INTERNALS.md",
"docs/WALKTHROUGH.md",
Expand Down
2 changes: 1 addition & 1 deletion src/package-version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const PACKAGE_VERSION = '6.5.3';
export const PACKAGE_VERSION = '6.5.4';
2 changes: 2 additions & 0 deletions test/unit/docs/package-docs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const requiredStandardDocs = [
'docs/releases/v6.5.1.md',
'docs/releases/v6.5.2.md',
'docs/releases/v6.5.3.md',
'docs/releases/v6.5.4.md',
];
const forbiddenPackagePrefixes = ['docs/audit/', 'docs/archive/', 'docs/method/'];
const forbiddenPackageFiles = ['docs/cli.gif', 'docs/vault.gif'];
Expand Down Expand Up @@ -92,6 +93,7 @@ function publicPackagedMarkdownFiles(files) {
'docs/releases/v6.5.1.md',
'docs/releases/v6.5.2.md',
'docs/releases/v6.5.3.md',
'docs/releases/v6.5.4.md',
'docs/THREAT_MODEL.md',
'docs/WALKTHROUGH.md',
].filter((file) => files.has(file));
Expand Down
Loading
Loading