Agentic.Workspace.Identity (agentic v0.2.2)

Copy Markdown

Workspace identity file detection and status.

Determines workspace identity status: fresh (no files), partial (some), or established (all present). Used by ContextAssembler for prompt assembly.

Summary

Functions

The list of all workspace files.

Check the identity status of a workspace.

The list of core identity files that trigger onboarding.

Read all workspace files, returning a map of filename to content.

Types

status()

@type status() :: :fresh | :partial | :established

Functions

all_files()

The list of all workspace files.

check(ctx)

@spec check(String.t() | Agentic.Storage.Context.t()) :: %{
  status: status(),
  present: [String.t()],
  missing: [String.t()]
}

Check the identity status of a workspace.

Returns a map with:

  • :status:fresh (no identity files), :partial (some), or :established (all three)
  • :present — list of existing identity files
  • :missing — list of missing identity files

identity_files()

The list of core identity files that trigger onboarding.

read_all_files(ctx)

@spec read_all_files(String.t() | Agentic.Storage.Context.t()) :: %{
  required(String.t()) => String.t() | nil
}

Read all workspace files, returning a map of filename to content.

Missing files have nil as their value.