Skip to content

feat(ai): Cursor subscription canary lane + provider scenario matrix - #243

Merged
Pigbibi merged 10 commits into
mainfrom
fix/aab-provider-opt-20260917
Sep 17, 2026
Merged

Pigbibi merged 10 commits into
mainfrom
fix/aab-provider-opt-20260917

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Harden dormant Cursor provider lane: contracts, resolve_execution_adapter, trusted policy, health readiness, rate-limit lock
  • Drop redundant AI_GATEWAY_CURSOR_ENABLED; gate Cursor like Codex (subscription policy + roster)
  • Named provider scenarios with adaptive defaults / forced pins; Codex default, Cursor canary-only for drift_analysis/research_summary
  • Gateway rejects Cursor on promotion/optimization; fallback stays off by default; API never substitutes subscription execute
  • Offline audit follow-ups: strict review JSON, empty-path medium risk, 401/403/429 mapping, telemetry without raw output, freeze legacy codex_audit_service deploy
  • VPS canary unblock: AppArmor profile + drop unsupported --exclude-workspace-context + AI_GATEWAY_CURSOR_HOME (31838f8)

Test plan

  • Provider scenario / subscription / contract / hardening unit tests
  • Consumer wiring tests (diagnosis, briefing, dual-review, CN/SOXL where env allows)
  • VPS AppArmor/sandbox repair (official profile, userns, bubblewrap); sandbox stays enabled
  • VPS canaries (in-process): research_task_diagnosis, portfolio_proposal_diagnosis, daily_briefing
  • Negative: Cursor on promotion_review / optimization → cursor_stage_not_canary
  • AI_GATEWAY_CURSOR_FALLBACK_ENABLED remains false

Pigbibi and others added 8 commits September 17, 2026 23:59
Align execution provider contracts, centralize adapter selection, trust-check Cursor policy files, expose subscription research readiness on /healthz, and lock the analyze/review rate limiter.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Define an explicit scenario matrix so research diagnosis/briefing can adopt
Cursor only when eligible, while promotion/codegen stay Codex-fixed and
dormant by default.

Co-authored-by: Cursor <cursoragent@cursor.com>
Admission already requires request selection, trusted spend policy, and a
fresh roster. A separate AI_GATEWAY_CURSOR_ENABLED switch duplicated that
and diverged from other providers.

Co-authored-by: Cursor <cursoragent@cursor.com>
…atus mapping

Complete remaining provider-opt audit items offline: strict review JSON,
medium risk for empty paths, 401/403/429 PermissionError mapping,
telemetry without raw output, and freeze legacy codex_audit_service deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Treat Cursor as subscription capacity like Codex (not API budget), give each
scenario smart defaults, and fail closed on incompatible forced
provider/model/effort overrides. Wire remaining research consumers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Gateway rejects Cursor outside drift_analysis/research_summary; fallback stays
off by default and never covers promotion/codegen. Remaining research scripts
use scenario helpers with fixed Codex pins.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi Pigbibi changed the title fix(gateway): harden dormant Cursor provider lane without enabling it feat(ai): Cursor subscription canary lane + provider scenario matrix Sep 17, 2026
Pigbibi and others added 2 commits September 18, 2026 00:58
Current Cursor subscription rejects --exclude-workspace-context, and the
root-run gateway needs AI_GATEWAY_CURSOR_HOME to use the CLI login.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document diagnosis/portfolio/briefing PASS and stage negative controls
after AppArmor and adapter fixes on the audit bridge host.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit 7c20df4 into main Sep 17, 2026
4 checks passed
@Pigbibi
Pigbibi deleted the fix/aab-provider-opt-20260917 branch September 17, 2026 17:07
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