Skip to content

Taskix Memory

tenfyzhong edited this page Nov 28, 2026 · 31 revisions

Taskix project memory

Taskix remembers reusable project decisions, reasons and rejected alternatives, constraints, external facts and verified lessons that cannot be found in the repository. It keeps evidence and revisions, distinguishes user decisions from assertions, observations and inferences, and does not treat brainstorming as a confirmed decision. Repository facts, progress reports and internal tool chatter are not useful memory candidates.

Supported historical experiences and events with lasting significance can be external facts. Keep their source attribution and date, and distinguish them from claims about current status. A dated historical assertion does not expire merely because the event ended; ongoing external conditions may still need expiry.

Memory maintenance runs in taskix serve, a separate process shipped in the same executable and release as the task board. It uses the same Taskix configuration file. The service is available on macOS, Linux and Windows. This delivery does not install or launch a background service automatically. The former memory-subcommand service entry points have been removed; use the top-level serve and reload commands. Keep the CLI and service on the same build.

Enable and operate

Initialize Taskix and register the project normally. Add these sections to the existing ~/.config/taskix/config.toml (or the file selected by TASKIX_CONFIG or --config):

[memory.providers.openai]
api = "responses" # Explicitly required for GPT-6 Astra.
protocol = "openai"
base_url = "https://api.openai.com/v1"
api_key_env = "OPENAI_API_KEY"

[memory.agent]
provider = "openai"
model = "gpt-6-astra"
# Optional: omit to use the provider default.
reasoning_effort = "low"

memory.agent.reasoning_effort accepts none, minimal, low, medium, high and xhigh. The selected model/provider must support the requested level; unsupported levels produce a provider error without silently changing the model or effort. Omission sends no effort setting. Responses receives reasoning.effort; Chat Completions receives reasoning_effort. This setting applies to extraction, consolidation, repository review and deep queries. taskix reload applies changes to new work; running loops retain their configuration snapshot.

Export TASKIX_MEMORY_ENABLED=true or 1 to the CLI, agent host and memory service. Unset or any other value disables memory. Hooks read this variable directly and skip memory CLI calls when disabled; the CLI uses the same rule. Provider, embedding, projection and retrieval settings remain in config.toml. There is no [memory].enabled configuration option.

Provide the named provider credential to the service process, then run:

export TASKIX_MEMORY_ENABLED=true
taskix doctor
taskix serve
# From another terminal in a registered project:
taskix status
taskix memory search 'offline deployment'

Use a process manager such as launchd or a systemd user unit to run the same foreground command if desired. Give it an absolute executable/config path and configure the required provider credentials. On macOS/Linux, taskix serve loads a complete exported environment snapshot from the user's account login shell using -lc, following Agentix's Codex startup approach. Override the shell with TASKIX_LOGIN_SHELL, an absolute executable path supplied to the service. The lookup has a three-second deadline. Failure, missing/malformed framing or a timeout emits a diagnostic and retains the inherited environment; environment values and shell output are not logged. Successful snapshots honor shell unset operations and preserve whitespace and non-UTF-8 environment bytes.

The service then uses exec to restart itself once with the snapshot before loading configuration or initializing providers. The executable, arguments, working directory, PID and standard streams are preserved, so launchd/systemd continue supervising the same process. No global process environment is mutated. Only taskix serve performs this lookup; ordinary commands, diagnostics and configuration reload do not. Windows uses the environment supplied by its launcher and does not invoke a Unix login shell.

Memory model and embedding HTTP clients read http_proxy/HTTP_PROXY, https_proxy/HTTPS_PROXY, and NO_PROXY/no_proxy from this environment. There is no TOML proxy setting. Ordinary Taskix downloads use the inherited process environment. See outbound proxies for examples and bypass rules. Restart the service after changing exported variables.

If Fish is your account login shell, export TASKIX_MEMORY_ENABLED, service API keys and proxy settings in its configuration with set -gx, outside status is-interactive guards. Variables set only in an existing terminal are not available to a new login shell started by a service manager. The main agent's subscription is not provider authentication. Homebrew formulae can invoke taskix serve directly without a Fish dependency or a shell wrapper.

Ctrl-C stops service background loops; Unix also accepts SIGTERM and Windows accepts Ctrl-Break. Unfinished work resumes after its durable lease expires. One service can manage many Projects; a second process for the same database is rejected.

The default memory path is memory.sqlite3 beside [storage].path. Override with [memory.storage].path, using a distinct absolute path (~ is expanded). Keep this database: human edits, lifecycle decisions and suppression markers cannot be regenerated from conversation history. Indexes and vectors are derived.

