aKode fase 2b-2: rimosso login ChatGPT e tutti i sottosistemi solo-ChatGPT

- Login: resta solo chiave API (+ header, Bedrock). Rimossi OAuth/browser,
  device code, refresh/revoke su auth.openai.com, PAT, agent/workload identity,
  runtime agent instance, backend-client e openapi-models, workspace routing.
- Rimossi: generazione immagini (ext + skill imagegen), history notes, plugin
  remoti (catalogo, sync, share), cyber access program, daybreak, cloud config
  e requirements (config_server ora fail-closed), attestation, frozen cloud
  skills, EMA MCP auth, Codex Apps/connettori, ricerca ospitata, header/zstd/
  routing/cookie del backend Codex, fallback OPENAI_API_KEY del realtime.
- Messaggi d'errore senza link a chatgpt.com.
- Chiavi di config legacy accettate e ignorate; feature rimosse = Stage::Removed.
- Test: cancellati solo quelli del codice rimosso; test di sicurezza
  (sandbox estensioni, permessi, redazione, auth storage, requirements)
  adattati. Restano solo fallimenti d'ambiente (code-mode-host/V8, ~/.agents).
- Istruzioni di sistema invariate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 16:20:15 +01:00
parent 82347a58ed
commit 6089fbde91
1573 changed files with 10289 additions and 177679 deletions

View File

@@ -74,7 +74,6 @@ impl ModelResponseInterceptor for Permit {
let mut output_items = 0;
while let Some(event) = stream.next().await {
let metadata_event_type = match &event {
Ok(ResponseEvent::ModelVerifications(_)) => Some("verification"),
Ok(ResponseEvent::TurnModerationMetadata(_)) => Some("moderation"),
Ok(ResponseEvent::SafetyBuffering(_)) => Some("buffering"),
Ok(ResponseEvent::GuardianAssessment(_)) => Some("guardian"),
@@ -322,7 +321,6 @@ async fn model_request_gates_websocket_output_but_not_warmup() -> Result<()> {
"type": "response.metadata", "response_id": "response",
"metadata": {
"guardian": {"item_id": "message", "requires_review": true},
"openai_verification_recommendation": ["trusted_access_for_cyber"],
"openai_chatgpt_moderation_metadata": {"presentation": "inline"},
"type": "safety_buffering", "use_cases": ["cyber"],
"reasons": ["user_risk"], "future_metadata": true
@@ -332,7 +330,6 @@ async fn model_request_gates_websocket_output_but_not_warmup() -> Result<()> {
"type": "response.metadata", "response_id": "response",
"metadata": {
"guardian": {"item_id": "other", "requires_review": "false"},
"openai_verification_recommendation": ["trusted_access_for_cyber"],
"openai_chatgpt_moderation_metadata": {"presentation": "inline"},
"type": "safety_buffering", "use_cases": ["cyber"],
"reasons": ["user_risk"]
@@ -388,11 +385,9 @@ async fn model_request_gates_websocket_output_but_not_warmup() -> Result<()> {
.lock()
.expect("metadata events mutex is not poisoned"),
vec![
"verification",
"moderation",
"buffering",
"guardian",
"verification",
"moderation",
"buffering",
]