Skip to main content

Module namespace

Module namespace 

Source

Structs§

AgentRegistration
Approval
A single approval vote recorded on a consensus-gated pending action (Task 1.10).
AtomisationPolicy
#880 — WT-1-D + Form 2 atomisation sub-struct of GovernancePolicy. Groups the five atomisation knobs so a new Form 2 / Cluster-F knob lands on this struct without cascading through every literal site.
BindAgentPubkeyBody
#1539 — body for PUT /api/v1/agents/{id}/pubkey.
CorePolicy
#880 — access-control + inheritance + reflection-depth sub-struct of GovernancePolicy. Every field is flattened back into the parent on the wire so metadata.governance JSON / TOML configs remain byte-identical to the pre-#880 flat layout.
ExportPolicy
#880 — QW-1 reflection-export sub-struct of GovernancePolicy. Single-field cluster preserved as its own sub-struct so future reflection-side knobs (e.g. a v0.8 retention sweep) land here without churning literal sites.
GovernancePolicy
Governance policy attached to a namespace’s standard memory (stored in metadata.governance).
KindClassificationPolicy
#880 — Form 6 memory-kind auto-classifier sub-struct of GovernancePolicy.
MultistepPolicy
#880 — Form 3 multistep-ingest prompt sizing sub-struct of GovernancePolicy.
NamespaceMetaEntry
v0.6.2 (S35): a namespace-standard metadata row the originating node wants propagated to peers. set_namespace_standard writes to namespace_meta locally; without federation, a peer sees the standard memory (fanned out via broadcast_store_quorum) but not the (namespace, standard_id, parent_namespace) tuple, so inheritance-chain walks on the peer fall back to auto_detect_parent and can miss an explicit parent link.
PendingAction
Row returned by db::list_pending_actions.
PendingDecision
v0.6.2 (S34): a pending-action decision (approve / reject) the originating node wants propagated to peers so callers on any peer see consistent state (approve/reject on node-2 → decision must reach node-1 etc.).
PersonaPolicy
#880 — QW-2 persona auto-regeneration + file-backed export sub-struct of GovernancePolicy.
RegisterAgentBody
SynthesisPolicy
#880 — Form 1 synthesis curator + legacy per-pair classifier sub-struct of GovernancePolicy.

Enums§

ApproverType
Who approves actions gated by GovernanceLevel::Approve.
AutoAtomiseMode
v0.7.x Form 2 — atomisation execution mode. Stored inside [GovernancePolicy::auto_atomise_mode].
GovernanceDecision
The outcome of a governance check. Callers MAY execute on Allow, MUST reject on Deny, and SHOULD queue + return the pending_id on Pending.
GovernanceLevel
Who is permitted to perform a governed action.
GovernedAction
Actions that governance gates. Used as the action_type column value in pending_actions and as the discriminator for enforcement calls.
MemoryKindAutoClassify
v0.7.x Form 6 — namespace-policy enum for the pre_store::auto_classify_kind substrate hook. See [GovernancePolicy::auto_classify_kind].
MemoryScope
v0.7.0 multi-agent literal-sweep (scanner B, finding F-B2.x) — typed closed-set discriminator for memory.metadata.scope (Task 1.5). Paired with the VALID_SCOPES string allowlist + the validator at crate::validate::validate_scope; the parity test tests/memory_scope_count_invariant.rs asserts both stay in lockstep.
SynthesisFailureMode
v0.7.0 Cluster-B (issue #767) — per-namespace enum for the Form 1 synthesis-failure policy. See [GovernancePolicy::synthesis_failure_mode].

Constants§

AGENTS_NAMESPACE
Namespace reserved for agent registrations (Task 1.3).
MAX_NAMESPACE_DEPTH
Maximum number of path segments in a hierarchical namespace (Task 1.4). alphaone/engineering/platform/team/squad/pod/role/agent = 8 levels.
VALID_AGENT_TYPES
Closed set of agent types. Extend carefully — values are persisted.
VALID_SCOPES
Closed set of visibility scopes stamped into metadata.scope (Task 1.5). Controls which agents can see a memory via hierarchical namespace matching. Memories without a scope field are treated as private by the query layer.

Functions§

agent_registration_title
Canonical title for an agent-registration row in AGENTS_NAMESPACEagent:<agent_id>. Both storage backends CONSTRUCT registration rows with this title and the subscription path MATCHES on it, so the shape must come from one place (#1558).
namespace_ancestors
Ancestors of a namespace, ordered most-specific-first (including the namespace itself as the first element).
namespace_depth
Number of /-delimited segments in a namespace path.
namespace_parent
Parent of a hierarchical namespace, or None for flat / empty inputs.