pub enum NamespaceAction {
SetStandard {
namespace: String,
id: String,
parent: Option<String>,
governance: Option<String>,
},
GetStandard {
namespace: String,
inherit: bool,
},
ClearStandard {
namespace: String,
},
BatmanPolicy {
atomise_threshold: u32,
atom_max_tokens: u32,
max_reflection_depth: u32,
classify_mode: String,
},
}Variants§
SetStandard
Bind a namespace to a standard memory. The memory’s
metadata.governance carries the per-namespace
GovernancePolicy (auto_atomise / auto_atomise_mode /
auto_classify_kind / max_reflection_depth /
write/promote/delete/approver/inherit).
Equivalent to the memory_namespace_set_standard MCP tool. If
--governance is provided, the JSON object is merged into the
standard memory’s metadata.governance before the bind — the
merge preserves keys outside the typed GovernancePolicy
surface (e.g. require_approval_above_depth).
Fields
id: StringStandard memory id (UUID). Create the memory first with
ai-memory store and capture its id.
parent: Option<String>Optional parent namespace; sets the inheritance chain
namespace_meta.parent_namespace in the same write.
governance: Option<String>Optional governance JSON blob to merge into the standard
memory’s metadata.governance. Example:
{"auto_atomise":true,"auto_atomise_mode":"synchronous", "auto_classify_kind":"regex_then_llm", "max_reflection_depth":3,"write":"owner","promote":"any", "delete":"owner","approver":"human","inherit":true}.
GetStandard
Print the current standard pointer for a namespace. With
--inherit, walks the parent chain and returns every standard
up to the root.
Fields
ClearStandard
Drop the standard pointer for a namespace. The standard memory
itself is not deleted; only the namespace_meta.standard_id
pointer is cleared.
BatmanPolicy
Convenience: build the canonical Batman-active GovernancePolicy
JSON blob and print it to stdout. Pipe into set-standard --governance "$(...)" or paste into a memory_store metadata.governance field.
Trait Implementations§
Source§impl FromArgMatches for NamespaceAction
impl FromArgMatches for NamespaceAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for NamespaceAction
impl Subcommand for NamespaceAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for NamespaceAction
impl RefUnwindSafe for NamespaceAction
impl Send for NamespaceAction
impl Sync for NamespaceAction
impl Unpin for NamespaceAction
impl UnsafeUnpin for NamespaceAction
impl UnwindSafe for NamespaceAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more