mirror of
https://github.com/openai/codex.git
synced 2026-10-25 15:56:38 +00:00
## What changed - Retain completed synchronous Guardian reviews as structured records until the async scorer builds its classification input. - Render and bound review correlation, action, rationale, and full evidence body with the async scorer's transcript truncation marker. - Extend the Guardian V2 integration test to verify oversized action and rationale content is truncated and the resulting review evidence remains bounded. GitOrigin-RevId: 0000ba77b810748e34254dd00df4a69f8492e175
113 lines
5.4 KiB
Rust
113 lines
5.4 KiB
Rust
//! Context fragments injected into model input.
|
|
|
|
mod approved_command_prefix_saved;
|
|
mod apps_instructions;
|
|
mod available_plugins_instructions;
|
|
mod base_instructions;
|
|
mod compaction_summary;
|
|
mod contextual_user_message;
|
|
mod current_time_reminder;
|
|
mod developer_instructions;
|
|
mod environment_context;
|
|
mod environments_instructions;
|
|
mod guardian_approved_action;
|
|
mod guardian_followup_review_reminder;
|
|
mod guardian_node_repl_policy;
|
|
mod guardian_policy;
|
|
mod guardian_review_evidence;
|
|
mod hook_additional_context;
|
|
mod image_resize_notice;
|
|
mod inter_agent_completion_message;
|
|
mod inter_agent_message;
|
|
mod internal_model_context;
|
|
mod legacy_apply_patch_exec_command_warning;
|
|
mod legacy_model_mismatch_warning;
|
|
mod legacy_unified_exec_process_limit_warning;
|
|
mod model_switch_instructions;
|
|
mod multi_agent_mode_instructions;
|
|
mod multi_agent_role_instructions;
|
|
mod multi_agent_usage_hint;
|
|
mod network_rule_saved;
|
|
mod node_repl_review_evidence;
|
|
mod permissions_instructions;
|
|
mod personality_spec_instructions;
|
|
mod plugin_instructions;
|
|
mod realtime_delegation;
|
|
mod realtime_end_instructions;
|
|
mod realtime_start_instructions;
|
|
mod realtime_start_with_instructions;
|
|
mod recommended_plugins_instructions;
|
|
mod rollout_budget;
|
|
mod subagent_notification;
|
|
mod token_budget_context;
|
|
mod turn_aborted;
|
|
mod unsupported_media;
|
|
mod user_instructions;
|
|
mod user_shell_command;
|
|
pub(crate) mod world_state;
|
|
|
|
pub(crate) use approved_command_prefix_saved::APPROVED_COMMAND_PREFIX_SAVED_MESSAGE_PREFIX;
|
|
pub(crate) use approved_command_prefix_saved::ApprovedCommandPrefixSaved;
|
|
pub(crate) use apps_instructions::AppsInstructions;
|
|
pub(crate) use available_plugins_instructions::AvailablePluginsInstructions;
|
|
pub(crate) use base_instructions::BaseInstructionsFragment;
|
|
pub(crate) use codex_context_fragments::AdditionalContextDeveloperFragment;
|
|
pub(crate) use codex_context_fragments::AdditionalContextUserFragment;
|
|
pub use codex_context_fragments::ContextualUserFragment;
|
|
pub(crate) use compaction_summary::CompactionSummary;
|
|
pub(crate) use contextual_user_message::is_contextual_user_fragment;
|
|
pub(crate) use contextual_user_message::parse_visible_hook_prompt_message;
|
|
pub(crate) use current_time_reminder::CurrentTimeReminder;
|
|
pub(crate) use developer_instructions::DeveloperInstructions;
|
|
pub(crate) use environments_instructions::EnvironmentsInstructions;
|
|
pub(crate) use guardian_approved_action::GuardianApprovedAction;
|
|
pub(crate) use guardian_followup_review_reminder::GuardianFollowupReviewReminder;
|
|
pub(crate) use guardian_node_repl_policy::GuardianNodeReplPolicy;
|
|
pub(crate) use guardian_policy::GuardianPolicy;
|
|
pub use guardian_review_evidence::GuardianReviewEvidence;
|
|
pub use guardian_review_evidence::GuardianReviewEvidenceFragment;
|
|
pub use guardian_review_evidence::GuardianReviewEvidenceRecord;
|
|
pub(crate) use hook_additional_context::HookAdditionalContext;
|
|
pub(crate) use image_resize_notice::ImageResizeNotice;
|
|
pub(crate) use image_resize_notice::ImageResizeNoticeSource;
|
|
pub(crate) use image_resize_notice::ResizedImage;
|
|
pub(crate) use inter_agent_completion_message::InterAgentCompletionMessage;
|
|
pub(crate) use inter_agent_message::InterAgentMessage;
|
|
pub(crate) use inter_agent_message::InterAgentMessageType;
|
|
pub use internal_model_context::InternalContextSource;
|
|
pub use internal_model_context::InternalModelContextFragment;
|
|
pub use internal_model_context::InvalidInternalContextSource;
|
|
pub(crate) use legacy_apply_patch_exec_command_warning::LegacyApplyPatchExecCommandWarning;
|
|
pub(crate) use legacy_model_mismatch_warning::LegacyModelMismatchWarning;
|
|
pub(crate) use legacy_unified_exec_process_limit_warning::LegacyUnifiedExecProcessLimitWarning;
|
|
pub(crate) use model_switch_instructions::ModelSwitchInstructions;
|
|
pub(crate) use multi_agent_mode_instructions::MultiAgentModeInstructions;
|
|
pub(crate) use multi_agent_role_instructions::MultiAgentRoleInstructions;
|
|
pub(crate) use multi_agent_usage_hint::MultiAgentUsageHint;
|
|
pub(crate) use network_rule_saved::NetworkRuleSaved;
|
|
pub use node_repl_review_evidence::NodeReplReviewEvidence;
|
|
pub(crate) use node_repl_review_evidence::NodeReplReviewEvidenceMode;
|
|
pub(crate) use node_repl_review_evidence::node_repl_review_evidence_mode;
|
|
pub use permissions_instructions::ApprovalPromptContext;
|
|
pub use permissions_instructions::PermissionsInstructions;
|
|
pub(crate) use personality_spec_instructions::PersonalitySpecInstructions;
|
|
pub(crate) use plugin_instructions::PluginInstructions;
|
|
pub(crate) use realtime_delegation::RealtimeDelegation;
|
|
pub(crate) use realtime_delegation::RealtimeDelegationSource;
|
|
pub(crate) use realtime_end_instructions::RealtimeEndInstructions;
|
|
pub(crate) use realtime_start_instructions::RealtimeStartInstructions;
|
|
pub(crate) use realtime_start_with_instructions::RealtimeStartWithInstructions;
|
|
pub(crate) use recommended_plugins_instructions::RecommendedPluginsInstructions;
|
|
pub(crate) use rollout_budget::RolloutBudgetContext;
|
|
pub(crate) use subagent_notification::SubagentNotification;
|
|
pub(crate) use token_budget_context::AutoCompactFallbackPrompt;
|
|
pub(crate) use token_budget_context::ContextWindowGuidance;
|
|
pub(crate) use token_budget_context::TokenBudgetContext;
|
|
pub(crate) use token_budget_context::TokenBudgetRemainingContext;
|
|
pub(crate) use token_budget_context::TokenBudgetReminder;
|
|
pub(crate) use turn_aborted::TurnAborted;
|
|
pub(crate) use unsupported_media::UnsupportedMedia;
|
|
pub(crate) use user_instructions::UserInstructions;
|
|
pub(crate) use user_shell_command::UserShellCommand;
|
|
pub(crate) use world_state::ManagedDeveloperInstructions;
|