The complete configuration example includes all limits. Ordinary board operations ignore memory model configuration. Memory reads load only location/retrieval settings and remain available when model configuration is invalid or the vault is missing. Missing provider credentials leave the service available for FTS and manual edits; maintenance reports its provider error. Invalid full service configuration prevents startup or reload.

taskix reload reloads the running service's startup configuration file and applies a validated snapshot to future work. The client's --config selects the service to contact; it does not replace the service's startup configuration path. Reload does not require a registered Project. In-flight loops finish with their original model/settings. Query admission limits retain process-wide accounting across reloads. Named providers also share admission across old and new model instances; changing max_in_flight updates this shared budget. Lowering it lets active requests finish and withholds new requests until usage falls below the new limit. Database paths, enabled state, IPC connection/size limits and logging settings require a restart; an incompatible reload keeps the running configuration intact. taskix doctor checks configuration, credential availability, database identity and service availability without a model request. Credential availability in doctor refers to the CLI environment; service.provider_errors describes the running process. doctor and status also report an uninitialized database when its parent directory is missing, without creating that directory.

Service logs

taskix serve writes tracing logs to stderr. To also write files, add these top-level sections to the same configuration file:

[logging]
level = "info"

[logging.file]
enabled = true
path = "~/.local/state/taskix/taskix.log"
rotation = "daily"
max_files = 7

File logging is disabled by default. Parent directories are created automatically. In unreleased builds, [logging].level always supplies the filter; RUST_LOG is ignored. Rotation accepts never, minutely, hourly or daily; rotated filenames append a UTC timestamp. max_files limits retained rotated files, not their size; never leaves one unbounded file. Normal CLI commands do not initialize logging.

Logs include startup, successful reload, shutdown, fatal errors and changed background-operation errors. Repeated identical background errors are suppressed until recovery or a changed error. Login-shell environment diagnostics occur before logging initializes and appear only on stderr. Restart after changing logging settings; taskix reload rejects those changes and keeps the active configuration intact.

Memory extraction

Since Taskix 0.8.3, queued memory sources go directly to the configured extraction model. Decision Providers configures the host plugin's task decisions. Historical screening observations may still appear in a decision metrics database.

Models and embeddings

Extraction, consolidation and repository review share [memory.agent]; each work item and retry starts a fresh Agent context. Clients and connection pools are reused, conversations are not. Models are called through explicit APIs, with structured tool responses and application-side evidence validation. The loop can page through preceding turns in the same Project and session, then read original messages to resolve references such as "use the second option." Each task still starts with fresh model context; history is retrieved on demand. Turn ordering and current source metadata are indexed, including a transactional backfill when opening an older database. Neighbor lookup returns summaries; message bodies are read separately when needed.

[memory.agent].extraction_debounce_ms defaults to 1000 (range 0..60000); zero disables the wait. Claimed extraction waits before model execution so rapid revisions can supersede it without paying for a request. Every source snapshot remains durable. Lease validity is checked approximately every 200 ms; superseded or expired work drops its running model/tool future. Provider-side billing may already have occurred. An unchanged message is not treated as a permanent cache hit: new context can require a new decision. The lease must exceed the task timeout plus the debounce rounded up to seconds. memory.providers.<name>.api accepts responses and chat_completions for compatible models/providers and defaults to chat_completions when omitted. The Agent uses the API of memory.agent.provider, together with that provider's base_url and protocol. Move any existing memory.agent.api setting into the referenced provider section and remove it from [memory.agent]; the old field is rejected. GPT-6 Astra requires Responses. There is no automatic model fallback or login-session subprocess.

Embedding is optional. FTS5 supports Chinese segmentation and English identifiers without network calls. Enable semantic recall by adding:

[memory.embedding]
enabled = true
provider = "openai"
model = "text-embedding-3-small"
# dimensions = 1536
batch_size = 16
max_concurrent_projects = 4
request_timeout_seconds = 10

For a separately running Ollama embedding endpoint:

[memory.providers.local_embedding]
protocol = "ollama"
base_url = "http://127.0.0.1:11434"
max_in_flight = 2

[memory.embedding]
enabled = true
provider = "local_embedding"
model = "YOUR_INSTALLED_EMBEDDING_MODEL"
# Set query_prefix/document_prefix if that model requires retrieval prefixes.

Replace the existing embedding section; TOML cannot declare it twice. The service does not download Ollama models. Omit api_key_env for an unauthenticated local provider. OpenAI-compatible embeddings use /embeddings; Ollama uses /api/embed with truncation disabled. Dimension zero is never an embedding: omitted dimensions are discovered from the first successful response.

