Skip to content

Restore local credential hardening and isolate fake process signals - #418

Merged
BunsDev merged 2 commits into
mainfrom
lm2-credential-repair
Oct 27, 2026
Merged

BunsDev merged 2 commits into
mainfrom
lm2-credential-repair

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Closing #401 as superseded left its later credential-copy and stale-discovery repairs outside main. This restores the bounded patch on current main: profile edits check the previous token even when it is cleared, rotated or detached by an address change; unreadable credentials prevent unchecked metadata from being exposed; credential loss during discovery suppresses late results and supersedes earlier reads. Regression coverage preserves profile bytes after refusal and keeps credential-only recovery available.

The five credential source/test files match reviewed commit 5ee2ecdbaac3226c5d6f158dbdf15b14f91eb9f5 byte-for-byte. The token-suffix fixture retains full and partial leak assertions with a sentinel that cannot collide with generated UUIDs. This branch starts from d717bb0861378718783513ae34895bfd50ae09c8 and changes no renderer behavior or native execution admission.

Validation exposed a separate fixture defect: plausible fake PIDs could reach production process-group signaling. A signal-free diagnostic reproduced pending fake disposal when the signal function reported success; the original stalled worker's actual cause remains unproven. That first unit run was interrupted and preserved. Commit f173d6b37dedb38a7765582597ee7a11c1a4ea76 places fake PIDs outside Node's accepted signal range, forcing the existing fake-process fallback before any OS signal. Its new regression failed before the repair, and all 68 focused health/Codex/Claude lifecycle tests passed afterward. Production signaling and real-process lifecycle coverage remain unchanged.

Fresh validation of the final source passed: full build, full unit command (2,127 passed, 22 skipped, zero failures or cancellations), workspace typechecks, and the real Electron connection/discovery IPC journey (1/1). Independent review approved both the credential reconciliation and fixture repair. Signed head: 17a5e4d1113f6120fbce026cdfe0f178a9b1678d. Full local UI testing was not run for this main-process/test-fixture change; required hosted E2E and protected merge-queue validation are pending.

The dated receipt preserves the original regressions, interrupted validation and exact evidence limits. The historical #401 hosted cold transcript failure (run 40087454211, 694.8 ms median against 500 ms) remains undiagnosed and is not erased by this reconciliation. Refs #378 and #376; real-runtime, native privacy and human acceptance gates remain open.

@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 26, 2026 11:11pm UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main d717bb0 lm2-credential-repai... 17a5e4d +/-
65% 65% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

This branch was successfully deployed

1 active deployment
Preview — 17a5e4d1 Deployed Oct 26, 2026 by vercel[bot]
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