Skip to main content

3tears Agent Intention

Standing-wants corpus for LLM agents. An intention is agent-authored deliberation output -- a want the agent is holding onto ("ask Pace about the migration", "check whether the wake threads are firing") -- with its own status lifecycle, salience decay, and restraint brakes so the agent surfaces a want at most occasionally rather than every turn.

Part of the 3tears framework.

Installation

pip install 3tears-agent-intention

Why a separate package (not a memory of kind=intention)

Memory is a hard-delete-only user-fact taxonomy with immutable scope columns and no lifecycle. An intention is all lifecycle: open -> asked -> granted / dropped, a partial index for "find the open wants", and a validated status value set. Riding the shared memory_type PG enum would pollute a user-fact taxonomy with an agent-internal control construct and force an irreversible enum add on six consumers.

Enhance-first is still honoured: intention consumes the reusable salience/decay substrate the agent/memory enhancement built (the same salience column shape and the shared apply_salience_decay helper), rather than reinventing it.

Components

intentions table

Partition on agent_id; composite PK (agent_id, intention_id); CAS on date_updated (mirrors memory). Columns: status (PG enum intention_status), content, embedding (pgvector, 1024 wide unless configured -- see below; for dedup on log), salience (NUMERIC(5,4), reuses the decay substrate), last_decayed_at (decay anchor), last_surfaced_at (cooldown anchor), source_memory_id / source_conversation_id (soft-ref provenance, no FK).

Embedding width

intentions.embedding is a plain pgvector vector(N), and N is a deployment setting: agent-memory's width, so one embedding provider serves both corpora. It defaults to 1024, so a host that configures nothing is unaffected. Give the same embedding_dim to threetears.agent.intention.migrations.register(runner, embedding_dim=...), IntentionsCollection(..., embedding_dim=...) and intentions_table(metadata, embedding_dim=...).

  • Ceilings. PostgreSQL's pgvector HNSW index takes at most 2,000 dimensions; YugabyteDB's ybhnsw up to 16,000 (no halfvec there, so the column stays vector). register refuses a width below 1 or above 16,000; v001 refuses a width above 2,000 on PostgreSQL before any statement runs.
  • Writes are checked. A save whose embedding is not the collection's width is refused with a ValueError naming both widths, before any SQL runs.
  • An existing schema keeps its width. await verify_embedding_width(store, embedding_dim) (threetears.agent.intention.embedding_width, also exported from the package root) raises EmbeddingWidthMismatch when intentions.embedding is another width.
  • Changing it is an operator action. await resize_embedding_width(store, embedding_dim) drops ix_intentions_embedding_hnsw, alters the column with USING NULL, recreates the index under its own name and options, and returns how many embeddings it cleared. Every want keeps its content and loses its embedding, so re-embed them. Nothing runs it automatically. Run it with writes to these tables stopped: on YugabyteDB the column change is a table rewrite, and writes made while it runs may be lost ("Concurrent DMLs may not be reflected in the new table", yugabyte-db issue 19860).

User isolation is a user_id WHERE clause, not RBAC

Every metallm user shares one agent_id, so the partition isolates nothing and the agent-owner RBAC short-circuit sees every want. user_id is the only boundary: the collection's user-facing reads take user_id as a required parameter, and every consumer read filters on it.

Versioning policy

The package version moves in lockstep with the rest of the 3tears monorepo -- every package tracks the framework git tag.

Metadata

Release files for 3tears-agent-intention 0.75.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 3tears-agent-intention 0.75.0
File Size Uploaded Provenance
3tears_agent_intention-0.75.0.tar.gz 60.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for 3tears-agent-intention 0.75.0
File Interpreter ABI Platform
3tears_agent_intention-0.75.0-py3-none-any.whl Python 3 none any Details

Total release size: 97.1 kB

Release files / 3tears_agent_intention-0.75.0.tar.gz

Download URL 3tears_agent_intention-0.75.0.tar.gz
Size 60.9 kB
Tags Source
SHA-256 checksum
How to use checksums
242affacdf59cf96934da87c13c932aee06839e4a7c406cd703a409b7d7638f4
BLAKE2b-256 checksum
How to use checksums
4c80ead7931731785c36150abf988ffb0a075cd67464c34085c3981692aa1171
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / 3tears_agent_intention-0.75.0-py3-none-any.whl

Download URL 3tears_agent_intention-0.75.0-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6655a7eb7c667e7f95bdc5e6741e7142a38f071dbf6fb87789f0af936bf29f1
BLAKE2b-256 checksum
How to use checksums
b66bebcb9892d78855493833e2af67b644a4054ce8c1d9a1c35a48f59985d634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for 3tears-agent-intention 0.75.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for 3tears_agent_intention-0.75.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.75.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page