Model, endpoint, dimensions or prefix changes create a new index generation. Asynchronous results are fenced by generation and memory revision; mixed vectors are never searched together. Background batches fill the new generation while FTS stays usable. Search combines independent lexical and exact cosine rankings with reciprocal rank fusion. Responses report fts, hybrid, fts_fallback, or offline_fts. status --project PROJECT_ID reports the active profile and indexed count. reindex rebuilds FTS in bounded pages; changing the embedding profile triggers its own rebuild. Old vector generations are not used for recall.

Background embedding runs at most one batch per Project and up to max_concurrent_projects Projects concurrently (default 4, range 1..32). Admission rotates fairly and completed Projects cool down independently, so one slow Project does not hold an entire round. Provider max_in_flight still applies to all requests together. With a provider limit of two or more, background model/embedding work leaves one slot for online query embeddings. With a limit of one, active requests are not preempted; a queued query precedes subsequent background batches. Reserving capacity reduces peak background throughput. Reload cancels old batches; generation/revision fences remain active. The Project list refreshes every five seconds instead of on each completion. Empty Projects back off exponentially to a maximum of 30 seconds. Committed memory changes in this service wake their Project immediately; changes from another process are discovered by periodic scans. Lost notifications trigger a recovery scan. Nonempty batches and errors retain the normal polling interval, and per-record failure backoff still applies.

Embedding failures are persisted per memory revision and index generation, with backoff and at most three automatic attempts. Input-related HTTP 400/413/422 batch failures are retried individually so one rejected document cannot block later valid records. Outages, authentication errors and rate limits do not fan out into individual requests. status includes up to 20 current embedding_failures with attempts, retry time and error. memory reindex clears failure state for the records on its page, permitting an explicit retry; it does not discard already valid vectors. A memory edit or new model generation also permits fresh attempts. Responses incompatible with the current profile's resolved dimensions also enter failure backoff; results from superseded generations are simply discarded. Retry state survives daemon restarts and paired backups.

Query vectors have a 64-entry, one-minute, project/generation-scoped cache; up to 64 distinct in-flight queries are shared by Project, generation and exact query text. Each caller keeps its own wait deadline. One caller timing out does not cancel another caller's request; shared work has the configured query timeout. Failures are not cached. Dropping the old runtime cache cancels its pending work. Retrieved memory results themselves are not cached, so forgetting and revisions take effect on subsequent reads. Provider failures/timeouts fall back to FTS. Exact vector scanning uses 256-row pages and a fixed-capacity top-k heap, sorted once at the end with deterministic score/ID ordering. Its CPU/I/O cost still grows with the number and dimensions of vectors in the selected Project.

Source delivery, concurrency and cost

Visible turns are captured transactionally in the task database, together with an immutable outbox receipt. Explicit Project/Job ownership and canonical cwd resolve scope; unknown ownership is not guessed from the latest Job. Worktrees share their canonical Project. Pure discussions can be sources without a Job. Late replies and corrections create new source revisions. Deleted/expired original discussion records do not remove already retained evidence. Project archival stops new background maintenance; history remains explicitly readable. Missing registered workspace directories are treated as unavailable repositories. Periodic repository reviews skip them and resume when the directory returns; existing memories and evidence remain readable. Extraction that needs an unavailable repository fails through the normal work retry mechanism rather than accepting unverified candidates. After the retry budget is exhausted, restore the directory and use taskix memory retry WORK_ID. Permission errors and roots replaced by files still report background errors.

background_errors.worker records the most recent worker failure until a subsequent work item succeeds; empty queue probes do not clear it. Individual work errors and retry states remain available through taskix memory work WORK_ID even after the worker resumes successful processing.

The service commits receipt, evidence and queue entries before acknowledging the outbox. Acknowledgement means received, not extracted. No model work runs inside the main agent or task transaction. Intake failures are retried separately from the forward replay scan. Replay has its own durable checkpoint, advanced only after each input has been persisted. It stops at a failed input and retries without skipping it, even when later inputs arrived through pending intake. The maximum stored source sequence is not a recovery checkpoint. Databases from before checkpoint support perform one idempotent replay from zero to repair gaps. Durable retries, leases and source revisions fence stale workers. Startup checks stored sources against the task history and resumes ordered replay, including acknowledged inputs after an older memory restore. Source snapshots are deliberately retained; there is no automatic prune.

The default worker budget is four concurrent loops, at most two extraction loops per Project, and one consolidation/review loop per Project. Different Projects can consolidate concurrently; fair scheduling prevents a single busy Project from owning all claims. Live intake precedes historical backfill and review within a Project. Providers also have an independent in-flight limit. Normal queries and optional deep queries have separate service limits.

