Skip to content

Fix Capacius permissions and exact login recovery ownership#15

Draft
andrei-hasna wants to merge 21 commits into
mainfrom
codewith/capacius-permission-login-20260721
Draft

Fix Capacius permissions and exact login recovery ownership#15
andrei-hasna wants to merge 21 commits into
mainfrom
codewith/capacius-permission-login-20260721

Conversation

@andrei-hasna

@andrei-hasna andrei-hasna commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Prepares the existing Accounts permission/login hardening branch at exact head 3ea97c1.

What changed

  • Requires exact canonical raw Claude permission modes: bypassPermissions, auto, acceptEdits, dontAsk, and plan. Accounts preset aliases remain supported, while raw aliases, casing variants, whitespace, and unknown values fail closed.
  • Makes the stable migration 0010 blocker reason LOGIN_CLEANUP_MIGRATION_BLOCKER_REASON available from the supported @hasna/accounts root package as login-cleanup-ledger-atomicity, while leaving migration 0010 deployment-blocked.
  • Binds new exact-lock reclaim claims to PID, verifiable Linux or Darwin process incarnation, and UUID; preserved legacy aliases remain fail-closed.
  • Scopes reclaim cleanup to the exact token and inode acquisition, prevents peer deleters from reaching unlink concurrently, and gives unacquired recovery intents no authority over another acquisition.
  • Stabilizes the hosted concurrent-recovery ownership regression by resolving only the crashed login separate profile intent before the two journal contenders, while preserving journal, keychain, and apply ownership evidence.

Local verification

  • Focused changed-surface suite: 143 pass, 0 fail, 920 expectations.
  • Hosted failing concurrent-recovery case: 10 of 10 independent runs passed, 22 expectations each.
  • Full bun test: 559 pass, 23 platform or PostgreSQL skips, 0 fail, 2415 expectations.
  • Isolated PostgreSQL integration: 17 pass, 0 fail, 184 expectations; ephemeral database removed and absence verified.
  • Typecheck, legacy compatibility typecheck, build, root self-package import, SDK/contracts, no-cloud, contract examples, vendor kit, repository conformance, and portable Claude launch gates pass.
  • Non-printing staged, outgoing-delta, and origin/main branch-range gitleaks scans found no leaks before commit and push.

Operational boundary

  • This PR remains draft and is not merged.
  • Independent exact-head review has not started in this continuation.
  • Migration 0010 remains deployment-blocked under reason login-cleanup-ledger-atomicity until SQL execution and checksum-ledger recording are atomic under the same advisory lock.
  • This PR does not claim auth-capsule A6 completion.

@andrei-hasna
andrei-hasna marked this pull request as draft July 22, 2026 11:01
@andrei-hasna

Copy link
Copy Markdown
Contributor Author

Merge blocked: exact-head review found remaining P1 response-loss ABA and pre-rollback crash-intent defects. Remediation is active in the owned worktree; the remote PR still points to the older 6cbff3b head. Do not merge or deploy migration 0010. Deployment also remains gated on atomic migration-runner task f799e8a5-fc9e-4735-bfb9-8a0c17b90b25.

@andrei-hasna
andrei-hasna force-pushed the codewith/capacius-permission-login-20260721 branch from 6cbff3b to 78f369b Compare July 22, 2026 11:45
@andrei-hasna
andrei-hasna marked this pull request as ready for review July 23, 2026 14:56
@andrei-hasna andrei-hasna changed the title fix(cli): make dangerous permission login fail safely fix(accounts): harden login recovery and cleanup Jul 23, 2026
@andrei-hasna
andrei-hasna marked this pull request as draft July 23, 2026 15:07
@andrei-hasna andrei-hasna changed the title fix(accounts): harden login recovery and cleanup Fix Capacius permissions and exact login recovery ownership Jul 23, 2026
@andrei-hasna
andrei-hasna marked this pull request as ready for review July 23, 2026 15:24
@andrei-hasna
andrei-hasna marked this pull request as draft July 23, 2026 15:27
@andrei-hasna
andrei-hasna marked this pull request as ready for review July 23, 2026 15:42
@andrei-hasna
andrei-hasna marked this pull request as draft July 23, 2026 15:46
@andrei-hasna
andrei-hasna marked this pull request as ready for review July 23, 2026 15:53
@andrei-hasna
andrei-hasna marked this pull request as draft July 23, 2026 15:59
@andrei-hasna
andrei-hasna marked this pull request as ready for review July 23, 2026 16:21
@andrei-hasna
andrei-hasna marked this pull request as draft July 23, 2026 16:25
@andrei-hasna
andrei-hasna marked this pull request as ready for review July 23, 2026 16:45
@andrei-hasna
andrei-hasna marked this pull request as draft July 23, 2026 16:49
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