Skip to content

feat: isolate qBraid account profiles - #14

Merged
BeLazy167 merged 6 commits into
mainfrom
feat/org-profiles-and-model-capabilities
Aug 21, 2026
Merged

feat: isolate qBraid account profiles#14
BeLazy167 merged 6 commits into
mainfrom
feat/org-profiles-and-model-capabilities

Conversation

@BeLazy167

@BeLazy167 BeLazy167 commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

One mutable qBraid credential could charge one organization while status and model state described another. Plain Claude settings also exposed a reusable gateway key to project-controlled URLs and hooks.

This adds named, organization-bound profiles with atomic metadata generations. Keys live in Keychain, Credential Locker, or Linux Secret Service. Headless Linux has a documented private file fallback. Each launch owns a private loopback proxy, random local bearer, immutable status snapshot, and capability-aware context policy.

Legacy installs migrate without breaking running sessions. Successful migration removes old plaintext credentials and retired generation secrets. Resume always needs explicit profile confirmation. Project and local Claude settings are excluded from wrapped sessions.

Coordinated contract

qBraid/qbraid-api#1025 preserves Claude Code adaptive thinking, display policy, and effort at the Bedrock boundary.

Required order:

  1. Merge and deploy qBraid/qbraid-api#1025.
  2. Merge this PR.

The cross-repo impact mapper does not index qbraid-code. Its empty result is a coverage gap, not safety evidence.

Validation

  • ShellCheck warning gate
  • Bash syntax gate
  • 91 Unix behavior assertions
  • PowerShell parser over every script and Windows fixture
  • PSScriptAnalyzer error gate
  • Windows Credential Locker fixture added to GitHub Actions
  • Real CLIProxyAPI delayed second-health probe
  • git diff --check

Generated by gpt-5.6-sol using the Prime Agent harness.

Detect macOS listeners with lsof before Bash network redirects.
Prefer GNU stat syntax before the BSD fallback.
Run Credential Locker coverage under Windows PowerShell 5.1.
Use netcat when macOS Bash cannot probe TCP listeners.
Normalize native PowerShell command output before matching.
Preserve the hosted macOS Python path before isolating commands.
Decode captured Windows YAML explicitly as UTF-8.
Use the macOS system lsof outside the isolated test PATH.
Capture expected Windows native-command failures before assertions.
Document installation, organization switching, statusline identity, credentials, model limits, troubleshooting, and removal.
Keep user-provided organization labels marked local even when the API returns a verified name.
@BeLazy167
BeLazy167 merged commit 983d72a into main Aug 21, 2026
6 checks passed
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