Skip to content

feat: auth vault phase 3 - failover runner, profile isolation (#23) - #33

Closed
getappz wants to merge 6 commits into
masterfrom
worktree-auth-phase3
Closed

feat: auth vault phase 3 - failover runner, profile isolation (#23)#33
getappz wants to merge 6 commits into
masterfrom
worktree-auth-phase3

Conversation

@getappz

@getappz getappz commented Jul 7, 2026

Copy link
Copy Markdown
Owner

auth run: wrap CLI with auto-failover on rate limit (429/rate limit detection, auto-rotate, max 5 retries).
auth isolate add/ls/delete: isolated HOME profiles for parallel sessions.
auth exec: run command with isolated profile HOME.
auth login: login flow in isolated profile, auto-backup on success.
Daemon detection helpers for codex app-server (pgrep/tasklist).
4 new tests for rate limit categorization.

getappz added 4 commits July 7, 2026 12:12
SQLite-backed rotation (smart/round-robin/random), cooldown tracking, health scoring with exponential penalty decay, aliases, project associations. Refactors Auth from Agents subcommand to top-level.
Path traversal validation for agent/profile names.
Extract filter_active() and select_profile() to eliminate duplication.
Remove dead _agent param from smart_pick.
Fix full_rotate_flow to call rotate() public API.
Fix alias test to call activate() public API.
Add round_robin, next, parse_target tests.
Validate parse_target for empty parts.
activate: project mapping only when no explicit profile matched.
cooldown: use space-separated timestamp for SQLite datetime('now') compat.
cooldown errors: emit JSON when --json flag set.
project_set: error on current_dir failure instead of empty path.
algorithm: validate smart/round-robin/random, reject unknown values.
auth run: wrap CLI with auto-failover on rate limit (429/rate limit detection, auto-rotate, max 5 retries).
auth isolate add/ls/delete: isolated HOME profiles for parallel sessions.
auth exec: run command with isolated profile HOME.
auth login: login flow in isolated profile, auto-backup on success.
Daemon detection helpers for codex app-server (pgrep/tasklist).
4 new tests for rate limit categorization.
@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e9e7e463-bc62-4cf2-9e41-b9c9181a7f2a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-auth-phase3

Comment @coderabbitai help to get the list of available commands.

getappz added 2 commits July 7, 2026 12:45
Add Copilot CLI (~/.copilot/auth.json) to auth catalog. All Phase 4 extras (rename, alias, project) already implemented in Phases 1-2.
Encrypt auth files on backup, decrypt on activate.
Key derived via PBKDF2 (SHA-256, 100k iterations) from passphrase.
Passphrase from AGENTFLARE_VAULT_PASSPHRASE env var or interactive prompt.
Unencrypted fallback when no passphrase provided.
3 tests: roundtrip, wrong pw, unique nonces.
Base automatically changed from worktree-auth-phase2 to master July 7, 2026 07:30
@getappz

getappz commented Jul 7, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #34 — rebased on master after Phase 2 merge.

@getappz getappz closed this Jul 7, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 2026
@getappz
getappz deleted the worktree-auth-phase3 branch July 8, 2026 07:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant