Repository navigation
refactor!: rename openkakao to Alden, with one release of compatibility - #66
Merged
Merged
Conversation
twoimo
force-pushed
the
rename/openkakao-to-alden
branch
4 times, most recently
from
November 23, 2026 06:16
ad82687 to
382ea07
Compare
The project is named Alden, but the crate, binary, environment variables, state directory and launchd labels still carry the upstream name. Renaming 2,100 occurrences in 190 files by hand cannot be reviewed or repeated. `scripts/dev/rename_openkakao_to_alden.py` holds the naming table (`RULES`) and the complete list of places where the old name must stay (`KEEP`), each with a reason. - `apply` rewrites the tree. A second run changes nothing. - `shims` gives the runtime scripts the helpers that keep a pre-rename install working for one release. The helper texts live only in the tool. - `check` fails on any occurrence that `KEEP` does not cover, on any `KEEP` entry that matches nothing, and on a script whose helper copy differs. - `verify BASE REV` rebuilds a commit from its base, so a reviewer can confirm that the rename commit is tool output and nothing else. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is the output of `scripts/dev/rename_openkakao_to_alden.py apply` and nothing else. Reproduce it with `python3 scripts/dev/rename_openkakao_to_alden.py verify HEAD~1 HEAD`. Each name follows its surface's convention: - Cargo package and binary `alden-cli`, library crate `alden_cli`, second binary `alden-auto-reply-health`. Cargo package names use hyphens and the library name is the same with underscores. The closed `codex/alden-*` lineage already chose `alden-cli`, and a bare `alden` would collide with `Alden.app` on a case-insensitive volume. - Types `AldenConfig`, `AldenError`, `AldenState`. - Environment variables `ALDEN_*`. - Directories `~/.config/alden` and `~/Library/Application Support/alden`, one lowercase spelling for both. - Bundle IDs, launchd labels and codesign identifiers under `io.github.twoimo.alden.`. Apple asks for reverse-DNS names, and `twoimo.github.io` is the domain this project controls. - The Tauri app `Alden Jarvis.app` with executable `alden-jarvis-desktop`, and the Python projects `alden-jarvis-browser` and `alden-jarvis-voice`. - Webhook headers `X-Alden-Timestamp` and `X-Alden-Signature`, the send prefix `[Sent via Alden]`, and the release asset `alden-cli-darwin-<arch>`. `cargo fmt` re-wrapped the lines the shorter names changed, and the three lockfiles were re-sorted by package name. The tool's `KEEP` list names what stays: dated records, the upstream repository's URLs, hash inputs of persisted identities, and the device name sent to Kakao's login API. BREAKING CHANGE: every name above changed. The next commits keep a pre-rename install working for one release. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The first Alden-named release will run on Macs whose files and launchers still carry the `openkakao` names. These tests build such a HOME or environment and state what must happen there: - The pre-rename config and state directories are used in place while they exist, a stray `alden` directory beside them is ignored, and a symlink at the old name is not adopted. - `OPENKAKAO_*` variables are read as `ALDEN_*` with a deprecation note, and the `ALDEN_*` name wins when both are set. - A hook program receives each event variable under both names. - The launchd scripts find the pre-rename state root, and each one either retires a LaunchAgent that still has its old label or refuses to run beside it. - The two gateway session ids keep their values. They fail on this commit: the renamed build looks only under the new names. The next commit makes them pass. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A Mac that ran an `openkakao-cli` build keeps its reply queue, owner locks and context database under `~/Library/Application Support/openkakao`, sets `OPENKAKAO_*` variables in its launchers, has LaunchAgents loaded under `com.openkakao.*` labels, and has hooks and webhook receivers written against the old names. The renamed build would have started from an empty `alden` directory, ignored those variables, and run beside the old agents. - Directories. Every default path goes through one helper per language. It returns the pre-rename directory while that directory exists, and `alden` otherwise. Nothing is moved or linked. The state-root walk opens every path component with `O_NOFOLLOW`, so the host refuses a state root under a symlink, and a rename under a running host would cut it off from its queue. Because the old directory wins, a stray `alden` directory cannot split the queue. - Environment. Each entry point renames `OPENKAKAO_*` to `ALDEN_*` in its own process before it reads anything, and prints one deprecation note per adopted name. An `ALDEN_*` value wins. - Hooks and webhooks. Hook programs receive each event variable under both names, and signed webhooks carry both header pairs. - Labels. `rebake-and-restart.sh` and the session-monitor uninstall boot out the pre-rename monitor label and set its plist aside. The watch and health installer retires its old pair. The status probe and the desktop and direct-service installers refuse to run while an old plist is installed, because they cannot vouch for it or would start a second agent beside it. - Frozen values. The account fingerprint, the Kakao device name and the two gateway session ids keep their pre-rename inputs. Each now has a known-answer test, so a later rename of the input fails a test instead of re-keying stored data without notice. The Rust side lives in `src/pre_rename.rs`, with a counterpart in the desktop crate. The script helpers are the output of `rename_openkakao_to_alden.py shims`, and `check` requires all 45 copies to equal the text in the tool. Everything here except the frozen values is meant to be deleted in the release after the first Alden-named one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e in CI `docs/migrating-from-openkakao.md` is the procedure for the first bake on a Mac that ran a pre-rename build. It leads with the two things an operator cannot skip: - Do not pull this change into the checkout a running host was built in. The stable binary loads its Python runtime from that checkout, and an old binary cannot drive the renamed scripts. - The stable CLI path and its signing identifier changed, so macOS asks for Accessibility, Full Disk Access and Automation approval again. It then covers the launchd label switch, the way back, and the optional move of the directories to their new names. The launchd runbook, both READMEs and `AGENTS.md` point to it, and the CHANGELOG lists the operator steps under a BREAKING entry. `CONTRIBUTING.md` now clones this repository instead of the upstream one. CI runs `rename_openkakao_to_alden.py check`, so a new occurrence of the old name fails the build unless `KEEP` lists it with a reason. CI also runs the new `tests.test_pre_rename_adoption` module. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
twoimo
force-pushed
the
rename/openkakao-to-alden
branch
from
November 23, 2026 06:18
382ea07 to
7620d92
Compare
This was referenced Nov 23, 2026
twoimo
added a commit
that referenced
this pull request
Nov 23, 2026
PR #66 merged. The status now names the procedure for the first Alden-named bake, the two follow-up issues, and the one thing that can stop the running host before that bake: a pull into the checkout its binary was built in. Hosted Actions ran on the PR, so the billing blocker is removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The owner asked for every
openkakaoname in this project to become Alden, with none left out. The project is named Alden, but the crate, the binary, the environment variables, the state directory and the launchd labels still carried the upstream name. A production host on the owner's Mac runs under the old names, so the change is source only and the next bake needs a migration that cannot lose the reply queue.What changed
scripts/dev/rename_openkakao_to_alden.pyrenames the tree and lists every place the old name stays, each with a reason. The second commit is its output and nothing else.OPENKAKAO_*is read asALDEN_*, hooks and webhooks get both names, and the launchd scripts retire an old label or refuse to run beside it.docs/migrating-from-openkakao.mdhas the operator steps for the next bake. CI now fails on a new occurrence of the old name.Scope
/Applications/Alden.appand itscom.openkakao.alden.*agents. They come from the unmergedcodex/alden-*lineage. Nothing was baked, installed, restarted or signalled.Alden Jarvis.apphere, and becomesAlden.appwhen that lineage is rebased.openkakao-*, delete the compatibility code in the release after the first Alden-named one, and stop the staged CLI from loading its scripts from the build checkout.Tradeoffs
O_NOFOLLOW, so the host refuses a state root under a symlink, and a rename under a running host cuts it off from its queue. The old directory is used in place instead, and the operator renames it by hand with every host stopped.mkdirofaldenwould switch every component to an empty queue.checkfails when a script's copy differs.io.github.twoimo.alden.*, notcom.alden.*. Apple asks for reverse-DNS identifiers, and the project controlstwoimo.github.io, notalden.com. The prefix is one rule in the tool if the owner prefers another.Blast Radius
The stable CLI loads its Python runtime from the checkout it was built in, so pulling this change into that checkout under a running pre-rename host stops its sends until the bake. Pull only in the bake window. The bake itself changes the stable CLI path, its signing identifier and every launchd label, so macOS asks for Accessibility, Full Disk Access and Automation approval again, and the host sends nothing until the operator grants it. A webhook receiver, a hook or a launcher that uses the old names keeps working for one release and breaks in the one after.
Verification
All runs used
nice, one suite at a time, an empty scratchHOMEand a cleared environment.2432ed7, the pure rename commit, and the tip all pass the CI commands.cargo test1173 → 1173 → 1191, the CI Python list 1383 → 1383 → 1399 (9 skipped each time), desktopcargo test86 → 86 → 89, desktopnpm test204.cargo fmt --check,cargo clippy -D warningsand the launchd harness pass at each point. Hosted Actions pass too.HOMEwith old-style directories, old variable names and old LaunchAgent plists, and run the launchd scripts against a fakelaunchctl.verifyrebuilds the rename commit from its parent: 512 files compared, 0 differ.verifyandcheckfail on each of 22 planted mutations, andverifyfails on an empty comparison. Neither can tell whether the keep list itself is right, so the four frozen values each have a known-answer test.Names
openkakao-clialden-clicodex/alden-*lineage already chose it, and a barealdencollides withAlden.appon a case-insensitive volume.openkakao_clialden_cliopenkakao-auto-reply-healthalden-auto-reply-healthOpenKakaoConfig,OpenKakaoError,OpenKakaoStateAldenConfig,AldenError,AldenStateopenkakao-jarvis-browser,openkakao-jarvis-voicealden-jarvis-browser,alden-jarvis-voice_resolve_alden_bin).OPENKAKAO_*ALDEN_*~/.config/openkakao~/.config/alden~/Library/Application Support/openkakao~/Library/Application Support/aldencom.openkakao.*io.github.twoimo.alden.*OpenKakao Jarvis.app,openkakao-jarvis-desktopAlden Jarvis.app,alden-jarvis-desktopX-OpenKakao-Timestamp,X-OpenKakao-SignatureX-Alden-Timestamp,X-Alden-Signature[Sent via openkakao][Sent via Alden]openkakao-cli-darwin-<arch>alden-cli-darwin-<arch>Three values a user can see or a server receives changed and have no fallback: the send prefix, the
User-Agentof link fetches (alden-auto-reply/1.0), and one seeded knowledge-graph description that said "오픈카카오 봇".Migration
aldenotherwise. Both builds then open the same queue database (schema v3) and take the same owner locks.OPENKAKAO_*toALDEN_*in its own process before it reads anything, and prints one deprecation note per adopted name. AnALDEN_*value wins.scripts/rebake-and-restart.shand the session-monitor uninstall boot outcom.openkakao.auto-reply.session-monitorand set its plist aside. The watch and health installer retires its old pair. The status probe and the desktop and direct-service installers refuse to run while an old plist is installed.install-swift-auto-reply-menubar.shdoes not check for its old label. The doc gives the commands for both.Remaining occurrences
git grep -i openkakaowent from 2,681 occurrences in 228 files to 953 in 101. Each one is covered by a row below.python3 scripts/dev/rename_openkakao_to_alden.py checkprints this table and fails on anything else.Two kinds go beyond the three the task named. "Frozen persisted value" covers hash inputs and the device name sent to Kakao's login API. Renaming them would re-key stored data or change what the client sends to Kakao. The Archify bundles count as dated records, because each receipt pins the SHA-256 and the file names of its bundle.
Every remaining occurrence, by reason
docs/architecture/[\w.-]*openkakao[\w.-]*JungHoonGhae/(?:homebrew-)?openkakao(?:-cli)?openkakao-local-account-v1openkakao/ondevice/probe/v1session_lane = "openkakao-bujamentor"|session/v1\\0openkakao-bujamentor""자동답변", "openkakao"com\.openkakao\.bujamentor\.session-monitorcom\.openkakao\.bujamentor\.session-monitorsigned as com\.openkakao\.menubarDEVICE_NAME: &str = "openkakao-cli"|"openkakao-cli"\.to_string\(\)|device_name, "openkakao-cli"pre-renameopenkakaodirectory|base \+ "/openkakao""X-OpenKakao-(?:Timestamp|Signature)", (?:timestamp|signature)\),|X-OpenKakao-*pair|"X-Alden", "X-OpenKakao"PRE_RENAME_[A-Z]+="[^"\n]*com\.openkakao\.auto-reply\.[a-z-]+(?:\.plist)?"|for pre_rename_label in com\.openkakao\.[a-z.-]+ com\.openkakao\.[a-z.-]+; do\|\| key_text\.starts_with\("OPENKAKAO_"\)|"ALDEN", "OPENKAKAO"\)migrating-from-openkakao\.mdkeeps both underopenkakao``rename_openkakao_to_alden\.pyOutside the repository, the three frozen menu-bar
.pycfiles on the owner's Mac still embed the old default state root.🤖 Generated with Claude Code