Sources are split at UTF-8 boundaries into 16 KiB chunks. Candidate consolidation is split into bounded batches; each atomic memory document is limited to 60 KiB. Default loop budgets are 12 steps, 24 tool calls, 128 KiB serialized context, 8,192 output tokens, 90 seconds per request and 240 seconds per work item, with three attempts. Invalid repo_search arguments return corrective feedback to the model within the same loop and consume the normal call budget. They do not count as repository inspection. Storage and other operational failures still fail the work attempt. Empty model replies receive a reminder to submit through a tool. Extraction and consolidation submissions receive pure structural validation before acceptance; invalid fields or missing current-source evidence return bounded feedback in the same loop. These corrections consume the original step, call, context and timeout budgets. Database fencing and literal-source validation still run atomically at commit and are not bypassed. Each memory permits one to sixteen evidence quotations; an oversized merge should become a separate scoped memory instead of discarding prior evidence. Empty extraction workers back off up to five seconds, with post-commit notifications for intake, consolidation work, scheduled reviews and explicit retries. A work-generation check prevents a stale empty result from overriding a newer notification. Periodic probes recover cross-process writes and expired leases; existing retry availability and concurrency gates still apply. Lowering the context limit below a work item's needs causes a reported failure rather than truncating evidence. work exposes attempts, configuration, usage, repository inspection digests and inspected HEAD.

Extraction adds no model context to the main agent. The updated Codex/Claude prompt hooks and Pi/OMP extension request a relevant packet, normally at most 8 items and 6,400 UTF-8 bytes, within a 1.5-second host deadline. The packet is whole-entry JSONL with a historical/untrusted-context notice. The actual token count depends on language/tokenizer; the bound is bytes, not a promised token count. A slow or unavailable query yields no injected memory and host work continues. Context injection caps semantic retrieval at the smaller of the configured query timeout and 750 ms, reserving time within the host deadline for FTS fallback and CLI/IPC. Ordinary search retains its configured semantic timeout. The host uses the first 1,000 prompt characters. FTS builds an OR query from at most 128 deterministically ordered unique terms instead of rejecting longer prompts; semantic embedding still receives the complete bounded query. The 4,096-byte query input limit remains in force. Agentix captures session events and uses the installed host integration for injection; it does not duplicate the packet inside Engine prompts.

The receiving host deduplicates memory ID/revision per session, both online and offline. The service caches prepared packets for same-turn retry but does not record their generation as delivery. A same-turn receipt is checked before retrieval using a read-only existence probe; a miss does not acquire a SQLite writer lock. Hits and final receipt creation are still checked inside the transaction to resolve races. Empty receipts are hits; a hit reports context_cache. Referenced memories are batch-revalidated for Project, revision, status and expiry before rendering within the current byte budget. Unchanged receipts refresh their timestamp at most hourly. Background maintenance removes receipts older than 30 days every minute, at most 1,000 rows per receipt table per pass. A context request that times out before the hook accepts its text cannot suppress memory in the next turn; old service-side delivery markers are ignored. Direct memory context CLI reads can return the same entries on later turns because they do not confirm host injection. Host receipts persist only metadata, not memory content. The hook accepts the text before asynchronously publishing its receipt, without another deadline race between those two actions. Receipt write failures or a host crash can cause a safe duplicate on a later turn. Host delivery and receipt persistence are not an atomic transaction across a process crash. Current user instructions and current repository evidence always take precedence; memory is not authorization.

Consistency and incremental compaction

Upgrade the CLI and memory service together to a build containing semantic compaction before using these commands. Compaction primarily splits legacy mixed memories and repairs records that have not yet been organized into atomic facts; new atomic writes reconcile their facts as part of the write transaction.

New extraction emits one memory per independently updateable fact. Each fact has a canonical entity, one attribute, qualifiers distinguishing applicability, and a value. Project/entity/attribute/qualifiers identify the fact independently of its wording and value. Deployment path, autostart, REALITY domain, client SNI and independent protocol/port settings remain separate.

The background writer checks exact fact matches and bounded related evidence. A new fact becomes active; an identical fact/value merges evidence; a confirmed later value makes the old record superseded and creates a new active record. The database permits at most one active version per fact identity, including concurrent writes. Original source dates establish precedence; late ingestion cannot overwrite newer knowledge. Uncertain incompatible claims become conflicted. Ordinary search, context and lists return only active, unexpired records; the read-only Agent tool memory_conflicts, list --all and explicit ID/history inspection expose unresolved claims separately. Human records are protected. Evidence, revision and lease guards apply to the whole transaction. Direct create/update/supersede/status writes also refuse active facts beside unresolved conflicting claims. Manual resolution must retire the other claims before activating the selected value; rejected writes roll back atomically.

