@git-stunts/git-cas 6.5.4 → 6.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.5.5] — 2026-07-26
11
+
12
+ ### Fixed
13
+
14
+ - **Self-contained internal Git commits** - root-set, publication, and vault
15
+ commits now carry git-cas-owned author and committer identity, so bare
16
+ repositories do not depend on ambient Git user configuration.
17
+
10
18
  ## [6.5.4] — 2026-07-26
11
19
 
12
20
  ### Added
package/README.md CHANGED
@@ -49,7 +49,7 @@ Unlike traditional LFS which moves files to external servers, `git-cas` treats t
49
49
  Existing v5 users should read [UPGRADING.md](./UPGRADING.md) and run
50
50
  `npm run upgrade` in dry-run mode before restoring old encrypted vault entries.
51
51
  For the release overview, see the
52
- [v6.5.4 Release Notes](./docs/releases/v6.5.4.md).
52
+ [v6.5.5 Release Notes](./docs/releases/v6.5.5.md).
53
53
 
54
54
  ### 1. CLI Usage
55
55
 
@@ -221,6 +221,8 @@ All three runtimes are tested in CI on every push. The hexagonal architecture is
221
221
  persistent Git object sessions across compatible immutable writes.
222
222
  - **[v6.5.4 Release Notes](./docs/releases/v6.5.4.md)**: Ordered page batches
223
223
  retained under one exact staging-workspace generation.
224
+ - **[v6.5.5 Release Notes](./docs/releases/v6.5.5.md)**: Self-contained
225
+ identity for git-cas-owned commits in unconfigured bare repositories.
224
226
  - **[Upgrading](./UPGRADING.md)**: Migration guide for v5 → v6.
225
227
  - **[Changelog](./CHANGELOG.md)**: Version history and migration notes.
226
228
 
package/UPGRADING.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  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.
4
4
 
5
+ ## v6.5.4 To v6.5.5
6
+
7
+ v6.5.5 changes no public API and requires no stored-data migration. New
8
+ git-cas-owned root-set, publication, and vault commits carry a stable internal
9
+ author and committer identity, so writes no longer depend on repository-local
10
+ or global `user.name` and `user.email` configuration.
11
+
12
+ Existing refs, stored objects, and handles remain valid. Because Git commit
13
+ identity contributes to commit bytes, a newly created internal commit may have
14
+ a different OID than the same tree, parents, message, and timestamp would have
15
+ produced under an operator's ambient identity. Applications must continue to
16
+ treat these commits as opaque storage generations.
17
+
18
+ See [v6.5.5 Release Notes](./docs/releases/v6.5.5.md) for the exact identity
19
+ contract and clean-bare-repository verification.
20
+
5
21
  ## v6.5.3 To v6.5.4
6
22
 
7
23
  v6.5.4 adds `workspace.pages.putBatch()` and requires no stored-data migration.
package/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "sha": "a2d23f5",
3
- "timestamp": "2026-07-26T13:59:44.601Z"
2
+ "sha": "9ea91a7",
3
+ "timestamp": "2026-07-26T17:04:12.629Z"
4
4
  }
@@ -0,0 +1,43 @@
1
+ # git-cas v6.5.5 Release Notes
2
+
3
+ v6.5.5 makes every git-cas-owned Git commit independent of ambient user
4
+ configuration. Root-set, publication, and vault writes now work in a clean bare
5
+ repository without configuring a personal author or committer.
6
+
7
+ ## Self-Contained Commit Identity
8
+
9
+ `GitRefAdapter.createCommit()` supplies this stable identity to each internal
10
+ `git commit-tree` operation:
11
+
12
+ ```text
13
+ git-cas <git-cas@example.invalid>
14
+ ```
15
+
16
+ The identity is scoped to the individual Git command. git-cas does not invoke
17
+ `git config`, mutate repository or global settings, or require applications to
18
+ provide personal identity.
19
+
20
+ This fixes storage writes performed against bare or automation-owned
21
+ repositories where `user.name` and `user.email` are deliberately absent. The
22
+ failure was exposed by a clean-Linux retained-substrate migration rehearsal:
23
+ post-promotion root-set retention reached `git commit-tree`, which otherwise
24
+ stopped with `Author identity unknown`.
25
+
26
+ ## Verification
27
+
28
+ Unit coverage observes all four author and committer environment variables.
29
+ Real-Git integration reads a root-set commit through native Git and verifies
30
+ both headers exactly. The versioned release candidate passed the complete
31
+ Node, Bun, and Deno unit and integration matrix, public type compatibility,
32
+ examples, lint, build stamping, and package dry-runs.
33
+
34
+ ## Compatibility
35
+
36
+ This release changes no public API or stored-data schema and requires no
37
+ migration. Existing refs, objects, handles, and retained generations remain
38
+ valid.
39
+
40
+ Git identity is part of commit bytes, so newly created internal commit OIDs may
41
+ differ from commits that previously inherited an operator identity. Internal
42
+ commit OIDs remain opaque generations; callers must not derive them in advance
43
+ or interpret personal attribution from them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@git-stunts/git-cas",
3
- "version": "6.5.4",
3
+ "version": "6.5.5",
4
4
  "description": "Content-addressed storage backed by Git's object database, with optional encryption and pluggable codecs",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -41,6 +41,7 @@
41
41
  "docs/releases/v6.5.2.md",
42
42
  "docs/releases/v6.5.3.md",
43
43
  "docs/releases/v6.5.4.md",
44
+ "docs/releases/v6.5.5.md",
44
45
  "docs/THREAT_MODEL.md",
45
46
  "docs/VAULT_INTERNALS.md",
46
47
  "docs/WALKTHROUGH.md",
@@ -14,6 +14,12 @@ import Oid from '../../domain/value-objects/Oid.js';
14
14
  */
15
15
  const DEFAULT_POLICY = Policy.timeout(30_000);
16
16
  const FORBIDDEN_REF_CHARACTERS = new Set(['~', '^', ':', '?', '*', '[', '\\']);
17
+ const INTERNAL_COMMIT_IDENTITY = Object.freeze({
18
+ GIT_AUTHOR_EMAIL: 'git-cas@example.invalid',
19
+ GIT_AUTHOR_NAME: 'git-cas',
20
+ GIT_COMMITTER_EMAIL: 'git-cas@example.invalid',
21
+ GIT_COMMITTER_NAME: 'git-cas',
22
+ });
17
23
  const MAX_REF_ITERATION_LIMIT = 1001;
18
24
  const REF_NAME_ENCODER = new globalThis.TextEncoder();
19
25
 
@@ -103,7 +109,7 @@ export default class GitRefAdapter extends GitRefPort {
103
109
  args.push('-p', parent);
104
110
  }
105
111
  return this.policy.execute(() =>
106
- this.plumbing.execute({ args }),
112
+ this.plumbing.execute({ args, env: INTERNAL_COMMIT_IDENTITY }),
107
113
  );
108
114
  }
109
115
 
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '6.5.4';
1
+ export const PACKAGE_VERSION = '6.5.5';