You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finalize legacy action state and log the heartbeat
run_subconscious_maintenance()
Run all maintenance tasks
start_heartbeat()
Regenerate/decay banked energy, open the outcome ledger, and initialize a beat
finalize_heartbeat_economy(...)
Deduct exact spend, derive receipt-backed outcomes, and schedule the next beat
heartbeat_economy_status()
Inspect reserve, bank capacity, regeneration multiplier, and latest outcome
State and Config
Function
Description
get_state(key)
Get runtime state value
set_state(key, value)
Set runtime state value
get_config_text(key)
Get config value as text
get_config_int(key)
Get config value as integer
get_config_float(key)
Get config value as float
get_config_bool(key)
Get config value as boolean
set_config(key, value)
Set config value
Advisory Deliberation
Function
Description
get_deliberation_config()
Return the live persona, evidence, context, token, and summary-memory limits
begin_deliberation(...)
Open a bounded durable council session
record_deliberation_move(...)
Idempotently record one perspective, challenge, or synthesis move
complete_deliberation(...)
Atomically store the advisory verdict and optional grounded episodic summary
fail_deliberation(session_id, error)
Preserve an unsuccessful run and its cause
list_deliberations(limit, status)
List recent lifecycle records with recommendation and degraded flag
inspect_deliberation(session_id)
Return the full session, ordered moves, and verdict
The lifecycle is audit-only: no function in this subsystem grants permission,
blocks a tool, or performs the recommended action. Service-level partial failures
complete with metadata.degraded=true; unexpected orchestration failures use the
failed session status.
Consent
Function
Description
request_consent(...)
Returns external call payload for consent request
record_consent(...)
Record consent decision
Consent is permanent; refusal is handled by pause/termination, not revocation.
Structured node actions are limited to Apple Reminders, Notes, Calendar,
Shortcuts, redacted/local-only 1Password operations, system.run, and
screen.capture. The database refuses actions the exact paired node did not
advertise.
Embeddings
Function
Description
get_embedding(text[])
Generate embeddings via HTTP (cached in embedding_cache)
embedding_dimension()
Return configured embedding dimension
check_embedding_service_health()
Check if embedding service is reachable
Maintenance Functions
Function
Description
cleanup_working_memory()
Delete expired working memory items
batch_recompute_neighborhoods()
Refresh stale precomputed neighbors
cleanup_embedding_cache()
Prune old cached embeddings
Graph Operations
Function
Description
link_memory_to_concept(memory_id, concept_name)
Link memory to concept (creates if needed)
ensure_current_life_chapter()
Update narrative life chapter
Character and Identity
Function
Description
init_from_character_card(card_json)
Initialize identity from character card
Design Principles
DB functions return JSON payloads for external calls -- the app layer executes them
External call results are fed back via apply_external_call_result()
Outbox payloads are published by the app layer (e.g., via RabbitMQ)
The DB does not store queues -- transport logic stays outside
Advisory locks prevent double-execution of maintenance tasks