aKode fase 2c: eliminato il codice di invio dati (crate analytics, otel-trace-websocket, sentry, esportatori OTLP); /feedback salva solo in locale; chiavi legacy [analytics]/[otel] accettate e ignorate; test di analytics/OTLP/upload rimossi
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
Some checks failed
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
This commit is contained in:
@@ -141,18 +141,13 @@ async fn model_guardian_policy_scores_code_mode_cells(
|
||||
)
|
||||
}
|
||||
};
|
||||
let analytics_server = responses::start_mock_server().await;
|
||||
mount_analytics_capture(&analytics_server, codex_home.path()).await?;
|
||||
MockResponsesConfig::new(&responses_url)
|
||||
.with_model(MODEL)
|
||||
.with_provider_config("supports_websockets = false")
|
||||
.with_approval_policy("on-request")
|
||||
.with_root_config(&format!(
|
||||
"approvals_reviewer = \"auto_review\"\nchatgpt_base_url = \"{}\"",
|
||||
analytics_server.uri(),
|
||||
))
|
||||
.with_root_config("approvals_reviewer = \"auto_review\"")
|
||||
.with_extra_config(&format!(
|
||||
"[mcp_servers.node_repl]\nurl = \"{mcp_url}/mcp\"\ndefault_tools_approval_mode = \"auto\"\n\n[analytics]\nenabled = true{legacy_config}"
|
||||
"[mcp_servers.node_repl]\nurl = \"{mcp_url}/mcp\"\ndefault_tools_approval_mode = \"auto\"{legacy_config}"
|
||||
))
|
||||
.enable_feature(Feature::GuardianApproval)
|
||||
.enable_feature(Feature::CodeModeOnly)
|
||||
@@ -182,7 +177,7 @@ async fn model_guardian_policy_scores_code_mode_cells(
|
||||
state.allow_guardian_review.notify_one();
|
||||
let id = app_server
|
||||
.send_turn_start_request(TurnStartParams {
|
||||
thread_id: thread.id,
|
||||
thread_id: thread.id.clone(),
|
||||
input: vec![UserInput::Text {
|
||||
text: USER_CONTEXT.to_owned(),
|
||||
text_elements: Vec::new(),
|
||||
@@ -203,27 +198,7 @@ async fn model_guardian_policy_scores_code_mode_cells(
|
||||
}
|
||||
for completed_scores in 1..=scores_per_cell {
|
||||
state.allow_luna.notify_one();
|
||||
timeout(TIMEOUT, async {
|
||||
loop {
|
||||
let events = captured_analytics_events(&analytics_server).await;
|
||||
if events
|
||||
.iter()
|
||||
.filter(|event| {
|
||||
event["event_type"] == "codex_guardian_v2_classification"
|
||||
&& matches!(
|
||||
event["event_params"]["outcome"].as_str(),
|
||||
Some("success" | "superseded")
|
||||
)
|
||||
})
|
||||
.count()
|
||||
>= completed_scores
|
||||
{
|
||||
break;
|
||||
}
|
||||
tokio::time::sleep(Duration::from_millis(/*millis*/ 25)).await;
|
||||
}
|
||||
})
|
||||
.await?;
|
||||
wait_for_classification_logs(&codex_home, &thread.id, completed_scores).await?;
|
||||
}
|
||||
continue_parent.notify_one();
|
||||
let completed: TurnCompletedNotification =
|
||||
|
||||
Reference in New Issue
Block a user