Skip to content

feat: durable project memory, release hardening and 0.1.1 - #3

Merged
akosidencio merged 1 commit into
mainfrom
feat/v0.5.1-memory-durability
Oct 31, 2026
Merged

akosidencio merged 1 commit into
mainfrom
feat/v0.5.1-memory-durability

Conversation

@akosidencio

Copy link
Copy Markdown
Member

Prepares the 0.1.1 release. It makes project memory durable and fixes portability gaps found while validating it. It also brings the README and docs in line with the current architecture and with what release 0.1.0 actually contains.

Durable project memory

  • Reviewed memories move out of the rebuildable index into .repogi/memory.db, a separate SQLite store with its own schema version. Deleting or rebuilding .code-intel/ no longer removes them, and memory reads work without an index (evidence reported as unverified).
  • Memories that earlier source builds kept in index schema 5 are migrated row for row, validated before install, idempotently and crash-recoverably. The legacy rows are kept and frozen.
  • New commands: memory status, migrate, export, import (restore or review import) and rebind. Exports are digest-checked and never overwrite a file without --force.
  • Approval re-verifies evidence inside the write transaction. Impact snapshot copies no longer contain memory rows.

Release hardening

  • Filesystems without hard links. On a real vfat mount, migration failed with EPERM and then blocked every memory write, and exports without --force failed. Migration now builds the store in place in one validated IMMEDIATE transaction, and exports fall back to exclusive create. Neither path ever overwrites an existing file.
  • fullfsync is enabled for memory writes, because a plain fsync on macOS can leave commits in the drive cache.
  • The frozen-table error message no longer names a version.
  • rust-version is now 1.98, the toolchain CI tests; 1.85 never compiled. Raising it enables Clippy's let-chain collapsible_if, so 22 nested ifs in 9 files are collapsed. The change is mechanical, and output is byte-identical.
  • CI: a new Tests (macOS) job, so macOS failures surface before a release tag.

Documentation

  • A new static architecture diagram (assets/repogi-flow.svg) and "How Repogi works" section. They separate the rebuildable index from durable project memory and show memory being created only through explicit CLI review. A text fallback matches the diagram.
  • The README now marks which capabilities are in release 0.1.0 and which arrive in 0.1.1, and adds the Build from source section that install.sh error messages link to.
  • Updated architecture, memory storage, installation and feature docs, including FAT permission limits, the 0.1.0 downgrade behavior and corrected integrity-check wording.

Compatibility

  • No CLI or MCP contract changes. Default and code-only outputs are byte-identical to the previous builds (550/550 comparisons each against three earlier builds). atlas_* tool IDs are unchanged.
  • The index schema stays 5. Release 0.1.0 (index schema 2) refuses schema-5 indexes without changing them; a 0.1.1 build upgrades a 0.1.0 index on repogi index.
  • The workspace version is bumped to 0.1.1, and Cargo.lock is updated for the workspace crates only.

Validation (Linux, local)

  • cargo fmt, cargo clippy -D warnings and cargo test --workspace --locked (292 passed, 0 failed), plus a locked release build.
  • Retrieval, relationship, investigation, memory and memory-durability evaluations on labeled fixtures. These are correctness checks, not agent benchmarks.
  • Release scripts: license notices for all four targets, smoke test, and a portable Debian bookworm build. That build was inspected for the glibc 2.34 floor, packaged, and installed with install.sh.
  • Every repogi command in the README was executed against a fixture repository. 173 links and anchors were checked. The diagram was rendered in Chromium in light and dark themes at desktop and mobile widths.

Not yet run: macOS, Windows, Linux arm64 and the official MCP SDK check. The new macOS CI job covers macOS, and the release workflow covers the rest before publishing.

Before tagging v0.1.1: this PR's macOS job should pass, plus a non-publishing Release workflow dispatch.

Durable project memory:
- Store reviewed memories in a separate .repogi/memory.db (own application
  id, memory schema 1, rollback journal, synchronous=FULL), so deleting or
  rebuilding .code-intel no longer removes them. Memory reads work without an
  index and report evidence as unverified.
- Migrate memories that earlier builds kept in index schema 5 row for row,
  validated before install, idempotent and crash-recoverable; the legacy rows
  are kept and frozen.
- Add memory status, migrate, export, import (restore or review import) and
  rebind. Exports are validated, digest-checked and never overwrite a file
  without --force.
- Re-verify evidence inside the approval write transaction, and scrub memory
  rows from every impact snapshot copy.

Release hardening:
- Install the migrated store in place, in one validated transaction, when the
  filesystem has no hard links (FAT, exFAT, some network and FUSE mounts),
  and fall back to exclusive create for exports. On a real vfat mount the
  link-only install failed and then blocked every memory write.
- Enable fullfsync for memory writes so macOS commits reach the disk.
- Make the frozen-table error message version-neutral.
- Set rust-version to 1.98, the toolchain CI tests (1.85 never compiled),
  and collapse the nested ifs Clippy flags once let chains are allowed.
- Run the workspace tests on macOS in CI.

Documentation:
- Describe the current architecture in the README with a new static diagram
  separating the rebuildable index from durable project memory, plus a
  matching text fallback.
- State what release 0.1.0 contains and what arrives in 0.1.1, and add the
  Build from source section the installer links to.
- Update architecture, memory storage, installation and feature docs.

Bump the workspace version to 0.1.1.
@akosidencio
akosidencio merged commit a0f0cc1 into main Oct 31, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant