moonrockz/mission-control-server/core does not have a README file

    DocumentScorer

    Open-closed extension point for deterministic document quality scoring. Each scorer returns (deduction, findings) against a document and the workspace's loaded Data Dictionary.

    MetadataDeriver

    pub(open) trait MetadataDeriver {
    fn infer(Self, Located) -> Inquiry[DerivedMetadata]
    }

    Open-closed strategy for deriving default project title and caption from a located anchor (and optionally VCS/file details via Inquiry).

    MountProvider

    Open-closed extension point for resolving configured mounts.

    SourceAdapter

    Open-closed extension point for discovering in-tree workspace sources.

    VcsBackend

    pub(open) trait VcsBackend {
    fn id(Self) ->
    BackendId

    fn locate(Self, FolderPath) -> Inquiry[Located?]
    fn observe(Self, FolderPath) -> Inquiry[Observation]
    }

    Open-closed extension point for VCS backends (such as Git or Jujutsu). Backends are pure 4-target packages that return Inquiry[T] trees.

    AddressError

    pub(all) suberror AddressError {
    NotServerAddress(String)
    } derive(Eq,
    Debug
    )

    Raised when a text is not the address of a server. It has the text.

    BaseFolderError

    pub(all) suberror BaseFolderError {
    MissingVariable(String)
    NotAbsolute(variable~ : String, value~ : String)
    } derive(Eq,
    Debug
    )

    Raised when the environment does not give a base folder.

    BaseFolderError::message

    fn BaseFolderError::message(self : BaseFolderError) -> String

    The problem, as a sentence for people.

    DictionaryConceptError

    pub(all) suberror DictionaryConceptError {
    EmptyLabel
    EmptyDefinition
    ExistingTurtleInvalid(String)
    } derive(Eq,
    Debug
    )

    Raised when creating or merging a local SKOS concept fails validation or parsing.

    DictionaryConceptError::equal

    automatically derived

    DictionaryConceptError::message

    fn DictionaryConceptError::message(self : DictionaryConceptError) -> String

    Human-readable message for a DictionaryConceptError.

    DictionaryConceptError::not_equal

    automatically derived

    DictionaryConceptError::to_repr

    automatically derived

    DuplicateAdapter

    pub(all) suberror DuplicateAdapter {
    DuplicateAdapter(
    AdapterId
    )
    } derive(Eq,
    Debug
    )

    Raised when constructing SourceAdapters with duplicate adapter IDs.

    DuplicateAdapter::equal

    automatically derived

    DuplicateAdapter::not_equal

    fn DuplicateAdapter::not_equal(x : DuplicateAdapter, y : DuplicateAdapter) -> Bool
    automatically derived

    DuplicateAdapter::to_repr

    automatically derived

    DuplicateBackend

    pub(all) suberror DuplicateBackend {
    DuplicateBackend(
    BackendId
    )
    } derive(Eq,
    Debug
    )

    Raised when constructing a Backends registry with duplicate backend IDs.

    DuplicateBackend::equal

    automatically derived

    DuplicateBackend::not_equal

    fn DuplicateBackend::not_equal(x : DuplicateBackend, y : DuplicateBackend) -> Bool
    automatically derived

    DuplicateBackend::to_repr

    automatically derived

    DuplicateMountProvider

    pub(all) suberror DuplicateMountProvider {
    DuplicateMountProvider(
    MountKind
    )
    } derive(Eq,
    Debug
    )

    Raised when constructing MountProviders with duplicate mount kinds.

    DuplicateMountProvider::equal

    automatically derived

    DuplicateMountProvider::not_equal

    automatically derived

    DuplicateMountProvider::to_repr

    automatically derived

    FolderPathError

    pub(all) suberror FolderPathError {
    EmptyPath
    RelativePath(String)
    } derive(Eq,
    Debug
    )

    Raised when a text is not an absolute folder path.

    OpenWorkspaceError

    Raised when opening a workspace fails in the pure domain core.

    OpenWorkspaceError::equal

    automatically derived

    OpenWorkspaceError::not_equal

    automatically derived

    OpenWorkspaceError::to_repr

    automatically derived

    PortError

    pub(all) suberror PortError {
    OutOfRange(Int)
    } derive(Eq,
    Debug
    )

    Raised when a number is not a port.

    ProjectFileError

    pub(all) suberror ProjectFileError {
    Damaged(String)
    NewerFormat(Int)
    } derive(Eq,
    Debug
    )

    Raised when a text is not a project file (projects.toml) that this version can read.

    ProjectFileError::equal

    automatically derived

    ProjectFileError::not_equal

    fn ProjectFileError::not_equal(x : ProjectFileError, y : ProjectFileError) -> Bool
    automatically derived

    ProjectFileError::to_repr

    automatically derived

    ProjectRefError

    pub(all) suberror ProjectRefError {
    NoMatch(String)
    Ambiguous(String, ReadOnlyArray[
    Project
    ])
    InvalidRef(String)
    } derive(Eq,
    Debug
    )

    Raised when a text does not select one project.

    ProjectRefError::equal

    automatically derived

    ProjectRefError::not_equal

    fn ProjectRefError::not_equal(x : ProjectRefError, y : ProjectRefError) -> Bool
    automatically derived

    ProjectRefError::to_repr

    automatically derived

    SecretError

    pub(all) suberror SecretError {
    TooShort(Int)
    } derive(Eq,
    Debug
    )

    Raised when bytes are not a secret. It never has the bytes.

    SecretError::equal

    fn SecretError::equal(SecretError, SecretError) -> Bool
    automatically derived

    SecretError::not_equal

    fn SecretError::not_equal(x : SecretError, y : SecretError) -> Bool
    automatically derived

    SecretError::to_repr

    automatically derived

    SeenWorkspacesError

    pub(all) suberror SeenWorkspacesError {
    DuplicateRoot(FolderPath)
    } derive(Eq,
    Debug
    )

    Raised when constructing a SeenWorkspaces set with duplicate roots.

    SeenWorkspacesError::equal

    automatically derived

    SeenWorkspacesError::not_equal

    automatically derived

    SeenWorkspacesError::to_repr

    automatically derived

    ServerRecordError

    pub(all) suberror ServerRecordError {
    Damaged(RecordDamage)
    NewerFormat(Int)
    } derive(Eq,
    Debug
    )

    Raised when a text is not a server record that this version can read.

    ServerRecordError::equal

    automatically derived

    ServerRecordError::not_equal

    fn ServerRecordError::not_equal(x : ServerRecordError, y : ServerRecordError) -> Bool
    automatically derived

    ServerRecordError::to_repr

    automatically derived

    TimestampError

    pub(all) suberror TimestampError {
    InvalidFormat(String)
    InvalidDate(String)
    InvalidTime(String)
    InvalidOffset(String)
    BeforeEpoch(String)
    } derive(Eq,
    Debug
    )

    Raised when an RFC 3339 offset datetime cannot be parsed into UnixMillis.

    TimestampError::equal

    automatically derived

    TimestampError::not_equal

    fn TimestampError::not_equal(x : TimestampError, y : TimestampError) -> Bool
    automatically derived

    TimestampError::to_repr

    automatically derived

    ToolNameError

    pub(all) suberror ToolNameError {
    InvalidToolName(text~ : String, rule~ : ToolNameRule)
    } derive(Eq,
    Debug
    )

    Raised when a text is not a valid external tool name.

    ToolNameError::equal

    automatically derived

    ToolNameError::not_equal

    fn ToolNameError::not_equal(x : ToolNameError, y : ToolNameError) -> Bool
    automatically derived

    ToolNameError::to_repr

    automatically derived

    UnknownProject

    Raised when no project in the list has the ID.

    UnknownProject::equal

    automatically derived

    UnknownProject::not_equal

    fn UnknownProject::not_equal(x : UnknownProject, y : UnknownProject) -> Bool
    automatically derived

    UnknownProject::to_repr

    automatically derived

    WorkflowConfigError

    pub(all) suberror WorkflowConfigError {
    InvalidPreset(String)
    ScorecardOutOfRange(Int)
    } derive(Eq,
    Debug
    )

    Raised when saving a workspace workflow configuration fails validation.

    WorkflowConfigError::equal

    automatically derived

    WorkflowConfigError::message

    fn WorkflowConfigError::message(self : WorkflowConfigError) -> String

    Human-readable error message for a WorkflowConfigError.

    WorkflowConfigError::not_equal

    automatically derived

    WorkflowConfigError::to_repr

    automatically derived

    Admission

    Typestate step 4: result of admitting a Located target into ProjectList.

    Admission::equal

    fn Admission::equal(Admission, Admission) -> Bool
    automatically derived

    Admission::not_equal

    fn Admission::not_equal(x : Admission, y : Admission) -> Bool
    automatically derived

    Admission::to_repr

    automatically derived

    Anchor

    pub(all) enum Anchor {
    Folder(FolderPath)
    Repository(backend~ :
    BackendId
    , store~ : FolderPath, seen~ : SeenWorkspaces)
    } derive(Eq,
    Debug
    )

    What anchors a project in Mission Control: either one plain folder (always exactly one workspace) or a VCS repository store (zero or more peer workspaces).

    Anchor::backend

    The VCS backend identifier of the anchor (folder for plain folders).

    Anchor::check_folder

    fn Anchor::check_folder(self : Anchor) -> FolderPath

    The folder that the server checks to determine Project.folder state.

    Anchor::display_folder

    fn Anchor::display_folder(self : Anchor) -> FolderPath

    Primary folder path displayed for the project (plain folder, enclosing repo root for .git, first remembered checkout, or the bare store path).

    Anchor::equal

    fn Anchor::equal(Anchor, Anchor) -> Bool
    automatically derived

    Anchor::name

    fn Anchor::name(self : Anchor) -> String

    Human-readable repository or folder name derived from the anchor. For a normal Git .git directory, uses the enclosing checkout folder name. For a bare *.git directory, strips the trailing .git suffix.

    Anchor::not_equal

    fn Anchor::not_equal(x : Anchor, y : Anchor) -> Bool
    automatically derived

    Anchor::same_anchor

    fn Anchor::same_anchor(self : Anchor, other : Anchor) -> Bool

    True when two anchors refer to the same plain folder or the same backend repository store.

    Anchor::to_repr

    automatically derived

    Backends

    type Backends

    Priority-ordered registry of VCS backends; plain folder is the total fallback.

    Backends::Backends

    fn Backends::Backends(list : ArrayView[&VcsBackend]) -> Backends raise DuplicateBackend

    Constructs a validated Backends registry with unique backend IDs.

    Backends::empty

    fn Backends::empty() -> Backends

    An empty registry containing no VCS backends (every folder classifies as PlainFolder).

    Backends::locate

    fn Backends::locate(self : Backends, folder : ValidatedFolder) -> Inquiry[Located]

    Classifies a validated folder by querying registered backends in priority order, falling back to Located::PlainFolder.

    Backends::observe

    fn Backends::observe(self : Backends, anchor : Anchor) -> Inquiry[Observation]

    Observes all peer workspaces for a project Anchor.

    BaseFolder

    type BaseFolder derive(Eq,
    Debug
    )

    The folder that holds the folders of all instances.

    BaseFolder::desktop

    The folder of the desktop app that is installed for an instance.

    BaseFolder::equal

    fn BaseFolder::equal(BaseFolder, BaseFolder) -> Bool
    automatically derived

    BaseFolder::instance

    The folder of one instance.

    BaseFolder::instances

    fn BaseFolder::instances(self : BaseFolder) -> String

    The text of the folder that holds one folder for each instance.

    BaseFolder::logs

    fn BaseFolder::logs(self : BaseFolder) -> FolderPath

    The folder with the log files of the command.

    BaseFolder::not_equal

    fn BaseFolder::not_equal(x : BaseFolder, y : BaseFolder) -> Bool
    automatically derived

    BaseFolder::of_env

    fn BaseFolder::of_env(platform : Platform, env : Map[String, String]) -> BaseFolder raise BaseFolderError

    Finds the base folder from the environment. The caller reads the variables; this function does no I/O.

    MISSION_CONTROL_HOME wins over all other variables. Then Windows uses LOCALAPPDATA, macOS uses HOME, and Linux uses XDG_DATA_HOME or HOME. A variable with an empty value counts as not set. A relative XDG_DATA_HOME is ignored, as the XDG standard says. Another variable with a path that is not absolute raises NotAbsolute.

    BaseFolder::to_repr

    automatically derived

    Checkout

    One observed working tree returned by a VCS backend.

    Checkout::equal

    fn Checkout::equal(Checkout, Checkout) -> Bool
    automatically derived

    Checkout::not_equal

    fn Checkout::not_equal(x : Checkout, y : Checkout) -> Bool
    automatically derived

    Checkout::to_repr

    automatically derived

    ConfinedTier

    pub(all) enum ConfinedTier {
    Project
    Local
    } derive(Eq,
    Debug
    )

    Untrusted workspace-level mount trust tier (ProjectMount or LocalMount).

    ConfinedTier::equal

    automatically derived

    ConfinedTier::not_equal

    fn ConfinedTier::not_equal(x : ConfinedTier, y : ConfinedTier) -> Bool
    automatically derived

    ConfinedTier::to_repr

    automatically derived

    ConfinedTier::to_trust_tier

    Converts a ConfinedTier to its wire TrustTier.

    CookieName

    type CookieName derive(Eq,
    Debug
    )

    The name of the session cookie of one server, such as mc_stable_3090.

    A browser sends a cookie to each port of the machine, so the name has the instance and the port. Both parts have only characters that a cookie name can have.

    CookieName::CookieName

    Makes the cookie name of a server.

    CookieName::equal

    fn CookieName::equal(CookieName, CookieName) -> Bool
    automatically derived

    CookieName::not_equal

    fn CookieName::not_equal(x : CookieName, y : CookieName) -> Bool
    automatically derived

    CookieName::to_repr

    automatically derived

    DerivedMetadata

    Partial project metadata contributed by one MetadataDeriver. Forms a left-biased monoid under DerivedMetadata::empty and or_else.

    DerivedMetadata::empty

    Empty partial metadata (identity element for or_else).

    DerivedMetadata::equal

    automatically derived

    DerivedMetadata::not_equal

    fn DerivedMetadata::not_equal(x : DerivedMetadata, y : DerivedMetadata) -> Bool
    automatically derived

    DerivedMetadata::or_else

    Left-biased merge: keeps self's fields when present, falling back to fallback for omitted fields.

    DerivedMetadata::to_repr

    automatically derived

    DictionaryHygieneScorer

    pub struct DictionaryHygieneScorer {
    }

    DictionarySourceAdapter

    pub struct DictionarySourceAdapter {
    }

    Built-in source adapter discovering .mission-control/dictionary inside a workspace root.

    DictionarySourceAdapter::DictionarySourceAdapter

    fn DictionarySourceAdapter::DictionarySourceAdapter() -> DictionarySourceAdapter

    Constructs a DictionarySourceAdapter.

    DictionarySourceAdapter::discover

    DomainEvent

    Explicit domain events returned by pure core workflows for the imperative shell to act on.

    DomainEvent::equal

    fn DomainEvent::equal(DomainEvent, DomainEvent) -> Bool
    automatically derived

    DomainEvent::not_equal

    fn DomainEvent::not_equal(x : DomainEvent, y : DomainEvent) -> Bool
    automatically derived

    DomainEvent::to_repr

    automatically derived

    DomainInTreeSource

    Pure core in-tree source discovered inside a workspace root (no wire traits).

    DomainInTreeSource::equal

    automatically derived

    DomainInTreeSource::not_equal

    automatically derived

    DomainInTreeSource::to_repr

    automatically derived

    DomainInTreeSource::to_wire

    Projects a pure core in-tree source into its wire DTO.

    DomainMountedSource

    pub(all) enum DomainMountedSource {
    Resolved(DomainResolvedMount)
    Refused(DomainRefusedMount)
    } derive(Eq,
    Debug
    )

    Pure core mounted source: either resolved to a FolderPath or refused.

    DomainMountedSource::equal

    automatically derived

    DomainMountedSource::not_equal

    automatically derived

    DomainMountedSource::to_repr

    automatically derived

    DomainMountedSource::to_wire

    Projects a pure core mounted source into its wire DTO.

    DomainProjectWorkspaces

    pub(all) enum DomainProjectWorkspaces {
    Empty
    Populated(DomainWorkspaceSet)
    Unavailable(reason~ :
    UnavailableReason
    , remembered~ : ReadOnlyArray[SeenWorkspace])
    } derive(Eq,
    Debug
    )

    Core business representation of a project's workspace state.

    DomainProjectWorkspaces::equal

    automatically derived

    DomainProjectWorkspaces::not_equal

    automatically derived

    DomainProjectWorkspaces::to_repr

    automatically derived

    DomainProjectWorkspaces::to_wire

    Explicit boundary projection to wire @app.ProjectWorkspaces.

    DomainRefusedMount

    Pure core refused mount carrying no resolved root path.

    DomainRefusedMount::equal

    automatically derived

    DomainRefusedMount::not_equal

    automatically derived

    DomainRefusedMount::to_repr

    automatically derived

    DomainRefusedMount::to_wire

    Projects a pure core refused mount into its wire DTO.

    DomainWorkspace

    Core business model representation of one peer workspace (zero serialization traits; uses canonical FolderPath).

    DomainWorkspace::equal

    automatically derived

    DomainWorkspace::not_equal

    fn DomainWorkspace::not_equal(x : DomainWorkspace, y : DomainWorkspace) -> Bool
    automatically derived

    DomainWorkspace::to_repr

    automatically derived

    DomainWorkspace::to_wire

    Explicit boundary projection from core DomainWorkspace to wire @app.Workspace.

    DomainWorkspaceSet

    type DomainWorkspaceSet derive(Eq,
    Debug
    )

    Core non-empty set of peer workspaces guaranteeing unique IDs and that default_id is a member (zero serialization traits).

    DomainWorkspaceSet::DomainWorkspaceSet

    Constructs a validated non-empty DomainWorkspaceSet.

    DomainWorkspaceSet::default_id

    The guaranteed-member default workspace ID.

    DomainWorkspaceSet::default_workspace

    fn DomainWorkspaceSet::default_workspace(self : DomainWorkspaceSet) -> DomainWorkspace

    Returns the default workspace (total by smart-constructor invariant).

    DomainWorkspaceSet::equal

    automatically derived

    DomainWorkspaceSet::get

    Looks up a workspace by its ID.

    DomainWorkspaceSet::not_equal

    automatically derived

    DomainWorkspaceSet::to_repr

    automatically derived

    DomainWorkspaceSet::to_wire

    Explicit boundary projection to wire @app.WorkspaceSet.

    DomainWorkspaceSet::workspaces

    fn DomainWorkspaceSet::workspaces(self : DomainWorkspaceSet) -> ReadOnlyArray[DomainWorkspace]

    The immutable list of peer workspaces in display order.

    DomainWorkspaceSource

    pub(all) enum DomainWorkspaceSource {
    InTree(DomainInTreeSource)
    Mounted(DomainMountedSource)
    } derive(Eq,
    Debug
    )

    Pure core composed workspace source.

    DomainWorkspaceSource::equal

    automatically derived

    DomainWorkspaceSource::not_equal

    automatically derived

    DomainWorkspaceSource::to_repr

    automatically derived

    DomainWorkspaceSource::to_wire

    Projects a pure core workspace source into its wire DTO.

    DomainWorkspaceSources

    Pure core composed source list and configuration problems for one workspace.

    DomainWorkspaceSources::equal

    automatically derived

    DomainWorkspaceSources::not_equal

    automatically derived

    DomainWorkspaceSources::to_repr

    automatically derived

    DomainWorkspaceSources::to_wire

    Projects pure core composed workspace sources into the wire DTO reply.

    EarsConformanceScorer

    pub struct EarsConformanceScorer {
    }

    Built-in scorer checking EARS conformance (SHALL modal + scenarios) on specification documents.

    EarsConformanceScorer::EarsConformanceScorer

    fn EarsConformanceScorer::EarsConformanceScorer() -> EarsConformanceScorer

    Entry

    One project entry in the core domain model (zero serialization traits).

    Entry::backend

    The VCS backend identifier of this project (folder, git, etc.).

    Entry::check_folder

    fn Entry::check_folder(self : Entry) -> FolderPath

    The folder path checked on disk to compute Project.folder.

    Entry::equal

    fn Entry::equal(Entry, Entry) -> Bool
    automatically derived

    Entry::folder

    fn Entry::folder(self : Entry) -> FolderPath

    The display folder path for this entry (plain folder, enclosing repo root for .git, first remembered checkout, or bare store path).

    Entry::known_roots

    fn Entry::known_roots(self : Entry) -> ReadOnlyArray[FolderPath]

    All workspace roots currently known for this entry (one root for plain folders; remembered checkout roots for repositories).

    Entry::name

    fn Entry::name(self : Entry) -> String

    The derived folder or repository basename of this project.

    Entry::not_equal

    fn Entry::not_equal(x : Entry, y : Entry) -> Bool
    automatically derived

    Entry::reconcile

    fn Entry::reconcile(self : Entry, observation : Observation) -> (Entry, DomainProjectWorkspaces, ReadOnlyArray[DomainEvent])

    Reconciles an entry against a fresh backend Observation, updating remembered checkout roots and deriving the exact DomainProjectWorkspaces state (Empty, Populated, or Unavailable).

    Entry::to_repr

    automatically derived

    EvaluatedMount

    pub(all) enum EvaluatedMount {
    Accepted(MountSpec)
    Refused(DomainRefusedMount)
    } derive(Eq,
    Debug
    )

    Outcome of static config validation for one mount entry prior to provider resolution.

    EvaluatedMount::equal

    automatically derived

    EvaluatedMount::not_equal

    fn EvaluatedMount::not_equal(x : EvaluatedMount, y : EvaluatedMount) -> Bool
    automatically derived

    EvaluatedMount::to_repr

    automatically derived

    FileText

    pub(all) enum FileText {
    Found(String)
    Missing
    TooLarge
    TimedOut
    Failed(String)
    } derive(Eq,
    Debug
    )

    The answer returned by Machine::read_file for one text file read (capped at 1 MiB).

    FileText::equal

    fn FileText::equal(FileText, FileText) -> Bool
    automatically derived

    FileText::not_equal

    fn FileText::not_equal(x : FileText, y : FileText) -> Bool
    automatically derived

    FileText::to_repr

    automatically derived

    FnMetadataDeriver

    pub(all) struct FnMetadataDeriver((Located) -> Inquiry[DerivedMetadata])

    Functional adapter wrapping a plain lambda as a MetadataDeriver.

    FnMetadataDeriver::infer

    FolderPath

    type FolderPath derive(Eq,
    Debug
    )

    The absolute path of a folder, in one clean form: no . or .. parts, no repeated or trailing separators, and, on Windows, the separator \ and an upper-case drive letter.

    == compares the clean text. Use same_folder to compare folders: on Windows it ignores the case of letters.

    FolderPath::FolderPath

    fn FolderPath::FolderPath(text : String, platform : Platform) -> FolderPath raise FolderPathError

    Parses an absolute folder path and makes it clean. On Windows, the text can have one pair of double quotes around the path.

    FolderPath::canonical_key

    fn FolderPath::canonical_key(self : FolderPath) -> String

    The canonical platform key of this folder path for deterministic identity derivation (case-folded on Windows, exact on Linux and macOS).

    FolderPath::contains

    fn FolderPath::contains(self : FolderPath, other : FolderPath) -> Bool

    True when other is this folder or is below it. A folder that has the start of the name is not below it: /code/docs does not hold /code/docs-old. The paths of two platforms never hold each other.

    FolderPath::equal

    fn FolderPath::equal(FolderPath, FolderPath) -> Bool
    automatically derived

    FolderPath::join_tree

    Appends a validated workspace-confined relative TreePath onto this folder path.

    FolderPath::name

    fn FolderPath::name(self : FolderPath) -> String

    The name of the folder. The root has its own text as its name.

    FolderPath::not_equal

    fn FolderPath::not_equal(x : FolderPath, y : FolderPath) -> Bool
    automatically derived

    FolderPath::parent

    fn FolderPath::parent(self : FolderPath) -> FolderPath?

    The parent folder, or None when this path is already a root.

    FolderPath::parent_name

    fn FolderPath::parent_name(self : FolderPath) -> String?

    The name of the folder that holds this folder: the root text for a folder at the top, and None for the root.

    FolderPath::platform

    fn FolderPath::platform(self : FolderPath) -> Platform

    The platform whose rules apply to this folder path.

    FolderPath::resolve

    fn FolderPath::resolve(text : String, base : FolderPath) -> FolderPath raise FolderPathError

    Reads a path from a base folder. An absolute text gives its own folder and ignores the base. A relative text starts at the base. On Windows, a text with a root and no drive (\a) uses the drive or share of the base, and the text can have one pair of double quotes around the path.

    FolderPath::same_folder

    fn FolderPath::same_folder(self : FolderPath, other : FolderPath) -> Bool

    True when both paths are one folder. Windows ignores the case of letters. Linux and macOS compare the exact text.

    FolderPath::to_repr

    automatically derived

    FolderPath::to_string

    fn FolderPath::to_string(self : FolderPath) -> String

    The clean text of the path.

    FolderPathDeriver

    pub(all) struct FolderPathDeriver {
    }

    Built-in pure deriver that supplies the default title from the anchor's folder or bare-repository name.

    FolderPathDeriver::infer

    Grant

    What a link gives to the view that opens it.

    Grant::equal

    fn Grant::equal(Grant, Grant) -> Bool
    automatically derived

    Grant::not_equal

    fn Grant::not_equal(x : Grant, y : Grant) -> Bool
    automatically derived

    Grant::to_repr

    automatically derived

    HostEnv

    pub(all) struct HostEnv {
    platform : Platform
    system_config_dir : FolderPath?
    user_config_dir : FolderPath?
    env_vars : ReadOnlyArray[(String, String)]
    } derive(Eq,
    Debug
    )

    Explicit host environment values passed into server startup and pure source resolution (never read from hidden global state inside core code).

    HostEnv::empty

    fn HostEnv::empty(platform : Platform) -> HostEnv

    Creates an empty HostEnv for a platform with no config dirs or env vars.

    HostEnv::equal

    fn HostEnv::equal(HostEnv, HostEnv) -> Bool
    automatically derived

    HostEnv::not_equal

    fn HostEnv::not_equal(x : HostEnv, y : HostEnv) -> Bool
    automatically derived

    HostEnv::to_repr

    automatically derived

    Inquiry

    pub(all) enum Inquiry[T] {
    Done(T)
    Run(ToolCall, (ToolAnswer) -> Inquiry[T])
    Look(FolderPath, (Looked) -> Inquiry[T])
    Names(FolderPath, (Listing) -> Inquiry[T])
    ReadFile(FolderPath, (FileText) -> Inquiry[T])
    RealPath(FolderPath, (RealPathAnswer) -> Inquiry[T])
    }

    Pure decision tree describing questions a VCS backend, metadata deriver, source adapter, or mount provider asks the host machine, answered by Machine.

    Inquiry::map

    fn[T, U] Inquiry::map(self : Inquiry[T], f : (T) -> U) -> Inquiry[U]

    Maps a pure function over the final value of an Inquiry.

    Inquiry::then

    fn[T, U] Inquiry::then(self : Inquiry[T], next : (T) -> Inquiry[U]) -> Inquiry[U]

    Sequences another Inquiry step after the result of this Inquiry.

    InstanceFolder

    type InstanceFolder derive(Eq,
    Debug
    )

    The folder of one instance, and the paths of its four files.

    InstanceFolder::equal

    automatically derived

    InstanceFolder::lock

    fn InstanceFolder::lock(self : InstanceFolder) -> String

    server.lock: empty; the server holds a lock on it.

    InstanceFolder::log

    fn InstanceFolder::log(self : InstanceFolder) -> String

    server.log: the output of the background process.

    InstanceFolder::not_equal

    fn InstanceFolder::not_equal(x : InstanceFolder, y : InstanceFolder) -> Bool
    automatically derived

    InstanceFolder::path

    fn InstanceFolder::path(self : InstanceFolder) -> String

    The text of the folder.

    InstanceFolder::platform

    fn InstanceFolder::platform(self : InstanceFolder) -> Platform

    InstanceFolder::projects

    fn InstanceFolder::projects(self : InstanceFolder) -> String

    projects.toml: the project list.

    InstanceFolder::record

    fn InstanceFolder::record(self : InstanceFolder) -> String

    server.json: the port, the version and the secret of the server, or the reason why it did not start.

    InstanceFolder::to_repr

    automatically derived

    LifecycleOutcome

    pub(all) enum LifecycleOutcome {
    Succeeded(String)
    Refused(String)
    } derive(Eq,
    Debug
    )

    Outcome of a pure Git worktree lifecycle Inquiry.

    LifecycleOutcome::equal

    automatically derived

    LifecycleOutcome::not_equal

    fn LifecycleOutcome::not_equal(x : LifecycleOutcome, y : LifecycleOutcome) -> Bool
    automatically derived

    LifecycleOutcome::to_repr

    automatically derived

    The links that the server gave and that still work. A link works many times, so a user can open it in a second browser.

    A link works while the time is less than 10 minutes after its issue. If the clock went back, it also works while the time is less than 10 minutes before its issue, and not at an earlier time. A clock that goes back by a day then does not make the link work for a day.

    A link that stopped can work again if the clock of the machine goes back to a time near its issue. This ends at the next issue, which removes the links that do not work at that time.

    Links::empty

    fn Links::empty() -> Links

    No links.

    Links::equal

    fn Links::equal(Links, Links) -> Bool
    automatically derived

    Links::issue

    Adds a link with a new token, and removes the links that do not work at this time, so the number of links does not grow without a limit.

    Links::not_equal

    fn Links::not_equal(x : Links, y : Links) -> Bool
    automatically derived

    Links::redeem

    What the link with this token gives, or None if no link has the token or the link does not work at this time.

    Links::to_repr

    automatically derived

    Listing

    pub(all) enum Listing {
    Entries(ReadOnlyArray[String])
    Missing
    Failed(String)
    } derive(Eq,
    Debug
    )

    The answer returned by Machine::names for one directory listing.

    Listing::equal

    fn Listing::equal(Listing, Listing) -> Bool
    automatically derived

    Listing::not_equal

    fn Listing::not_equal(x : Listing, y : Listing) -> Bool
    automatically derived

    Listing::to_repr

    automatically derived

    LocalFolderMountProvider

    pub struct LocalFolderMountProvider {
    }

    Built-in mount provider for kind = "folder" local directory mounts.

    LocalFolderMountProvider::LocalFolderMountProvider

    fn LocalFolderMountProvider::LocalFolderMountProvider() -> LocalFolderMountProvider

    Constructs a LocalFolderMountProvider.

    Located

    Typestate step 3: classification of a validated folder by VCS backends.

    Located::equal

    fn Located::equal(Located, Located) -> Bool
    automatically derived

    Located::not_equal

    fn Located::not_equal(x : Located, y : Located) -> Bool
    automatically derived

    Located::to_anchor

    fn Located::to_anchor(self : Located) -> Anchor

    Derives the initial Anchor corresponding to a Located classification.

    Located::to_repr

    automatically derived

    Looked

    pub(all) enum Looked {
    Folder
    File
    Missing
    TimedOut
    Failed(String)
    } derive(Eq,
    Debug
    )

    The answer returned by Machine::look for one folder path.

    Looked::equal

    fn Looked::equal(Looked, Looked) -> Bool
    automatically derived

    Looked::not_equal

    fn Looked::not_equal(x : Looked, y : Looked) -> Bool
    automatically derived

    Looked::to_repr

    automatically derived

    MetadataDerivers

    type MetadataDerivers

    Ordered chain of metadata derivers that merges explicit user overrides first, then derivers in priority order, with a total fallback to default_project_title.

    MetadataDerivers::MetadataDerivers

    Constructs a MetadataDerivers chain.

    MetadataDerivers::folder_only

    fn MetadataDerivers::folder_only() -> MetadataDerivers

    Default chain containing only FolderPathDeriver.

    MetadataDerivers::resolve

    Resolves final (ProjectTitle, ProjectCaption?), applying explicit user overrides first, then derivers in priority order (short-circuiting once both fields are populated), then falling back to default_project_title.

    MountConfigDiagnostic

    pub(all) struct MountConfigDiagnostic {
    key : String
    origin :
    ConfigOrigin

    message : String
    } derive(Eq,
    Debug
    )

    A warning or validation error attached to a workspace.mounts key and file.

    MountConfigDiagnostic::equal

    automatically derived

    MountConfigDiagnostic::not_equal

    automatically derived

    MountConfigDiagnostic::to_repr

    automatically derived

    MountConfigResult

    pub(all) struct MountConfigResult {
    mounts : ReadOnlyArray[EvaluatedMount]
    problems : ReadOnlyArray[
    SourceProblem
    ]
    warnings : ReadOnlyArray[MountConfigDiagnostic]
    errors : ReadOnlyArray[MountConfigDiagnostic]
    } derive(Eq,
    Debug
    )

    Result of loading workspace.mounts across isolated trust layers.

    MountConfigResult::equal

    automatically derived

    MountConfigResult::not_equal

    fn MountConfigResult::not_equal(x : MountConfigResult, y : MountConfigResult) -> Bool
    automatically derived

    MountConfigResult::to_repr

    automatically derived

    MountGrant

    Validated trust, target, and access grant of a mount specification. Illegal combinations (such as a ProjectMount or LocalMount with an external HostPath or ReadWrite access) are unrepresentable by construction.

    MountGrant::access

    Returns the effective SourceAccess of this mount grant.

    MountGrant::equal

    fn MountGrant::equal(MountGrant, MountGrant) -> Bool
    automatically derived

    MountGrant::not_equal

    fn MountGrant::not_equal(x : MountGrant, y : MountGrant) -> Bool
    automatically derived

    MountGrant::target

    fn MountGrant::target(self : MountGrant) -> MountTarget

    Returns the MountTarget of this mount grant.

    MountGrant::to_repr

    automatically derived

    MountGrant::trust

    Returns the wire TrustTier of this mount grant.

    MountProviders

    type MountProviders

    Registry of mount providers with unique mount kinds.

    MountProviders::MountProviders

    Constructs a validated MountProviders registry rejecting duplicate kinds.

    MountProviders::find

    Looks up a registered provider by mount kind.

    MountSpec

    Validated mount specification ready to be resolved by a MountProvider.

    MountSpec::access

    The effective access mode of this mount specification.

    MountSpec::equal

    fn MountSpec::equal(MountSpec, MountSpec) -> Bool
    automatically derived

    MountSpec::not_equal

    fn MountSpec::not_equal(x : MountSpec, y : MountSpec) -> Bool
    automatically derived

    MountSpec::target

    fn MountSpec::target(self : MountSpec) -> MountTarget

    The validated target of this mount specification.

    MountSpec::to_repr

    automatically derived

    MountSpec::trust

    The wire TrustTier of this mount specification.

    MountTarget

    Validated target of a configured mount inside the pure core.

    MountTarget::display

    fn MountTarget::display(self : MountTarget) -> String

    The display target string projected to wire DTOs.

    MountTarget::equal

    fn MountTarget::equal(MountTarget, MountTarget) -> Bool
    automatically derived

    MountTarget::not_equal

    fn MountTarget::not_equal(x : MountTarget, y : MountTarget) -> Bool
    automatically derived

    MountTarget::to_repr

    automatically derived

    Observation

    Outcome of observing a project's workspaces through its VCS backend.

    Observation::equal

    fn Observation::equal(Observation, Observation) -> Bool
    automatically derived

    Observation::not_equal

    fn Observation::not_equal(x : Observation, y : Observation) -> Bool
    automatically derived

    Observation::to_repr

    automatically derived

    OkfSourceAdapter

    pub struct OkfSourceAdapter {
    }

    Built-in source adapter discovering OKF bundles (index.md at the workspace root or inside up to 64 non-hidden top-level subdirectories).

    OkfSourceAdapter::OkfSourceAdapter

    fn OkfSourceAdapter::OkfSourceAdapter() -> OkfSourceAdapter

    Constructs an OkfSourceAdapter.

    OkfSourceAdapter::discover

    OpenSpecIntentAdapter

    pub struct OpenSpecIntentAdapter {
    }

    Built-in canonical intent adapter for OpenSpec workspaces (openspec/).

    OpenSpecIntentAdapter::OpenSpecIntentAdapter

    fn OpenSpecIntentAdapter::OpenSpecIntentAdapter() -> OpenSpecIntentAdapter

    Constructs an OpenSpecIntentAdapter.

    OpenSpecIntentAdapter::adapter_id

    OpenSpecIntentAdapter::project

    OpenSpecSourceAdapter

    pub struct OpenSpecSourceAdapter {
    }

    Built-in source adapter discovering openspec/ inside a workspace root.

    OpenSpecSourceAdapter::OpenSpecSourceAdapter

    fn OpenSpecSourceAdapter::OpenSpecSourceAdapter() -> OpenSpecSourceAdapter

    Constructs an OpenSpecSourceAdapter.

    OpenSpecSourceAdapter::discover

    Platform

    pub(all) enum Platform {
    Windows
    MacOs
    Linux
    } derive(Eq,
    Debug
    )

    The system whose rules read a path and write the paths of its files.

    Port

    A TCP port: a whole number from 1 to 65535.

    Port::Port

    fn Port::Port(value : Int) -> Port raise PortError

    Makes a port from a number from 1 to 65535.

    Port::address

    fn Port::address(self : Port) -> ServerAddress

    The address of a server on this port of the machine. It is also the origin of the UI.

    Port::equal

    fn Port::equal(Port, Port) -> Bool
    automatically derived

    Port::not_equal

    fn Port::not_equal(x : Port, y : Port) -> Bool
    automatically derived

    Port::to_int

    fn Port::to_int(self : Port) -> Int

    Port::to_repr

    automatically derived

    PortChoice

    pub(all) enum PortChoice {
    Fixed(Port)
    Preferred(Port)
    Free
    } derive(Eq,
    Debug
    )

    How an instance finds its port.

    PortChoice::for_command

    The port of a server that a command starts: Fixed for stable, insiders, nightly and dev, and Free for each other instance.

    PortChoice::for_desktop

    The port of a server that the desktop app starts: Preferred for stable, insiders, nightly and dev, and Free for each other instance.

    ProjectList

    type ProjectList derive(Eq,
    Debug
    )

    The projects of an instance, in the order in which the user added them.

    Each plain folder and each repository store appears at most once. Project IDs are deterministic RFC 8141 URNs derived from each entry's Anchor.

    ProjectList::add

    Adds a plain folder at the end of the list with its default title and no caption. Convenience wrapper around admit.

    ProjectList::admit

    Admits a Located target (plain folder, checkout, or bare store) into the project list with resolved title and optional caption.

    If an entry with the same anchor is already listed, returns Existing (for a checkout, ensures its root is remembered in seen). Otherwise appends a new entry and returns Added.

    ProjectList::describe

    Explicit boundary projection from ProjectList to wire @app.Project DTOs in the order of the list. state_of says whether the anchor of an entry exists.

    A project has a parent while another project shares the same display title, by the case rule of the platform.

    ProjectList::empty

    fn ProjectList::empty() -> ProjectList

    The list without projects.

    ProjectList::entries

    fn ProjectList::entries(self : ProjectList) -> ReadOnlyArray[Entry]

    The entries, in the order in which the user added them.

    ProjectList::entry

    Finds an entry by ProjectId, raising UnknownProject if absent.

    ProjectList::equal

    fn ProjectList::equal(ProjectList, ProjectList) -> Bool
    automatically derived

    ProjectList::not_equal

    fn ProjectList::not_equal(x : ProjectList, y : ProjectList) -> Bool
    automatically derived

    ProjectList::of_file_text

    fn ProjectList::of_file_text(text : String, platform : Platform) -> ProjectList raise ProjectFileError

    Reads the text of projects.toml. Paths follow the rules of platform.

    A format above 1 raises NewerFormat, even when other fields have an unknown shape. Every other syntax, type, timestamp, duplicate-anchor, or invariant violation raises Damaged naming the field path.

    ProjectList::open

    Sets the time of the last open of a project, and gives its new entry. The order of the list does not change.

    ProjectList::open_workspace

    Atomically records opened = Some(now) on both the target workspace and its owning project, returning the updated list, entry, workspace, and WorkspaceOpened event.

    ProjectList::project_of_folder

    Finds the listed project whose plain folder or remembered checkout root is the deepest ancestor of current, along with the matched WorkspaceId (if any). Submodules registered as their own projects beat their enclosing superproject because their checkout root is deeper.

    ProjectList::remove

    Removes a project from the list, and gives the entry that it had.

    ProjectList::remove_with_events

    Removes a project from the list, returning the remaining list, removed entry, and ProjectRemoved event.

    ProjectList::replace_entry

    fn ProjectList::replace_entry(self : ProjectList, updated : Entry) -> ProjectList

    Replaces an existing entry with the same id (used after reconcile).

    ProjectList::to_file_text

    fn ProjectList::to_file_text(self : ProjectList) -> String

    The text of projects.toml. Timestamps are written as native RFC 3339 UTC offset datetimes (YYYY-MM-DDTHH:MM:SSZ or .mmmZ).

    ProjectList::to_repr

    automatically derived

    ProjectRef

    How a person names a project on the command line.

    find compares names and titles using the platform's case rule: Windows ignores letter case, while Linux and macOS compare exact text.

    ProjectRef::ProjectRef

    fn ProjectRef::ProjectRef(text : String, current : FolderPath) -> ProjectRef raise ProjectRefError

    Reads the text that a person gives for a project.

    • A text starting with urn:mc:proj: is parsed as a ProjectId URN.
    • A text that is . or .., or that has a separator of the platform, is a path. A relative path starts at the current folder.
    • Each other non-empty text matches a unique short ID, display title, or folder name.

    ProjectRef::equal

    fn ProjectRef::equal(ProjectRef, ProjectRef) -> Bool
    automatically derived

    ProjectRef::find

    Finds the project in the list. NoMatch names the ID, the complete path or the name. The folder of the project can be missing on the disk.

    ProjectRef::not_equal

    fn ProjectRef::not_equal(x : ProjectRef, y : ProjectRef) -> Bool
    automatically derived

    ProjectRef::to_repr

    automatically derived

    RealPathAnswer

    pub(all) enum RealPathAnswer {
    Resolved(FolderPath)
    Missing
    TimedOut
    Failed(String)
    } derive(Eq,
    Debug
    )

    The answer returned by Machine::real_path for canonical symlink resolution.

    RealPathAnswer::equal

    automatically derived

    RealPathAnswer::not_equal

    fn RealPathAnswer::not_equal(x : RealPathAnswer, y : RealPathAnswer) -> Bool
    automatically derived

    RealPathAnswer::to_repr

    automatically derived

    RecordDamage

    pub(all) enum RecordDamage {
    NotJson
    NotObject
    BadField(String)
    } derive(Eq,
    Debug
    )

    What is wrong in a damaged record. It never has a value of the record, because the value can be the secret.

    RecordDamage::equal

    automatically derived

    RecordDamage::not_equal

    fn RecordDamage::not_equal(x : RecordDamage, y : RecordDamage) -> Bool
    automatically derived

    RecordDamage::to_repr

    automatically derived

    Secret

    type Secret

    A random text that gives access: the secret of the server, the token of a link, or the cookie value or the view key of a session.

    A secret has no Show and no JSON form, and its debug text is always <secret>, so a log or a failed test does not show it. Only to_text gives the text.
    impl Eq for Secret
    impl Debug for Secret

    Secret::equal

    fn Secret::equal(self : Secret, other : Secret) -> Bool

    Compares as matches does.

    Secret::matches

    fn Secret::matches(self : Secret, text : String) -> Bool

    True when the text is the text of this secret.

    For a text of the same length, the time does not depend on the place of the first difference, so a caller cannot find the secret one character at a time. A text of another length is refused at once: the length is not secret.

    Secret::not_equal

    fn Secret::not_equal(x : Secret, y : Secret) -> Bool

    Secret::of_bytes

    fn Secret::of_bytes(bytes : Bytes) -> Secret raise SecretError

    Makes a secret from 32 random bytes or more. The caller gives the bytes from a random source for cryptography.

    Secret::to_repr

    The same text for each secret, so debug text can go to a log.

    Secret::to_text

    fn Secret::to_text(self : Secret) -> String

    The base64url form of the bytes, without padding. It is safe in an address, a header and a cookie.

    SeenWorkspace

    A remembered workspace checkout root and its optional last-opened timestamp. Core business model type (carries no serialization traits).

    SeenWorkspace::equal

    automatically derived

    SeenWorkspace::not_equal

    fn SeenWorkspace::not_equal(x : SeenWorkspace, y : SeenWorkspace) -> Bool
    automatically derived

    SeenWorkspace::to_repr

    automatically derived

    SeenWorkspaces

    type SeenWorkspaces derive(Eq,
    Debug
    )

    Immutable deduplicated collection of remembered checkout roots for a repository project.

    SeenWorkspaces::SeenWorkspaces

    Constructs a validated deduplicated SeenWorkspaces collection.

    SeenWorkspaces::empty

    An empty set of remembered workspaces.

    SeenWorkspaces::equal

    automatically derived

    SeenWorkspaces::find_id

    Looks up a remembered workspace by derived WorkspaceId.

    SeenWorkspaces::find_root

    fn SeenWorkspaces::find_root(self : SeenWorkspaces, root : FolderPath) -> SeenWorkspace?

    Looks up a remembered workspace by canonical folder path.

    SeenWorkspaces::items

    fn SeenWorkspaces::items(self : SeenWorkspaces) -> ReadOnlyArray[SeenWorkspace]

    The remembered workspaces in order.

    SeenWorkspaces::not_equal

    fn SeenWorkspaces::not_equal(x : SeenWorkspaces, y : SeenWorkspaces) -> Bool
    automatically derived

    SeenWorkspaces::record_opened

    Records opened = Some(now) for root, adding root if not already remembered.

    SeenWorkspaces::remember

    fn SeenWorkspaces::remember(self : SeenWorkspaces, root : FolderPath) -> SeenWorkspaces

    Adds root to the remembered set if not already present, preserving any existing opened timestamp.

    SeenWorkspaces::to_repr

    automatically derived

    ServerAddress

    type ServerAddress derive(Eq,
    Debug
    )

    The address of a server of this machine, such as http://127.0.0.1:3090.

    ServerAddress::ServerAddress

    fn ServerAddress::ServerAddress(text : String) -> ServerAddress raise AddressError

    Reads an address in the one form that to_string writes.

    ServerAddress::to_string

    fn ServerAddress::to_string(self : ServerAddress) -> String

    ServerRecord

    The content of server.json: how to reach the server of an instance, or why it did not start.

    ServerRecord::equal

    automatically derived

    ServerRecord::not_equal

    fn ServerRecord::not_equal(x : ServerRecord, y : ServerRecord) -> Bool
    automatically derived

    ServerRecord::of_text

    fn ServerRecord::of_text(text : String) -> ServerRecord raise ServerRecordError

    Reads the text that to_text gives. Unknown fields are ignored.

    The format number is read first: a whole number above 1 raises NewerFormat, whatever the other fields are. Each other fault raises Damaged.

    ServerRecord::to_repr

    automatically derived

    ServerRecord::to_text

    fn ServerRecord::to_text(self : ServerRecord) -> String

    The JSON text of the record. The text of a server that runs has its secret, so it must only go to the private file.

    Sessions

    type Sessions derive(Eq,
    Debug
    )

    The sessions that the server gave. A session is valid until the server ends.

    Sessions::add

    Adds a session with a new cookie value and a new view key. The two secrets come from different random bytes: with equal secrets, the cookie is also the key.

    Sessions::empty

    fn Sessions::empty() -> Sessions

    No sessions.

    Sessions::equal

    fn Sessions::equal(Sessions, Sessions) -> Bool
    automatically derived

    Sessions::find

    fn Sessions::find(self : Sessions, name : CookieName, cookie_header : String?) ->
    Surface
    ?

    The kind of view of the session in a Cookie header, or None if the header has no valid session.

    Use this function only for the static page and its script. Another local server can read the cookie, so the cookie alone must not give data or control. The hub and the session check use find_view.

    If the header has several cookies of this name, each one is tried, and the first valid one wins.

    Sessions::find_view

    fn Sessions::find_view(self : Sessions, name : CookieName, cookie_header~ : String?, key~ : String?) ->
    Surface
    ?

    The kind of view of a request for the hub or for the session check, or None if the request does not have the cookie and the view key of one session.

    The cookie of one session with the key of another session gives None. If the header has several cookies of this name, each one is tried with the key.

    Sessions::not_equal

    fn Sessions::not_equal(x : Sessions, y : Sessions) -> Bool
    automatically derived

    Sessions::surface_of

    The kind of view of the session with this view key, or None if no session has it.

    This is not a login. Use it only for a request that find_view accepted, when the cookie is not there any more.

    Sessions::to_repr

    automatically derived

    SiteDecision

    pub(all) enum SiteDecision {
    SameSite
    OtherHost
    OtherOrigin
    } derive(Eq,
    Debug
    )

    Whether a request comes to the address of the server and from its own pages.

    SiteDecision::equal

    automatically derived

    SiteDecision::not_equal

    fn SiteDecision::not_equal(x : SiteDecision, y : SiteDecision) -> Bool
    automatically derived

    SiteDecision::to_repr

    automatically derived

    SourceAdapters

    type SourceAdapters

    Ordered registry of in-tree source adapters with unique identifiers.

    SourceAdapters::SourceAdapters

    fn SourceAdapters::SourceAdapters(adapters : ArrayView[&SourceAdapter]) -> SourceAdapters raise DuplicateAdapter

    Constructs a validated SourceAdapters registry rejecting duplicate IDs.

    SourceAdapters::all

    fn SourceAdapters::all(self : SourceAdapters) -> ReadOnlyArray[&SourceAdapter]

    Returns the registered adapters in priority order.

    StartFailure

    pub(all) enum StartFailure {
    PortInUse(Port)
    BadProjectFile(path~ : String, message~ : String)
    Other(String)
    } derive(Eq,
    Debug
    )

    The reason why a server did not start.

    StartFailure::equal

    automatically derived

    StartFailure::not_equal

    fn StartFailure::not_equal(x : StartFailure, y : StartFailure) -> Bool
    automatically derived

    StartFailure::to_repr

    automatically derived

    StructuralCompletenessScorer

    pub struct StructuralCompletenessScorer {
    }

    Built-in scorer checking document structural completeness (non-empty content, summary, requirements in spec deltas, tasks in task lists).

    StructuralCompletenessScorer::StructuralCompletenessScorer

    fn StructuralCompletenessScorer::StructuralCompletenessScorer() -> StructuralCompletenessScorer

    ToolAnswer

    pub(all) enum ToolAnswer {
    Exited(code~ : Int, stdout~ : String, stderr~ : String)
    NotInstalled
    TimedOut
    Failed(String)
    } derive(Eq,
    Debug
    )

    The answer returned by Machine::run for a ToolCall.

    ToolAnswer::equal

    fn ToolAnswer::equal(ToolAnswer, ToolAnswer) -> Bool
    automatically derived

    ToolAnswer::not_equal

    fn ToolAnswer::not_equal(x : ToolAnswer, y : ToolAnswer) -> Bool
    automatically derived

    ToolAnswer::to_repr

    automatically derived

    ToolCall

    pub(all) struct ToolCall {
    program : ToolName
    args : ReadOnlyArray[String]
    cwd : FolderPath
    } derive(Eq,
    Debug
    )

    A command request issued by a pure Inquiry[T] decision tree.

    ToolCall::equal

    fn ToolCall::equal(ToolCall, ToolCall) -> Bool
    automatically derived

    ToolCall::not_equal

    fn ToolCall::not_equal(x : ToolCall, y : ToolCall) -> Bool
    automatically derived

    ToolCall::to_repr

    automatically derived

    ToolName

    A validated bare external executable name (no path separators, whitespace, or control characters). Machine additionally enforces an allow-list.
    impl Show for ToolName

    ToolName::ToolName

    fn ToolName::ToolName(text : String) -> ToolName raise ToolNameError

    Parses a bare external tool executable name.

    ToolName::compare

    fn ToolName::compare(ToolName, ToolName) -> Int
    automatically derived

    ToolName::equal

    fn ToolName::equal(ToolName, ToolName) -> Bool
    automatically derived

    ToolName::git

    fn ToolName::git() -> ToolName

    The git executable name (total constructor).

    ToolName::hash

    fn ToolName::hash(self : ToolName) -> Int
    automatically derived

    ToolName::hash_combine

    fn ToolName::hash_combine(ToolName, Hasher) -> Unit
    automatically derived

    ToolName::not_equal

    fn ToolName::not_equal(x : ToolName, y : ToolName) -> Bool
    automatically derived

    ToolName::op_ge

    fn ToolName::op_ge(x : ToolName, y : ToolName) -> Bool
    automatically derived

    ToolName::op_gt

    fn ToolName::op_gt(x : ToolName, y : ToolName) -> Bool
    automatically derived

    ToolName::op_le

    fn ToolName::op_le(x : ToolName, y : ToolName) -> Bool
    automatically derived

    ToolName::op_lt

    fn ToolName::op_lt(x : ToolName, y : ToolName) -> Bool
    automatically derived

    ToolName::output

    fn ToolName::output(self : ToolName, logger : &Logger) -> Unit

    ToolName::to_repr

    automatically derived

    ToolName::to_string

    fn ToolName::to_string(self : ToolName) -> String

    The bare tool executable name text.

    ToolNameRule

    pub(all) enum ToolNameRule {
    Empty
    WhitespaceOrControl
    PathSeparator
    } derive(Eq,
    Debug
    )

    A rule of an external tool executable name.

    ToolNameRule::equal

    automatically derived

    ToolNameRule::not_equal

    fn ToolNameRule::not_equal(x : ToolNameRule, y : ToolNameRule) -> Bool
    automatically derived

    ToolNameRule::to_repr

    automatically derived

    TrustedTier

    pub(all) enum TrustedTier {
    User
    System
    } derive(Eq,
    Debug
    )

    Trusted host-level mount trust tier (UserMount or SystemMount).

    TrustedTier::equal

    fn TrustedTier::equal(TrustedTier, TrustedTier) -> Bool
    automatically derived

    TrustedTier::not_equal

    fn TrustedTier::not_equal(x : TrustedTier, y : TrustedTier) -> Bool
    automatically derived

    TrustedTier::to_repr

    automatically derived

    TrustedTier::to_trust_tier

    Converts a TrustedTier to its wire TrustTier.

    UnvalidatedFolderPath

    pub(all) struct UnvalidatedFolderPath {
    raw : String
    } derive(Eq,
    Debug
    )

    Typestate step 1: raw untrusted path string entering the domain boundary.

    UnvalidatedFolderPath::equal

    automatically derived

    UnvalidatedFolderPath::not_equal

    automatically derived

    UnvalidatedFolderPath::to_repr

    automatically derived

    UnvalidatedFolderPath::validate

    Validates a raw folder path string for platform.

    ValidatedFolder

    type ValidatedFolder derive(Eq,
    Debug
    )

    Typestate step 2: validated canonical absolute folder path.

    ValidatedFolder::equal

    automatically derived

    ValidatedFolder::not_equal

    fn ValidatedFolder::not_equal(x : ValidatedFolder, y : ValidatedFolder) -> Bool
    automatically derived

    ValidatedFolder::of_path

    Wraps an already-validated FolderPath as a ValidatedFolder.

    ValidatedFolder::path

    Extracts the canonical FolderPath.

    ValidatedFolder::to_repr

    automatically derived

    WaitingProject

    type WaitingProject derive(Eq,
    Debug
    )

    The project that the next window must show, if there is one.

    A start of the desktop app can ask for a project before the page of the window is connected. The project then waits, and the first window that connects takes it.

    WaitingProject::WaitingProject

    A project that waits from this time. Only the last project that a start asked for can wait.

    WaitingProject::equal

    automatically derived

    WaitingProject::none

    No project waits.

    WaitingProject::not_equal

    fn WaitingProject::not_equal(x : WaitingProject, y : WaitingProject) -> Bool
    automatically derived

    WaitingProject::take

    The project for a window that connects at this time, and what waits after it. The distance between the two times counts, as for a link, also when the clock went back. Times are not negative, so it cannot overflow.

    WaitingProject::to_repr

    automatically derived

    WorkspaceRoot

    pub(all) enum WorkspaceRoot {
    Present(root~ : FolderPath, real~ : FolderPath)
    Missing(root~ : FolderPath)
    Unavailable(root~ : FolderPath, reason~ : String)
    } derive(Eq,
    Debug
    )

    Workspace root availability resolved once via Inquiry::RealPath before running in-tree adapters and mount providers.

    WorkspaceRoot::equal

    automatically derived

    WorkspaceRoot::not_equal

    fn WorkspaceRoot::not_equal(x : WorkspaceRoot, y : WorkspaceRoot) -> Bool
    automatically derived

    WorkspaceRoot::to_repr

    automatically derived

    audit_intent_prose

    Runs deterministic Prose Term Audit over live workspace intent documents against all loaded Data Dictionary concepts.

    compose_workspace_sources

    fn compose_workspace_sources(workspace_id :
    WorkspaceId
    , workspace_root : FolderPath, adapters : SourceAdapters, providers : MountProviders, mounts : ReadOnlyArray[EvaluatedMount], problems : ReadOnlyArray[
    SourceProblem
    ]) -> Inquiry[DomainWorkspaceSources]

    Probes workspace_root once via Inquiry::RealPath and composes all in-tree sources and evaluated mounts into one DomainWorkspaceSources.

    default_document_scorers

    fn default_document_scorers() -> Array[&DocumentScorer]

    Default registered DocumentScorer chain.

    default_intent_adapters

    fn default_intent_adapters() -> Array[&
    IntentAdapter
    ]

    Returns the default registered intent adapters (OpenSpecIntentAdapter).

    default_mount_providers

    fn default_mount_providers() -> MountProviders

    Default built-in mount providers (folder).

    default_project_title

    Total derivation of a valid default ProjectTitle from a project anchor.

    default_source_adapters

    fn default_source_adapters() -> SourceAdapters

    Default built-in in-tree source adapters (openspec, okf, dictionary).

    default_workflow_config

    Default workspace workflow configuration when .mission-control/workflow.toml does not exist.

    default_workspace_name

    Total derivation of a valid default WorkspaceName from a workspace root folder.

    desktop_candidates

    fn desktop_candidates(base : BaseFolder, name :
    InstanceName
    , channel :
    Channel
    , env : Map[String, String]) -> ReadOnlyArray[FolderPath]

    The programs that can be the desktop app of an instance, in the order of the search: the one of the variable MISSION_CONTROL_DESKTOP, the app that is installed for the instance, and the app that is installed for the channel of the build. The caller looks which of them is there.

    Each path is complete, because the system looks for a name in the working directory also. So the list does not have a relative path of the variable.

    desktop_program

    fn desktop_program(folder : FolderPath) -> FolderPath

    The path of the program in a folder with an installed desktop app. The names are the ones that Proton gives to the product Mission Control Desktop.

    FolderPath has the rules for the path of each file also.

    desktop_variable

    let desktop_variable : String

    The environment variable with the path of another desktop app.

    fnv1a_32_hex

    fn fnv1a_32_hex(input : String) -> String

    Deterministic 32-bit FNV-1a digest over UTF-8 bytes, formatted as 8 lower-case hexadecimal digits. Produces the same output across all targets.

    format_utc_timestamp

    Formats a UnixMillis timestamp as a native RFC 3339 UTC offset datetime (YYYY-MM-DDTHH:MM:SSZ, or YYYY-MM-DDTHH:MM:SS.mmmZ when milliseconds are non-zero). Values above 9999-12-31T23:59:59.999Z are clamped to that maximum 4-digit year instant.

    git_create_worktree

    fn git_create_worktree(store : FolderPath, target_path : String, branch : String, start_point? : String?) -> Inquiry[LifecycleOutcome]

    Pure Inquiry creating a linked Git worktree at target_path on branch (reusing an existing local branch if present, or creating a new branch from start_point / HEAD).

    git_delete_worktree

    fn git_delete_worktree(store : FolderPath, ws_root : FolderPath, force? : Bool) -> Inquiry[LifecycleOutcome]

    Pure Inquiry removing a linked (non-default) Git worktree.

    git_rename_worktree

    fn git_rename_worktree(ws_root : FolderPath, new_branch : String) -> Inquiry[LifecycleOutcome]

    Pure Inquiry renaming the active branch of a Git workspace.

    git_reset_worktree

    fn git_reset_worktree(ws_root : FolderPath, target? : String?, hard? : Bool) -> Inquiry[LifecycleOutcome]

    Pure Inquiry resetting a Git worktree to target (or HEAD), refusing dirty worktrees unless hard is true.

    inspect_workspace_dictionary

    Pure Inquiry loading all available local (.mission-control/dictionary) and mounted (role = "dictionary") RDF/SKOS graphs for a workspace and running live Prose Term Audit against intent.

    inspect_workspace_intent

    Pure Inquiry inspecting a workspace root's openspec/ directory under strict symlink confinement and running registered @intent.IntentAdapters.

    inspect_workspace_sdlc

    Pure Inquiry reading .mission-control/workflow.toml (if present and workspace-confined) and evaluating scorecards & Rego gates.

    intent_projection_to_wire

    Projects a pure domain @intent.IntentProjection into the wire DTO reply @app.WorkspaceIntent.

    is_workspace_mount_key

    fn is_workspace_mount_key(key : String) -> Bool

    Reports whether a dotted configuration key path belongs to workspace.mounts.

    last_opened

    The project that the user opened last. For equal times it is the later one in the list. None when the user opened no project.

    linux_data_folder

    fn linux_data_folder(env : Map[String, String]) -> FolderPath raise BaseFolderError

    The folder for the data of the programs of a user on Linux: XDG_DATA_HOME, or .local/share in the home folder. The application menu also reads it.

    load_workspace_mounts

    fn load_workspace_mounts(workspace_id :
    WorkspaceId
    ?, workspace_root : FolderPath?, host_env : HostEnv) -> Inquiry[MountConfigResult]

    Pure 4-target inquiry that loads workspace.mounts across isolated system, user, and workspace configuration layers without merging mounts across trust boundaries or reading MISSION_CONTROL__WORKSPACE__MOUNTS__* environment variables.

    merge_local_concept_turtle

    fn merge_local_concept_turtle(existing_ttl : String, pref_label~ : String, definition~ : String, alt_labels? : ReadOnlyArray[String]) -> String raise DictionaryConceptError

    Validates a new local SKOS concept, merges it into existing_ttl (if any), and returns the updated canonical Turtle serialization.

    mount_refusal_summary

    Human-readable summary of a MountRefusalReason for CLI and config show.

    nearest_project

    The nearest project that contains the folder: the project folder that is the deepest one. A project whose path does not parse on the platform of the folder is ignored.

    parse_offset_datetime

    fn parse_offset_datetime(text : String) ->
    UnixMillis
    raise TimestampError

    Parses an RFC 3339 offset datetime (YYYY-MM-DDTHH:MM:SS[.frac](Z|±HH:MM)) into UnixMillis. Rejects offset-less datetimes, invalid calendar dates, and instants before 1970-01-01T00:00:00Z.

    parse_workflow_toml

    fn parse_workflow_toml(text : String, origin? : String) -> (
    WireWorkflowConfig
    , Array[String])

    Parses .mission-control/workflow.toml into a WireWorkflowConfig, falling back to defaults for omitted fields.

    project_id_of

    Derives the deterministic RFC 8141 URN ProjectId (urn:mc:proj:<slug>-<fnv1a32hex>) from a project's canonical anchor.

    score_to_grade

    fn score_to_grade(score : Int) -> String

    Maps a numeric 0..100 score to a deterministic A..F letter grade.

    serialize_workflow_toml

    fn serialize_workflow_toml(preset~ : String, min_scorecard~ : Int, require_security_gate~ : Bool) -> String raise WorkflowConfigError

    Validates and serializes a workspace workflow configuration to TOML for .mission-control/workflow.toml.
    fn set_cookie(name : CookieName, cookie : Secret) -> String

    The value of the Set-Cookie header for a new session. It has the cookie value of the session, and never the view key.

    The cookie has no end time and no domain: the browser keeps it until the browser closes, and sends it to 127.0.0.1 only, but to each port. A script cannot read it, and a request from another site does not have it.

    site_decision

    fn site_decision(port : Port, host~ : String?, origin~ : String?) -> SiteDecision

    Checks the Host and the Origin header of a request to the server on a port. None is an absent header.

    The only host is 127.0.0.1:<port> and the only origin is http://127.0.0.1:<port>, with the exact text. An absent origin is accepted, because a browser does not send it for a page that the user opens. The host is checked first. A browser leaves out the port 80, so a server on that port refuses its requests.

    source_id_in_tree

    Derives the deterministic workspace-scoped RFC 8141 URN SourceId (urn:mc:src:<slug>-<fnv1a32hex>) for an in-tree source.

    source_id_mounted

    Derives the deterministic workspace-scoped and trust-scoped RFC 8141 URN SourceId (urn:mc:src:<slug>-<fnv1a32hex>) for a configured mount.

    trust_tier_of_file_role

    Maps a moon-lander-config file role to a workspace mount TrustTier. Every file discovered from a workspace root (including UserOverride, which a cloned repository can commit) maps to an untrusted tier.

    workspace_id_of

    Derives the deterministic RFC 8141 URN WorkspaceId (urn:mc:ws:<slug>-<fnv1a32hex>) from a workspace's canonical root folder.