Successful atomic writes are already reconciled and do not require another automatic compact. Schema 3 migration marks old mixed records dirty once, including previously compacted records. Upgrade the CLI and memory daemon together: older writers do not understand the fact identity constraint. Migration preserves sources/history and does not itself call a model.

The service schedules low-priority semantic compaction for eligible dirty revisions after memory writes. Existing history is processed once in batches of at most ten dirty records per unarchived Project per pass. Progress is durable per revision, so startup recovers unfinished work without reassessing unchanged completed records. Only active/conflicted, nonexpired Agent memories qualify for model work. Human and retired revisions stay out of the dirty candidate index; suspended failures are excluded by its partial index. Revisions expiring while waiting are drained in bounded pages without model calls. Commit checks expiry again after model execution, so an expired seed cannot be revived by a late proposal. Auxiliary metadata is backfilled once in an atomic migration; reopening does not repeat that full-memory scan. Full-service source validation remains separate. Configure automatic scheduling under the existing agent section:

[memory.agent]
compaction_enabled = true
compaction_debounce_seconds = 30 # Wait for dirty revisions to settle.

Set compaction_enabled = false to disable automatic scheduling; re-enable and reload to resume durable dirty work. A write wakes the compact loop, which sets a timer for the actual dirty deadline. Once no work remains, it waits for notifications without periodic compact scans or model calls. Unchanged assessed revisions are not rechecked daily. A successful compact does not enqueue its own output again. Pending/running seeds are deduplicated across restarts; seeds changed since scheduling are skipped without a model call, then any newer dirty revision resumes. Other service activities such as source intake and repository review retain their independent schedules. Compaction uses the normal provider, step, timeout and retry budgets and has lower priority than live intake and backfill within its Project. Search, context and ask never run compaction.

To explicitly enqueue an existing Project page:

taskix memory compact --limit 10 --json
# Continue with the returned next_after until it is empty:
taskix memory compact --after mem_ID --limit 10 --json

The limit is 1–100; output reports scanned, scheduled, work_ids and next_after. This schedules work rather than waiting for semantic completion. Inspect returned work IDs with memory work. Manual scheduling ignores the observed-revision/debounce checks but retains duplicate-work and protected-record guards. Legacy compact preloads bounded complete memory/source evidence and exposes only the submission tool. Repository review runs separately. It uses at most four model steps (or a lower configured limit) for the proposal and validation corrections, without repeated searches or source reads. Provider/task timeouts, tool limits and retries remain unchanged. Insufficient evidence keeps the seed unchanged with an explanation. Proposal evidence items use memory ID and zero-based quote index; the worker restores literal quotes and their source IDs before validation. The submission schema permits only supplied memory IDs and quote indices. Invalid indices receive their valid range as correction feedback. Missing evidence reports up to sixteen memory/quote references and the total missing count, so the model can reuse the exact originals. Each submitted part requires a non-null fact; protocol, container port and published port remain independent. The seed is supplied once, with its current conclusion as migration_scope. Example attributes and a formerly broader title do not require unrelated facts; preserving a complete quotation does not require extracting every fact inside it. Related assessments must use the supplied IDs and revisions, and can only keep a record or retire a whole legacy agent record. Atomic and human records can only be kept by these assessments; atomic changes use part-level reconciliation. Each proposed new identity is also checked against the active-fact index, including matches outside the initial lexical snapshots. Existing targets also receive indexed identity/value, actor, status and revision checks; an invalid target adds an indexed identity lookup for a replacement hint. At most thirty-two metadata reads for sixteen parts return bounded feedback with IDs, revisions, actor and same-value flags; full quotation bodies are not reloaded. Operational database failures stop the attempt rather than asking the model to correct infrastructure errors. Fenced transaction checks still protect concurrent changes after validation. Untouched atomic and human snapshots remain unchanged without redundant keep assessments. Explicit assessments are still validated, atomic changes require guarded parts, and every related legacy agent record still needs an assessment. An untargeted create of the exact same indexed agent fact/value is normalized to a merge using its current ID/revision, without another model call. Different values, human records and explicit targets remain subject to normal conflict and replacement decisions. Preloaded snapshots share one quotation catalog containing each exact receipt/message/quote once; memory evidence arrays retain their original index order through catalog references. The worker expands output memory ID/index references from the original snapshots and still validates full literal evidence and expanded submission size before committing. Preloaded source author roles distinguish user decisions/assertions from assistant observations/inferences; assistant-only user decisions are corrected before committing, with evidence checks repeated by the store. Compact splits a legacy mixed record into independent atomic facts. For example, a record containing deployment path, autostart and domain produces three records. When only the domain changes later, its old version becomes superseded and its replacement becomes active; path and autostart remain unchanged. Existing atomic facts are reused only for matching identity/value or guarded replacement. Overlapping legacy records become superseded after every remaining fact and literal quotation is preserved. Each part displays derived_from IDs, and the store retains the complete one-to-many lineage and original revisions. A mixed record's superseded_by points to the first part. Its historical fact: null remains intact; the new records display structured facts. Other active records with fact: null are legacy records whose queued split has not completed. Use memory work to distinguish queued/running work from a failed or suspended split. No unrelated attributes are merged into an umbrella configuration. A domain and SNI may legitimately share www.sakura.ad.jp; there is one active domain fact, not one textual occurrence across all attributes. Altered quotations receive correction feedback before writing; invalid evidence or stale guards roll back all parts and retirements. Human records and the evidence budget remain protected.

