Repository navigation
Rename the CLI from iglo.mem to iglo.memory - #5
Conversation
…back The executable, package, CI artifact, scripts, messages and docs now use iglo.memory. Credentials are saved to ~/.config/iglo.memory/credentials.json. When that file is absent, a key saved by iglo.mem is read in place with the same security checks; an unsafe legacy file is CREDENTIALS_INVALID. Saves and resets write only the new location. Co-Authored-By: Claude Opus 5.5 <[email protected]>
List the pre-rename credentials file as a resolution step in the PRD, point the CREDENTIALS_INVALID message at init --reset-credentials and at repairing or removing an unsafe legacy path, record that an unsafe legacy directory without a credentials file still fails closed, and give an exact command sequence for moving the key by hand into a 0700 directory. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Council verdict: APPROVE (unanimous, round 2, head |
Summary
Renames the executable to
iglo.memoryso it matches the repository and the sibling tools (iglo.code, iglo.email, iglo.monitor). Saved credentials move to~/.config/iglo.memory/credentials.json. Existing users keep their saved key through a read-only fallback, so they do not have to enter it again.dist/iglo.memory,iglo.memory-linux-x64.tar.gz,package.jsonname, and thebun.lockworkspace name.bun.lockchanged. A fullbun installregeneration also bumped transitive@types/nodeandundici-types, so I didn't keep it.[email protected] install --frozen-lockfilepasses on a cleannode_modules.docs/**, PRD and tests..ai/skills.json: its validation command used a developer's absolute path,/home/cezar/…/iglo.mem/.agents/skills/setup/scripts/check.ts. That script is tracked in this repo, so the path is now repo-relative (.agents/skills/setup/scripts/check.ts) instead of being renamed to another machine-specific path..agent/memory.json,.agent/knowledge,.agent/decisions,.agent/memory-index).Credentials decision: read-only fallback, no migration
The full reasoning is in
docs/decisions.mdunder "Shared credentials". Short version: copying or moving a secret would add a second write path, a moment with two copies or none, and cleanup decisions about a file an older binary may still need. Reading the old file in place has no race and writes nothing.OPENROUTER_API_KEYsetCREDENTIALS_INVALID, never skipped silently. Skipping would make a broken key look missing and lead to a new-key promptCREDENTIALS_INVALID; no fallback to the legacy fileinitandinit --reset-credentialsinitprints (stderr)Using the saved key from <path>.When the key comes from the legacy file, it says so and points to the new path and--reset-credentials. After a save, if a legacy file is still there, it says that file is no longer read and can be deleted. The JSON on stdout is unchangedRemaining
iglo.memhits (git grep -nP 'iglo\.mem(?!ory)')src/credentials.ts:15:LEGACY_APP, the fallback code itself.src/errors.ts:10: theCREDENTIALS_INVALIDhint names the legacy file. When the legacy file fails a check, the user needs to know which file to repair.README.md:38,40,42: the "Migrating from iglo.mem" note.test/credentials.test.ts:18,21,206,219,220,223: fallback tests.scripts/qa-terminal.py:62: legacy reuse and reset check in the PTY harness.Tests
test/credentials.test.tscovers:CREDENTIALS_INVALID: readable file, shared directory, malformed JSON, hardlink, symlinked file, symlinked directory,.gitin the directory, Git repository as an ancestor. Each also confirms that nothing is created at the new location and that the env override still works;initreuses a legacy key without prompting and prints the paths, the key never appears in output, and the env override takes precedence.qa-terminal.pynow also runs a PTY reset with a home that has only a legacy file: the key is saved to the new location and the legacy bytes are unchanged.Verification (local, Linux x86_64)
sh scripts/check.sh: lint, format, tests (187 passed, 0 failed) andtscall pass.sh scripts/build.shproducesdist/iglo.memory.scripts/qa-cli.ts: PASS.python3 scripts/qa-terminal.py: PASS, includinglegacy_reuse_and_reset.python3 scripts/qa-clean.py(Docker): PASS.initreturnedcredentialSource: savedwithout prompting and printed the legacy-location notice, and nothing was created at the new location. Afterchmod 644on the legacy file,initreturnedCREDENTIALS_INVALID.🤖 Generated with Claude Code