Dense-Mem
← Background workers

Record activity in the background

Follow the signals a request produces for operators and account holders.

Update a credential’s last use

  1. Assistant

    Use the band credential

  2. Credential details

    Last used updated

Maya can check when the band assistant’s credential was last used.

  1. Authenticated API-key use

    Record an observation

  2. Activity writer

    Persist the latest timestamp

A background writer coalesces activity observations by credential. The most recent authenticated use can appear after the request returns.

last_used_attimestamp
Credential activity writer
"2026-11-24T14:00:00Z"
Credential details
"2026-11-24T14:00:00Z"

The writer merges recent uses by credential and persists the newest timestamp, so the portal can show recent activity.

credential.idUUID
Server · stable credential record
"30000000-0000-4000-8000-000000000002"
My credentials and permitted team actions
"30000000-0000-4000-8000-000000000002"

Create or rotate by this credential ID. Rotation issues a replacement secret and keeps the same credential identity and private space.

Collect operational signals

  1. Operation

    Save the rehearsal note

  2. Control Portal

    Logs and usage

The operator can see usage counts and find request entries in Logs.

  1. Request observation

    Bounded record

  2. Operation log writer

    Keep the request identity

  3. Usage metrics writer

    Aggregate usage signals

Operation logs and usage metrics have separate background writers and distinct outputs.

correlation_idstring
Request instrumentation
"band-save-01"
Operation log writer → Logs
"band-save-01"

The request identity travels with bounded operational events. The writer stores them for correlated operator inspection.

data.system.requestsinteger
Usage metrics writer · request buckets
1
GET /control/api/metrics
1

The writer persists request counts in usage buckets. The endpoint reads the requested window and returns the total for that window.

Keep recall diagnostics

  1. Previously recalled passage

    We rehearse in Room 4.

  2. Control Portal

    Recall feedback

An operator can inspect Recall context and feedback about whether a result helped.

  1. Recall event

    Capture bounded context

  2. Background event writer

    Persist a record for review

The Recall feedback event service persists bounded event context. Later submitted feedback can attach to that event.

recalls[0].recall_event_idstring
Host · copied from recall_id
"20000000-0000-4000-8000-000000000003"
Feedback event lookup
"20000000-0000-4000-8000-000000000003"

The host sends the Recall event ID after observing the outcome. Dense-Mem can link the feedback to the original result set.

submit_recall_session_feedback request · Required · Up to 128 characters

recalls[0].usedboolean
Host · observed answer behavior
true
Feedback record and operator review
true

True records that the host actually used the recalled material. This is an observation attached to the event.

submit_recall_session_feedback request · Required

Refresh optional pricing

  1. Provider reports usage

    240 input tokens

  2. Cost display

    Uses the current matching rate

When pricing is configured, new provider calls can use the refreshed rates in cost estimates.

  1. Saved pricing rules

    Per-million-token rate

  2. Pricing refresh

    Read current snapshot

  3. Telemetry estimate

    Combine rate with known usage

The optional pricing refresh checks for an updated cached configuration. Missing rate or usage is represented separately from measured cost.

input_usd_per_million_tokensdecimal
Saved model pricing rule
0.4
Telemetry pricing snapshot
0.4

This example rate is loaded into the pricing snapshot when enabled. The estimator uses a matching configured rate and reported input tokens.

input_tokensinteger
Provider usage observation
240
Telemetry usage accounting
240

When the provider reports usage, telemetry can use the reported count to describe this call and estimate cost with applicable pricing.

Read the reference