Skip to content
Taku Docs

Version 1.4.0 (current)

Context, updates and recovery

Understand stable background, appended updates, immutable snapshots and unconfirmed delivery without confusing traces with long-term memory.

Taku Harness records which background was supplied to a conversation and when it changed. Codex native conversations still preserve chat and tool execution. The context window, conversation history and Harness traces serve different purposes and cannot substitute for one another.

Task-scoped Memory references

With Agent memory access on, the assistant's background includes the whole board and the parts of the user card picked for each message. After the user deletes or edits memory, existing conversations get a note on their next turn that earlier memory may be void. See Use Memory in an assistant task.

Retrieve memories on demand

Taku Memory has a separate APK, private storage and protected Agent retrieval tools. Harness supplies retrieval policy; the model searches for the task and reads content, source and revision on demand. The whole database is not injected into developer background. Context receipts are not a memory database, and ordinary system AI permission does not grant memory access.

Background for a new conversation

A new conversation receives its initially assembled stable background through thread/start.developerInstructions. Five APK modules plus the device environment and native skill catalog form the seven background modules. The conversation preserves the actual initial bytes and reuses them on resume.

This keeps a stable prefix but does not promise a cache hit. Actual cached input comes from cachedInputTokens in native thread/tokenUsage/updated events. Those values alone cannot establish how much benefit Harness caused.

When changes enter a conversation

When environment, response style, skill catalog or explicit selection changes, Harness uses thread/inject_items before the next turn to append a developer message containing only changed fields. Old background and messages remain intact. An active turn continues using its confirmed snapshot.

A new conversation preserves stable background; confirmed updates made while idle affect the next turn, while the previous turn keeps its snapshot
Context sequence diagram. Appended updates preserve history; delivery is not automatically retried without confirmation.

Manual appending also requires an idle conversation. For an older conversation not yet managed by Harness, background is appended after existing history and the panel identifies that placement. It is not backfilled as initial background.

Develop against the device's actual protocol

The locked Codex 0.161.0 schema does not accept developerInstructions in turn/start. Do not use that field for updates. Runtime upgrades require renewed checks of schema, delivery and recovery behavior.

Snapshots, receipts and state projections

RecordPurpose
Immutable content objectsStore background or changes by content hash
Conversation receipt chainLink records with previous hashes and associate context with native execution identifiers
state.jsonRebuildable projection of the current head, snapshot and skill selection

Objects and references are written before the projection. Startup validates the chain and can recover stale state from stored records. Hash checking detects corruption and checks consistency; it does not provide independent security attestation against tampering.

When delivery is unconfirmed

Injection receipts have planned and confirmed stages. If sending receives no confirmation, the state becomes pending. Automatic replay is blocked, and native history must be checked to determine whether delivery occurred. This avoids blind duplication but does not guarantee end-to-end exactly-once delivery.

If delivery was confirmed but the projection was not saved, receipts can recover it. When the model is already running, later observation-recording failures set auditIncomplete; these should not leave the executing task without a terminal state. Pre-model context delivery must still be confirmed. These two timings must remain distinct.

What traces do and do not show

The panel shows Taku-managed background, environment, the latest 100 receipts, native turn/item IDs, sanitized commands and actual usage. Historical receipts remain stored, with chain validation on reading.

It does not expose hidden runtime system instructions, record reasoning or raw tool output, or explain model-internal causality. Check actual tool output in native execution records. Background and receipts are not a general long-term memory or cross-device synchronization service; those need their own implementation and verification.

Next: Open the panel and inspect real background and states.

Research preview · Current availability

Documentation retrieval

Search the published documentation for excerpts and citations. This uses full-text retrieval, not LLM-generated answers.

Every result links to the original article. Read research ideas separately from verified capabilities.

Help and troubleshooting →
Was this article helpful?
Report an issue or give feedback

Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.

Built with Fumadocs

On this page