Skip to content

refactor: remove unused pairing store writer and deprecated lock dependency - #271

Open
steipete wants to merge 1 commit into
Tencent:mainfrom
steipete:codex/remove-unused-pairing-writer
Open

steipete wants to merge 1 commit into
Tencent:mainfrom
steipete:codex/remove-unused-pairing-writer

Conversation

@steipete

@steipete steipete commented Aug 28, 2026

Copy link
Copy Markdown

registerUserInFrameworkStore has no production callers in this repository or the published 2.4.6 package. It is the only consumer of the deprecated infra-runtime file-lock API. Remove that unused writer and its lock dependency instead of replacing it with a private SDK facade.

Keep the existing allowlist reader and path resolver: message authorization still reads existing paired IDs, and account cleanup still owns deletion. This change does not write, delete, migrate, or change the precedence of stored authorization data. Replace writer-only tests with reader coverage for existing, missing, and malformed files, including assertions that reads leave the files untouched.

Independent follow-up to #251. No host minimum or dependency changes. This removes the file-lock dependency only; the authorization API migration remains separate because it must preserve sender admission and command authorization independently.

Validation at d16f6e4: secretless Linux AWS proof with Node 24.19.0, the declared OpenClaw 2026.5.12 dependency, and install lifecycle scripts disabled. Typecheck, build, and all 393 tests passed; the six focused pairing tests also passed. The repository-wide coverage gate still fails: candidate branch coverage is 89.08% against 90%, while the unchanged parent also fails at 89.13% using the same dependency installation. No threshold or exclusion was weakened. Codex review and whitespace checks passed. No live Weixin session was used, and this change does not claim the separate authorization/storage migration is complete.

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