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:
@@ -16,7 +16,6 @@ workspace = true
|
||||
codex-agent-identity = { workspace = true }
|
||||
codex-runtime-agent-instance = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
codex-analytics = { workspace = true }
|
||||
codex-api = { workspace = true }
|
||||
codex-config = { workspace = true }
|
||||
codex-context-fragments = { workspace = true }
|
||||
|
||||
@@ -8,9 +8,6 @@ use std::sync::Arc;
|
||||
use std::time::Instant;
|
||||
use std::time::SystemTime;
|
||||
|
||||
use codex_analytics::AnalyticsEventsClient;
|
||||
use codex_analytics::GuardianV2Event;
|
||||
use codex_analytics::GuardianV2EventKind;
|
||||
use codex_core::CodexThread;
|
||||
use codex_core::GuardianAuthorizationVersion;
|
||||
use codex_core::GuardianRootSnapshot;
|
||||
@@ -62,7 +59,6 @@ pub(super) struct Classification {
|
||||
pub(super) score_progress: Arc<GuardianV2ScoreProgress>,
|
||||
pub(super) parent_model: Option<Arc<ModelInfo>>,
|
||||
pub(super) metrics: Option<Arc<dyn ExtensionMetrics>>,
|
||||
pub(super) analytics: Option<Arc<AnalyticsEventsClient>>,
|
||||
pub(super) sampled_at: SystemTime,
|
||||
pub(super) tool_call_index: usize,
|
||||
pub(super) event_sink: Arc<dyn ExtensionEventSink>,
|
||||
@@ -116,7 +112,6 @@ impl Classification {
|
||||
score_progress,
|
||||
parent_model,
|
||||
metrics,
|
||||
analytics,
|
||||
sampled_at,
|
||||
tool_call_index,
|
||||
event_sink,
|
||||
@@ -410,21 +405,6 @@ impl Classification {
|
||||
outcome,
|
||||
result.is_err().then_some(failure_reason),
|
||||
);
|
||||
if let Some(analytics) = analytics {
|
||||
analytics.track_guardian_v2_event(GuardianV2Event {
|
||||
thread_id: thread_id.clone(),
|
||||
turn_id: turn_id.clone(),
|
||||
item_id: Some(call_id),
|
||||
model: parent_model.as_ref().map(|model| model.slug.clone()),
|
||||
occurred_at_ms: codex_analytics::now_unix_millis(),
|
||||
kind: GuardianV2EventKind::Classification {
|
||||
guardian_context_mode: context_mode.as_str(),
|
||||
outcome,
|
||||
risk_level: classification_risk,
|
||||
duration_ms: u64::try_from(duration.as_millis()).unwrap_or(u64::MAX),
|
||||
},
|
||||
});
|
||||
}
|
||||
if matches!(result, Ok(ClassificationOutcome::Scored)) {
|
||||
truncations.emit(metrics.as_deref());
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ use std::sync::Arc;
|
||||
use std::time::Instant;
|
||||
use std::time::SystemTime;
|
||||
|
||||
use codex_analytics::AnalyticsEventsClient;
|
||||
use codex_core::context::GuardianContextMode;
|
||||
use codex_core::context::GuardianReviewEvidence;
|
||||
use codex_core::context::NodeReplReviewEvidence;
|
||||
@@ -161,7 +160,6 @@ impl GuardianV2Extension {
|
||||
}
|
||||
let metrics = score_progress.metrics.clone();
|
||||
let context_mode = GuardianContextMode::from_history(input.conversation_history.as_ref());
|
||||
let analytics = input.session_store.get::<AnalyticsEventsClient>();
|
||||
let sampled_at = SystemTime::now();
|
||||
let Some(conversation) = input.thread_store.get::<ConversationBackend>() else {
|
||||
let index = score_progress.observe(&input);
|
||||
@@ -411,7 +409,6 @@ impl GuardianV2Extension {
|
||||
score_progress,
|
||||
parent_model,
|
||||
metrics,
|
||||
analytics,
|
||||
sampled_at,
|
||||
tool_call_index,
|
||||
event_sink,
|
||||
|
||||
@@ -85,7 +85,7 @@ impl ThreadLifecycleContributor<Config> for GuardianExtension {
|
||||
let (mut options, state) = context.thread_options(kind, snapshot).await;
|
||||
if matches!(
|
||||
kind,
|
||||
codex_analytics::GuardianReviewSessionKind::EphemeralForked
|
||||
codex_guardian_reviewer::GuardianReviewSessionKind::EphemeralForked
|
||||
) {
|
||||
options.config.ephemeral = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user