An explicitly authorized one-shot migration can use the repository's compact_codex example with an existing Codex subscription, gpt-6-luna and reasoning low. It selects explicit work IDs or only active agent-authored legacy records in a complete Project page below one hundred records, and executes them through normal leases, cancellation, retries and fenced writes without claiming other queue items. Back up the memory database and pause the competing memory worker first; resume it and sync the normal memory projection afterward. Supply a separate configuration file for any bounded migration deadline override so the installed daemon's provider and default budgets remain unchanged. The command also requires the actual Project repository directory and validates it before enqueueing work. Process events and stderr retain partial request diagnostics on timeout or cancellation; partial output is never accepted as a complete reply. Generated Markdown is never edited directly. See the repository's memory acceptance guide for the opt-in command and diagnostic artifact handling. Exhausted work remains suspended until an explicit retry, manual compact or changed memory revision. It does not authorize forgetting, reclaim version/source storage, or prove every conflict was found by bounded retrieval.

Forgetting remains explicit. A current user message containing exactly Forget memory <ID or TITLE>. or 忘记记忆 <ID or TITLE> can authorize a consolidation proposal with matching source evidence. Negated, quoted and historical requests do not. The revision-guarded CLI in the next section remains the direct way to forget a memory; suppression prevents historical replay.

Provider errors expose bounded recognized status/schema details and the known unsupported-location diagnostic, without echoing arbitrary provider text. Permanent HTTP 4xx errors, except 408 and 429, stop retries immediately. After fixing a provider key, request or upstream route, retry the affected work ID. An upstream region rejection requires changing that provider's actual egress; changing the Taskix request alone does not repair it. Tool calls are required when tools are supplied, and the original final step is reserved for submission.

Inspect, correct and forget

All commands accept global --project PROJECT_ID and --json. Without an explicit Project, reads resolve the registered canonical cwd without registration or migration. Reads can use the existing memory database in read-only mode when the service is stopped; writes require the service.

taskix memory list --limit 20
taskix memory show mem_ID
taskix memory show mem_ID --revision 1
taskix memory source receipt_ID --message MESSAGE_ID --offset 0
taskix memory context 'deployment constraint' --session SESSION --turn TURN --budget 6400
taskix memory work 42
taskix memory receipt receipt_ID --wait-seconds 10
taskix memory retry 42
taskix memory reindex --limit 50

Follow returned cursors with --after; receipt waits are bounded to 300 seconds. source returns metadata unless a message is selected, then a bounded UTF-8 page. Historical intake is explicit and resumable:

taskix memory backfill job_ID --offset 0 --limit 20

Follow next_offset until complete. This handles legacy bound Job messages; enabling memory does not scan all existing Jobs automatically. Source changes cancel unfinished old extraction/consolidation work. Completed memories remain versioned and are reconciled by subsequent evidence, not erased with a turn. Cancelling a source Job also invalidates its supported facts as described below.

Create/update takes a JSON memory document, for example:

{
  "title": "Offline deployments",
  "conclusion": "Production deployments must work without public internet.",
  "rationale": "Customer network policy; a hosted-only design was rejected.",
  "scope": "production",
  "conditions": ["Customer-managed installations"],
  "valid_until": null,
  "tags": ["deployment"],
  "kind": "user_decision",
  "evidence": []
}
taskix memory create --file decision.json
taskix memory update mem_ID --revision 1 --file decision.json
taskix memory forget mem_ID --revision 2 --reason 'User withdrew this decision'
taskix memory set-status mem_ID archived --revision 2 --reason 'Documented in repository'

