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

@@ -43,14 +43,11 @@ impl<S: tracing::Subscriber> Layer<S> for ReadEvents {
}
#[tokio::test]
async fn source_events_cover_cached_cloud_and_explicit_executor_reads() -> TestResult {
let cloud = cloud_skill("work").with_plugin_id(Some("cloud-plugin".into()));
async fn source_events_cover_default_and_explicit_executor_reads() -> TestResult {
let installed = installed_skill("matching", "work")?;
let cloud_provider = provider(vec![cloud.clone()]);
let cloud_reads = cloud_provider.read_requests.clone();
let executor = provider(vec![installed]);
let executor = provider(vec![installed.clone()]);
let executor_reads = executor.read_requests.clone();
let harness = MergeHarness::new(executor, cloud_provider, default_config()).await?;
let harness = MergeHarness::new(executor, default_config()).await?;
harness
.turn_store
.insert(selected_plugins(&[None, Some("env-1:matching")], &[]));
@@ -64,16 +61,14 @@ async fn source_events_cover_cached_cloud_and_explicit_executor_reads() -> TestR
let _interest_cache_guard =
tracing::Dispatch::new(tracing::subscriber::NoSubscriber::default());
async {
for source in ["cloud", "cloud", "executor", "executor"] {
let selector = if source == "executor" {
json!({"kind": source, "environment_id": "env-1"})
} else {
json!({"kind": source})
};
for selector in [
Value::Null,
json!({"kind": "executor", "environment_id": "env-1"}),
] {
call_tool(
&tools,
"read",
json!({"package": cloud.id.0, "source": selector}),
json!({"package": installed.id.0, "source": selector}),
)
.await?;
}
@@ -87,7 +82,7 @@ async fn source_events_cover_cached_cloud_and_explicit_executor_reads() -> TestR
.with_subscriber(subscriber)
.await?;
let expected = ["cloud", "cloud", "executor", "executor"].map(|source| {
let expected = [(); 2].map(|()| {
json!({
"message": "Selected skill read source",
"event.name": "codex.skill_read.source_selected",
@@ -96,21 +91,14 @@ async fn source_events_cover_cached_cloud_and_explicit_executor_reads() -> TestR
"call_id": "skill-test",
"tool_namespace": "skills",
"tool_name": "read",
"skill_source": source,
"skill_source": "executor",
"skill_name": "deploy:work",
"skill_plugin_id": if source == "cloud" { "cloud-plugin" } else { "matching" },
"skill_plugin_id": "matching",
"skill_resource_kind": "main_prompt",
"is_continuation": false,
})
});
assert_eq!(*events.0.lock().unwrap(), expected);
// Both cloud reads are attributable even though the second needs no provider call.
assert_eq!(
(
read_request_keys(&cloud_reads).len(),
read_request_keys(&executor_reads).len()
),
(1, 2),
);
assert_eq!(read_request_keys(&executor_reads).len(), 2);
Ok(())
}