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

@@ -38,9 +38,9 @@ async fn reads_report_outcomes_for_each_discovery_version() -> TestResult {
PathUri::parse("file:///skills/local/SKILL.md")?,
);
let mut harness = MergeHarness::new(
provider(vec![executor]),
provider(vec![
cloud_skill("work").with_alias_root("skill://Plugin_123"),
executor,
executor_skill("work").with_alias_root("skill://Plugin_123"),
]),
default_config(),
)
@@ -59,7 +59,7 @@ async fn reads_report_outcomes_for_each_discovery_version() -> TestResult {
),
(json!({}), 10_000, "invalid_arguments"),
(json!({"package": "missing"}), 10_000, "package_unavailable"),
(json!({"package": "c99/work"}), 10_000, "unresolved_alias"),
(json!({"package": "e99/work"}), 10_000, "unresolved_alias"),
(
json!({"package": "skill://executor/local"}),
10_000,
@@ -80,27 +80,10 @@ async fn reads_report_outcomes_for_each_discovery_version() -> TestResult {
1,
"response_budget",
),
(
json!({"package": "skill://Plugin_123/work"}),
10_000,
"read_failed",
),
] {
if discovery_version == "v1" && outcome != "success" {
continue;
}
if outcome == "read_failed" {
let config = default_config();
harness.registry.config_contributors()[0].on_config_changed(
&harness.session_store,
&harness.thread_store,
&config,
&TestConfig {
cloud_skill_enabled: false,
..config.clone()
},
);
}
let result =
call_tool_with_budget(&tools, "read", arguments, TruncationPolicy::Bytes(budget))
.await;
@@ -110,7 +93,14 @@ async fn reads_report_outcomes_for_each_discovery_version() -> TestResult {
"{outcome}: {result:?}"
);
expected.push(read_result(outcome, discovery_version));
assert_eq!(harness.catalog_metrics.counters(), expected);
// Successful executor reads also record skill invocations; compare read outcomes only.
let read_counters = harness
.catalog_metrics
.counters()
.into_iter()
.filter(|counter| counter.name == "codex.skills.read.result")
.collect::<Vec<_>>();
assert_eq!(read_counters, expected);
}
}
Ok(())
@@ -119,9 +109,8 @@ async fn reads_report_outcomes_for_each_discovery_version() -> TestResult {
#[tokio::test]
async fn installations_report_outcomes_for_each_discovery_version() -> TestResult {
let harness = MergeHarness::new(
provider(Vec::new()),
provider(vec![
cloud_skill("work").with_alias_root("skill://Plugin_123"),
executor_skill("work").with_alias_root("skill://Plugin_123"),
]),
default_config(),
)
@@ -137,13 +126,13 @@ async fn installations_report_outcomes_for_each_discovery_version() -> TestResul
"all",
),
(
json!({"package": "c0/work", "source": {"kind": "cloud"}}),
json!({"package": "e0/work", "source": {"kind": "executor", "environment_id": "env-1"}}),
10_000,
"success",
"cloud",
"executor",
),
(
json!({"package": "c0/work", "source": {"kind": "executor", "environment_id": "missing"}}),
json!({"package": "e0/work", "source": {"kind": "executor", "environment_id": "missing"}}),
10_000,
"empty",
"executor",
@@ -151,30 +140,30 @@ async fn installations_report_outcomes_for_each_discovery_version() -> TestResul
(json!({}), 10_000, "invalid_arguments", "unparsed"),
(json!({"package": ""}), 10_000, "invalid_package", "all"),
(
json!({"package": "c0/work", "source": {"kind": "executor", "environment_id": ""}}),
json!({"package": "e0/work", "source": {"kind": "executor", "environment_id": ""}}),
10_000,
"invalid_source",
"executor",
),
(
json!({"package": "c0/missing"}),
json!({"package": "e0/missing"}),
10_000,
"package_unavailable",
"all",
),
(
json!({"package": "c99/work"}),
json!({"package": "e99/work"}),
10_000,
"unresolved_alias",
"all",
),
(
json!({"package": "c0/work", "cursor": "invalid"}),
json!({"package": "e0/work", "cursor": "invalid"}),
10_000,
"invalid_cursor",
"all",
),
(json!({"package": "c0/work"}), 1, "response_budget", "all"),
(json!({"package": "e0/work"}), 1, "response_budget", "all"),
] {
let result = call_tool_with_budget(
&tools,