Direct human input may omit evidence. Agent-attributed writes require valid, literal same-Project evidence. The host passes its executor identity; do not impersonate a human to bypass evidence checks. Consolidation retains every candidate quotation, either verbatim or inside a longer literal quotation from the same receipt and message. Longer quotations still require source validation; changed attribution, omitted text and fabricated extensions are rejected. Updates are revision guarded. User decisions and assertions require at least one user quotation when evidence is supplied. Assistant quotations can supply separately attributed proposal context, but cannot establish a user decision alone. The extraction model must still verify that the user actually selected or confirmed the quoted proposal. Conflicts remain inspectable separately. Default recall includes only active, unexpired records; conflicted, superseded, archived, invalidated and forgotten records are excluded. list --all and historical show preserve inspection. Forget is a logical lifecycle operation with evidence suppression, not physical erasure of source conversations or old versions. Suppression includes evidence from every historical version of the memory, so merges and edits cannot make older evidence eligible for replay/backfill again. This applies when forgetting an existing memory, including versions saved by older builds; it does not retroactively rebuild suppression records for memories already forgotten by an older build.

Repository review periodically checks agent-authored active memories using the same bounded worker pool. It schedules at most ten per Project per minute after HEAD changes or the configured review interval (default one day, also covering unversioned/dirty repositories). It requires a literal repository citation before archiving documented content and preserves human edits. Set memory.agent.repository_review_interval_seconds = 0 to disable this additional model workload. Human memories are never automatically archived by this loop. Consolidation cannot archive existing memories; automatic archival is exclusive to this citation-validated review path. Legacy archive proposals are rejected without changing the target memory.

taskix memory ask 'Why was the hosted approach rejected?' runs a separately limited, read-only Agent query with validated memory/source citations. Ordinary search and context requests do not run an Agent loop.

Cancelled source Jobs

Cancelling a source Job, including through Issue cancellation, invalidates memories supported by its evidence. This is deterministic source invalidation; it does not wait for a model or compaction. Affected memories gain an invalidated revision with source_job_cancelled, the Job ID and cancellation time in the reason. Original versions, quotations and supersession links remain available through explicit historical reads and memory list --all.

Any cancelled supporting source invalidates the whole record, including a memory that merged evidence from several Jobs. Compacted children are checked against their own evidence: an unrelated child is not invalidated merely because it shares a legacy parent. Pending/running derived work is fenced, and writes reject revoked evidence. Replaying old receipts cannot recreate active facts from cancelled Jobs. Worker failures or cancelled background work alone do not invalidate business facts.

Reopening a Job does not restore its old memories. Cancelling a replacement does not reactivate its superseded predecessor. An invalidated memory cannot be reactivated with update or set-status; a new independently supported fact must use uncancelled evidence. Cancellation history survives Job reopening and deletion.

Online queries synchronize cancellation events before use and recheck after slow model/embedding calls. While recovery is catching up, a query can return a retryable error instead of stale facts. With the service stopped, search, context and default list validate candidate provenance against the task database read-only. This may return fewer results than the requested limit without changing stored memory status. Deep answers also reject direct citations of cancelled source evidence. Previously injected text is not retracted from an agent's existing conversation.

Upgrade Agentix, Taskix, the memory service and the backup script together: this behavior requires task schema 21 and memory schema 4. Migration records currently cancelled legacy Jobs; it cannot reconstruct cancellations followed by reopening before the upgrade. Restore compatible task/memory database pairs so cancellation history is preserved. See the cancelled-source design and recovery boundaries.

Obsidian and recovery

The service projects read-only memory notes into <documents.directory>/Projects/<project key>/Memory/<memory ID>.md. SQLite stores the complete memory content, properties, evidence and revisions. Frontmatter contains identity and lifecycle metadata, such as id, project_id, the managed project link to the named Project Board, revision, status and timestamps. The complete content is rendered in the Markdown body with subsections for each field; structured values use indented YAML blocks. The reason is a separate body section. Neither content nor reason is stored in frontmatter. Full synchronization repairs older note layouts without changing database content or memory revisions. Do not edit any part of these notes in Obsidian. File edits, including body text, properties and managed metadata, are never imported into SQLite. Synchronization restores the current database representation without changing the memory revision. Use taskix memory update, set-status or forget for supported changes.

taskix memory sync --limit 20
taskix memory projection-status

