Rinomina: crate akode-*, cartelle akode-rs/ e akode-cli/, binario akode, ~/.akode, AKODE_* (A)
Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
45
akode-rs/guardian-context/src/section.rs
Normal file
45
akode-rs/guardian-context/src/section.rs
Normal file
@@ -0,0 +1,45 @@
|
||||
//! Section identities survive consumer-specific transcript selection and rendering.
|
||||
|
||||
use crate::ConversationTranscriptEntry;
|
||||
use crate::PlannedAction;
|
||||
use crate::PreviousReviews;
|
||||
use crate::RenderedNodeReplEvidence;
|
||||
use crate::RetainedInstructionItem;
|
||||
use crate::TranscriptImages;
|
||||
use crate::TrustedSkills;
|
||||
use crate::TrustedTool;
|
||||
|
||||
/// Ordered evidence with a stable section identity and source-specific content.
|
||||
///
|
||||
/// Variants preserve provenance: transcript entries carry their original roles,
|
||||
/// root messages remain line-role-labeled, and answers are host-verified fragments.
|
||||
/// Conversation, authorization and action evidence retain user-role delivery.
|
||||
/// Host-attested reviews and tool identities use separate developer messages.
|
||||
/// Review actions/rationales and remote tool descriptions remain untrusted.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum ContextSection<T = ConversationTranscriptEntry> {
|
||||
ConversationTranscript {
|
||||
items: Vec<T>,
|
||||
},
|
||||
RootConversation {
|
||||
content: crate::RootConversationContent,
|
||||
},
|
||||
TrustedUserAnswers {
|
||||
items: Vec<crate::TrustedUserAnswer>,
|
||||
},
|
||||
RetainedUserInstructions {
|
||||
items: Vec<RetainedInstructionItem>,
|
||||
},
|
||||
SenderUserMessages {
|
||||
items: Vec<String>,
|
||||
},
|
||||
PlannedAction(PlannedAction),
|
||||
PreviousReviews(PreviousReviews),
|
||||
TrustedTool(TrustedTool),
|
||||
TrustedSkills(TrustedSkills),
|
||||
TranscriptImages(TranscriptImages),
|
||||
NodeReplEvidence(RenderedNodeReplEvidence),
|
||||
PermissionContext {
|
||||
items: Vec<String>,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user