Dense-Mem
← Inside the backend

When is a note saved?

Follow the exact words from a save request through the checks and the final receipt.

Receive the original

  1. Maya · Band chat

    We rehearse in Room 4.
    Bring headphones.

  2. Assistant

    Saved for the band

Maya asks her assistant to keep both lines of her message.

  1. Original item

    We rehearse in Room 4.
    Bring headphones.

  2. Offered boundary

    Between the two ideas

After admission, the server offers allowed cut positions to the partition model. The original stays the authority for what can be saved.

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

cut_refsarray of IDs
Partition model · proposed boundary
["p_example_n"]
Dense-Mem · validates and slices
["p_example_n"]

The model chooses from server-issued boundary IDs for this item. The server rejects an unknown ID and derives the words and offsets itself.

idempotency_keystring
Assistant · retained before sending
"band-note-01"
Remember replay lookup
"band-note-01"

The assistant keeps the key and the whole request. If the reply is lost, a retry with both unchanged can recover the original result.

remember request · Required · Up to 128 characters

Try an invalid split
  1. Maya · Band chat

    We rehearse in Room 4.
    Bring headphones.

  2. Assistant

    Saved for the band

Maya asks her assistant to keep both lines of her message.

  1. Original item

    We rehearse in Room 4.
    Bring headphones.

  2. Offered boundary

    Between the two ideas

After admission, the server offers allowed cut positions to the partition model. The original stays the authority for what can be saved.

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

cut_refsarray of IDs
Partition model · proposed boundary
["p_example_n"]
Dense-Mem · validates and slices
["p_example_n"]

The model chooses from server-issued boundary IDs for this item. The server rejects an unknown ID and derives the words and offsets itself.

idempotency_keystring
Assistant · retained before sending
"band-note-01"
Remember replay lookup
"band-note-01"

The assistant keeps the key and the whole request. If the reply is lost, a retry with both unchanged can recover the original result.

remember request · Required · Up to 128 characters

Check the suggested split

  1. Original item

    We rehearse in Room 4.
    Bring headphones.

  2. Room passage

    We rehearse in Room 4.

  3. Gear passage

    Bring headphones.

The two ideas can be found separately, in Maya’s exact words.

  1. Original item

    We rehearse in Room 4.
    Bring headphones.

  2. Validated split

    Exact slices of the source

  3. Accepted passage

    We rehearse in Room 4.

The server validates every proposed boundary, checks the whole assessment, and prepares required search data before commit.

cut_refsarray of IDs
Partition model · proposed boundary
["p_example_n"]
Dense-Mem · validates and slices
["p_example_n"]

The model chooses from server-issued boundary IDs for this item. The server rejects an unknown ID and derives the words and offsets itself.

span_startinteger
Validated split · first position
0
Remember result and Trace
0

The first span starts at Unicode code-point offset zero. Dense-Mem stores the offsets with the occurrence so it can recover the exact slice.

remember result · Optional

span_endinteger
Dense-Mem · accepted split
23
Stored span → Trace
23

The end is exclusive. The first passage includes 22 visible characters and the line break. Trace returns the same bound to locate the passage in the original.

remember result · Optional

Try an invalid split
  1. Original item

    We rehearse in Room 4.
    Bring headphones.

  2. Check failed

    The proposed split is invalid

The suggested split is rejected.

  1. Allowed positions

    Server-issued IDs

  2. Model proposal

    Unknown ID

  3. Validation

    Regenerate complete response

An unknown boundary invalidates the whole response. A bounded retry requests a complete replacement.

cut_refsarray of IDs
Model · malformed proposal
["unknown-example"]
Dense-Mem · bounded regeneration
["unknown-example"]

This example ID was never offered. The complete result is invalid, so the server requests a replacement response and publishes nothing if validation never succeeds.

cut_refsarray of IDs
Partition model · proposed boundary
["p_example_n"]
Dense-Mem · validates and slices
["p_example_n"]

The model chooses from server-issued boundary IDs for this item. The server rejects an unknown ID and derives the words and offsets itself.

Publish both passages

  1. Maya’s room note

    We rehearse in Room 4.

  2. Assistant

    Saved and ready to find

Sam can find the new room note once the save completes.

  1. Evidence and provenance

    We rehearse in Room 4.

  2. Required search data

    Ready for Recall

  3. One durable commit

    Completed receipt

PostgreSQL publishes the accepted passages, source links, search data, and terminal receipt together.

processing_stateenum
Remember · final response
"completed"
Assistant · confirms the save
"completed"

The final result is safe to acknowledge after required assessment, search preparation, and the durable transaction succeed.

remember result · Required

search_stateenum
Remember terminal result
"current"
Assistant · confirms availability
"current"

Required search preparation and the write have succeeded. When Topic organization is enabled, Remember also commits any grounded direct memberships for eligible shared Evidence.

remember result · Required

occurrences[0].partition.source_item_idUUID
Trace · recorded occurrence
"20000000-0000-4000-8000-000000000002"
Original submitted item
"20000000-0000-4000-8000-000000000002"

The occurrence’s partition points to the original item. Its stored bounds locate the slice inside that item.

trace_memory result · Required · Up to 128 characters

Try an invalid split
  1. Original item

    We rehearse in Room 4.
    Bring headphones.

  2. Assistant

    No new memory was saved

If the split still fails, the assistant reports a failed save.

  1. Invalid replacement

    Retry limit reached

  2. New Records

    Zero accepted passages

No accepted passage or search record commits for this request.

cut_refsarray of IDs
Model · malformed proposal
["unknown-example"]
Dense-Mem · bounded regeneration
["unknown-example"]

This example ID was never offered. The complete result is invalid, so the server requests a replacement response and publishes nothing if validation never succeeds.

evidence[0].contentstring
Assistant · Remember request
"We rehearse in Room 4.\nBring headphones."
Original submitted item
"We rehearse in Room 4.\nBring headphones."

The assistant sends both lines verbatim. Dense-Mem keeps the original so it can validate the split and trace each passage to its source.

remember request · Required · Up to 16384 characters

Read the reference