These are logically read-only Markdown files, not an operating-system access control boundary: a local editor can still change their bytes. Each note displays a read-only notice. With the matching Taskix Sync plugin, saving an edited note waits for 750 ms of quiet before checking and rolling the file back to SQLite content. A read-only error is shown at most once per file per 30 seconds; rollback still operates while repeated notices are suppressed. Opening an edited note also checks it. Normal generated updates do not trigger errors; lookup or write failures are reported without discarding the file. The plugin uses the read-only taskix memory document <vault-relative-path> command, which works without the memory service and validates the Project path. Taskix Sync passes TASKIX_MEMORY_ENABLED=true only to the document lookup child process, allowing existing notes to be protected without exporting the switch to Obsidian. Other plugin commands retain the inherited environment. The service prioritizes changed database revisions on each projection poll (default 5 s). A full repair scan runs at startup and repeats after [memory.projection].reconcile_interval_seconds (default 300, range 1..86400) from the end of its last pass. Full scans advance in bounded pages on projection polls, so larger vaults take additional time. They repair externally changed or missing files even without the plugin. taskix memory sync still performs full repair for its requested page; removing a note does not forget memory. If the vault itself is removed, recreate a valid vault and configure its path before synchronizing.

Projection runs independently of extraction/search and retries missing-vault or filesystem failures. Unchanged publication receipts are not rewritten; file I/O runs in blocking tasks rather than on async runtime threads. Recovery/ retains displaced file versions, including unsupported local edits, and is not automatically pruned. Concurrent file changes are preserved and retried rather than silently overwritten during publication. Publication receipts survive restart, including a file installed before its SQLite acknowledgement. Recovery-only edits and unrelated vault content are not part of the authoritative memory database.

Use the existing standalone backup script for ordered dual snapshots, checksum/source-coverage verification and restore into a new directory. Keep the entire memory database, including human revisions and forgotten-memory markers. Restore does not change configuration, stop services or overwrite live databases. SQLite is authoritative; a vault copy alone is not a memory backup.

Local transport and Windows

The memory command definitions and shell completions are shared across platforms. Unix uses a private Unix domain socket. Like Agentix's control socket, Windows uses loopback-only TCP. The service binds 127.0.0.1 with an automatically assigned port and publishes tcp://127.0.0.1:<port> plus a new instance UUID on the second line of <memory database>.tcp. Clients reject non-loopback addresses and verify the server's 16-byte instance greeting before sending any business request. A stale file pointing at a reused port therefore fails closed. The handshake is covered by the normal request timeout. A stable <memory database>.lock file stays locked for the service lifetime, rejecting another service for the same database. Shutdown removes the endpoint; a restart replaces stale endpoint data left by a crash. Do not remove the lock file while services are running. Each database receives its own port.

The instance greeting prevents accidental endpoint reuse; it is not user authentication. TCP follows Agentix's local-machine trust boundary: it has no per-user peer credentials or authentication, so other local users can access a known port. Both transports share bounded JSON framing, concurrency limits and request timeouts. Stalled clients are cancelled without blocking service shutdown.

On Windows, run taskix serve in a console or configure Task Scheduler to launch it under the same user as the CLI/plugins. This command does not register a Windows Service Control Manager service. Use the same absolute --config path for the service and clients. The standalone Python/rclone backup script still requires Unix; Windows IPC support does not change that script's platform scope.

Projection sync flushes note contents on all platforms. Unix also syncs the parent directory; Windows does not apply Unix directory-fsync semantics. SQLite remains authoritative for repairing interrupted or missing projections.

For developer validation and derived-data maintenance details, see verification and limits and retention and performance checks.

Architecture and performance audit

The atomic-memory audit records invariants, regression coverage and remaining scale boundaries. Local SQLite measurements with 100,000 human memories reduced a no-work compact probe from about 193 ms to 0.5 ms after excluding ineligible dirty candidates; this is not an end-to-end model or full-service latency measurement. Exact vector search, broad lexical queries, initial migration and source validation retain costs that grow with their selected data. Bounded fact snapshots do not authorize silently resolving claims omitted from a snapshot.

Pending Obsidian editing timing change (unreleased)

The Taskix Sync read-only Memory check runs after five idle seconds, resetting when editing continues. Reopening a Memory note checks it again. The restoration warning and errors remain visible; only the native English automatic-merge notice for verified Taskix-generated notes is filtered. See Taskix for synchronization timing, restart recovery and notification scope.

Optional pass credentials

Memory accepts api_key_pass directly, or api_key_env with a matching _PASS entry in taskix.env. Plugins accept TASKIX_DECISION_API_KEY_PASS. Configure GPG/pinentry for the service user first; otherwise use a direct API key. See pass setup and precedence.

Clone this wiki locally