# @ibgib/core-gib changelog

_note: as you implement features/fixes/etc., please document them here under the "Working Version" section. These will be moved to a concrete version number during the next publish._

## Working Version

## 0.2.1
* feat: Cosmology multi-galaxy container and branching VCS engine
  * Added `CosmologyWorkspaceService` for unified multi-galaxy polycosmos management.
  * Added `B2tFSGalaxy` and `B2tFSItem` snapshotting and item evolution.
  * Linked binary relation invariant (`linkedRel8ns: [BINARY_REL8N_NAME]`) ensuring deterministic single-binary point-in-time snapshot resolution.
  * Virtual slice filtering (`.virtual.secrets.slice`) with `include` and `exclude` pattern support in `glob-helpers.mts` ensuring 0-leak secret projection.
* feat: Graft strategy guidance and documentation
  * Added `GRAFT_STRATEGY_GUIDANCE.md` providing architectural guidelines, invariant rules, and lifecycle requirements for implementing `GraftStrategyBase_V1` graft strategies.
  * Added class- and method-level documentation warnings across `GraftMergeStrategyBase_V1` and `DefaultDnaReplayGraftStrategy` pointing implementors to `GRAFT_STRATEGY_GUIDANCE.md`.
* chore: license alignment to MIT

## 0.1.66
* `changePassword` flow working
  * enabled via targeted poolIds or if blank all non-foreign pools, including
    delegate keystones' user pools.
  * Reorg some of validation code.
  * Includes testing.

## 0.1.62
* Implement Keystone Delegate & IB Validation:
  * Added `validateKeystoneIb` helper to enforce the `keystone` atom prefix on all keystone addresses (genesis and transitions).
    * _Why_: Ensures all identity frames are well-formed and conform to the custom keystone address format.
  * Refactored transition validation to use new async helpers: `isDelegatesChanged` and `validateDelegates` for structural integrity, key consistency, and well-formedness validation.
    * _Why_: Improves code maintainability, isolates validation logic, and enforces strict, non-bypassable constraints on identity updates.
  * Added timeline ancestry checks enforcing that the delegate's `thisAddr` is a valid historical or current parent address.
    * _Why_: Prevents replay or hijack attacks by linking active delegations strictly to valid states in the parent's timeline history.
  * Added a complete unit test suite `Suite G` in `keystone-service-v1.respec.mts` verifying these validation rules.
    * _Why_: Cryptographically asserts that incorrect delegations or invalid address structures are securely rejected under all scenarios.
  * Documented the multi-tiered identity hierarchy (Root, Device, Session) in the architecture guides.
    * _Why_: Establishes standard patterns for low-overhead, offline-first client delegations without constant parent timeline evolution.

## 0.1.61
* Sync with identity fully implemented

## 0.1.60
* Progress: Implemented and verified complete Identity Sync Saga (Phases 1, 2, and 3)
  * Integrated session-based identity validation into both automated InnerSpace simulations and integrated WebSocket peer synchronization.
  * Added validation of `sagaFrameMsg` matching the message stone address in `sync-saga-context-helpers.mts` to ensure context integrity.
  * Robust WebSocket resource management:
    * Implemented idempotent `disconnect()` on `SyncPeerWebSocketSender_V1` to guarantee teardown of handshake listeners and socket resources on success, fail, or timeout.
    * Added nested `try..catch..finally` block to `SyncPeerWebSocketReceiver_V1` handling on the server to reliably send error response frames and force-close connection wrappers during protocol violations.
  * Verified full Phase 1/2/3 checklist in `security.md` across both automated unit tests and manual Space-Gib transaction sync.

## 0.1.55
* chore: centralized build orchestration
  * migrated build, clean, and test logic to the root `@ibgib/build-gib` orchestrator.
  * pruned legacy `package.json` scripts and archived them in `docs/ARCHIVE_SCRIPTS.md`.
  * updated `prepare:publish` to use the centralized build engine.
  * documented the new **Monorepo Build Policy** in the README.
* progress: removed all identity-related code from sync

## 0.1.17

* sync coordinator being developed
  * working on tests for various scenarios

## 0.1.11

* innerspace and metaspace innerspace seem to be working now.
  * several issues with innerspace implementation.
  * key insight was that spaces always have singular, punctiliar hash gibs and
    have NO `tjpGib`.
    * had to index in memory via the spaceId instead.
* sync coordinator sketching begun
  * testing is current in progress
  * any space should be able to sync with any other space.
  * now we can test with the InnerSpace_V1 and its corresponding metaspace.
* other changes in older code
  * initialization of metaspace now creates root ibgibs with nCounter: true
  * there may have been other changes as well
* I thought I had updated this with previous minor version bump. weird.
  * I do not remember all the changes obviously since then.
  * Some were driven strictly by updates to helper-gib/ts-gib/encrypt-gib

## 0.0.112

* upgrade ts-gib for fork bug that wasn't clearing past when cloneRel8ns set

## 0.0.106-111

* adding helper plumbing for compression when getting an ibgib dependency graph
  * import export helpers, other helpers

## 0.0.105

* updated @ibgib/ts-gib with a slightly improved, and mostly backwards compat
  normalizing function. from ts-gib changelog:
  * Instead of returning the raw array, the fn now maps each member to its
    normalized version. This way objects _inside_ those arrays are normalized,
    as would be expected, but the actual order of the array itself is preserved.

## 0.0.102/103/104

* added addrsToUnRel8 to rel8ToSpecialIbGib.
  * before required to pass in the entire ibgib record(s).

## 0.0.99/100

* default to lock = false for getting local user space
  * this happens during very first metaspace initialization where special ibgibs are first created.
  * was fighting a particularly nasty race condition downstream in blank-gib
  * the locking mechanism isn't great and i don't recall if it actually was
    fixing any real problem with multiple tabs open. it also slows things down
    so this is the reason for the default change.
  * real multi-tab race-condition solution would take more of a team effort, as
    i am getting a bit code blind (and old).
* adding "fix" for race condition in node-filesystem-space-v1.mts
  * createFromDto was newing up a NodeFilesystemSpace_V1 instance but not
    awaiting that instance's `initialized` promise. this is the same as
    downstream i've been fighting with the web-filesystem-space-v1 case. not
    sure why the race condition wasn't causing problems before when doing ibgib
    rcli but hey, one less insipid race condition to deal with.


## 0.0.98

* correcting bare imports in all libs/apps
  * updated helper-gib, ts-gib and encrypt-gib.
* removed refs to metaspace in app base descendants
  * stemming from compiler error in current env that complained about hiding the
    parent property.

## 0.0.1
* getting basic folder structure going
  * working mostly off of the existing ts-gib (v0.4.1)
  * removed mocha
  * trying out solutions for unit testing in both node and browser.
    * spaces should be executing in both contexts.
    * jasmine seems to be working atm for node.
      * trying just jasmine because it "should" be able to work even
        without using karma as the test runner.
      * i only need rudimentary headless running at the space level (this lib)
        because i'm not actually doing an app here.
