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:
@@ -1,10 +1,9 @@
|
||||
//! Exercises async approval and authorization at the host boundary while cleanup is gated.
|
||||
|
||||
use super::*;
|
||||
use crate::GuardianApprovalRequestSource;
|
||||
use crate::GuardianReviewedAction;
|
||||
use crate::ReviewMetadata;
|
||||
use codex_analytics::AnalyticsEventsClient;
|
||||
use codex_analytics::GuardianApprovalRequestSource;
|
||||
use codex_analytics::GuardianReviewedAction;
|
||||
use codex_extension_api::ExtensionData;
|
||||
use codex_otel::SessionTelemetry;
|
||||
use codex_protocol::ThreadId;
|
||||
@@ -82,11 +81,7 @@ impl ReviewHost for GatedHost {
|
||||
_: &(),
|
||||
_: ReviewDeadline,
|
||||
cancellation: &CancellationToken,
|
||||
) -> (
|
||||
GuardianReviewOutcome,
|
||||
GuardianReviewAnalyticsResult,
|
||||
Option<()>,
|
||||
) {
|
||||
) -> (GuardianReviewOutcome, GuardianReviewDetails, Option<()>) {
|
||||
self.started.notify_one();
|
||||
cancellation.cancelled().await;
|
||||
self.cleaning.notify_one();
|
||||
@@ -97,7 +92,7 @@ impl ReviewHost for GatedHost {
|
||||
GuardianReviewOutcome::Completed(
|
||||
crate::parse_guardian_assessment(r#"{"outcome":"deny"}"#).unwrap(),
|
||||
),
|
||||
GuardianReviewAnalyticsResult::without_session(),
|
||||
GuardianReviewDetails::without_session(),
|
||||
Some(()),
|
||||
)
|
||||
}
|
||||
@@ -157,7 +152,6 @@ async fn async_approval_revalidates_without_waiting_for_tracked_cleanup(state: A
|
||||
"test".into(),
|
||||
SessionSource::Exec,
|
||||
);
|
||||
let analytics = AnalyticsEventsClient::disabled();
|
||||
let action = json!({});
|
||||
let request = ReviewRequest {
|
||||
serving_assessment: None,
|
||||
@@ -182,8 +176,6 @@ async fn async_approval_revalidates_without_waiting_for_tracked_cleanup(state: A
|
||||
timeout: Some(crate::REVIEW_TIMEOUT),
|
||||
model: &model,
|
||||
telemetry: &telemetry,
|
||||
log_assessments: false,
|
||||
analytics: &analytics,
|
||||
metrics: None,
|
||||
};
|
||||
let decision = request.review(
|
||||
|
||||
Reference in New Issue
Block a user