Files
codex/codex-rs/guardian-context/Cargo.toml
felixxia-oai 2554239561 Move trusted tool metadata into shared Guardian context (#43597)
## What changed

Represent host-verified tool metadata as `TrustedTool` in `codex-guardian-context` and collect it through an async-only context section. Route Guardian v2 sampling through that section while preserving separate developer-message delivery and the 512-token rendering budget. Omit tool metadata from debug output.

## Testing

Move the rendering-budget test into the shared crate, extend registry coverage for async-only collection and debug redaction, and narrow the scoped approval test to messages tagged `guardian.trusted_tool`.

GitOrigin-RevId: ee7cb4e9b9ceced70438cb58060d1a2973e1dc6a
2026-09-07 21:29:31 +00:00

23 lines
451 B
TOML

[package]
edition.workspace = true
license.workspace = true
name = "codex-guardian-context"
version.workspace = true
[lib]
doctest = false
name = "codex_guardian_context"
path = "src/lib.rs"
[lints]
workspace = true
[dependencies]
codex-context-fragments = { workspace = true }
codex-history = { workspace = true }
codex-protocol = { workspace = true }
serde_json = { workspace = true }
[dev-dependencies]
pretty_assertions = { workspace = true }