relock-memory 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {relock_memory-0.2.0 → relock_memory-0.2.1}/CHANGELOG.md +11 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/PKG-INFO +30 -12
- {relock_memory-0.2.0 → relock_memory-0.2.1}/README.md +32 -25
- relock_memory-0.2.1/docs/assets/architecture.svg +79 -0
- relock_memory-0.2.1/docs/assets/hero.svg +103 -0
- relock_memory-0.2.1/docs/assets/lifecycle.svg +67 -0
- relock_memory-0.2.1/docs/assets/logo.svg +16 -0
- relock_memory-0.2.1/docs/assets/social.png +0 -0
- relock_memory-0.2.1/docs/assets/social.svg +32 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/openapi.json +1 -1
- {relock_memory-0.2.0 → relock_memory-0.2.1}/pyproject.toml +7 -3
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/__init__.py +1 -1
- {relock_memory-0.2.0 → relock_memory-0.2.1}/.gitignore +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/LICENSE +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/design.md +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/http.md +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/DESIGN.md +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/README.md +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/by-load.svg +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/by-model.svg +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/outcomes.svg +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/records.csv +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/models/summary.json +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/structural.md +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/docs/results/structural.svg +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/01_quickstart.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/02_llm_rewriter.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/03_langgraph_callbacks.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/curl.sh +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/rust/.gitignore +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/rust/Cargo.toml +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/rust/src/main.rs +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/typescript/demo.ts +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/typescript/package.json +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/examples/http/typescript/relock.ts +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/_util.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/__init__.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/agents.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/cli.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/harness.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/report.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/scenarios.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/bench/systems.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/checks.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/cli.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/delta.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/episode.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/export.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/integrations/__init__.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/integrations/http.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/integrations/langchain.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/integrations/mcp.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/integrations/toolkit.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/llm.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/memory.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/policy.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/py.typed +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/retrieval.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/rewriters.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/signals.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/stores/__init__.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/stores/postgres.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/stores/sql.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/stores/sqlite.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/src/relock_memory/types.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/conftest.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/test_cli_bench.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/test_http.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/test_integrations.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/test_llm_client.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/test_reconsolidation.py +0 -0
- {relock_memory-0.2.0 → relock_memory-0.2.1}/tests/test_units.py +0 -0
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1 - 2026-11-28
|
|
4
|
+
|
|
5
|
+
Documentation only; no code changes.
|
|
6
|
+
|
|
7
|
+
- A logo, and an animated diagram of the core idea: the same correction in a typical memory and
|
|
8
|
+
in relock.
|
|
9
|
+
- Diagrams of a memory's lifecycle (replacing the Mermaid chart, which PyPI can't render) and of
|
|
10
|
+
where relock sits beside an agent.
|
|
11
|
+
- Citations for the neuroscience the design borrows from.
|
|
12
|
+
- A social preview card for links to the repository.
|
|
13
|
+
|
|
3
14
|
## 0.2.0 - 2026-11-28
|
|
4
15
|
|
|
5
16
|
Behavioural results on 8 hosted models, use from any language over HTTP, and a container image.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: relock-memory
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Agent memory that fixes the rule that fired, in place and only on trusted evidence, so corrected mistakes don't come back. Python, HTTP (any language), MCP.
|
|
5
5
|
Project-URL: Homepage, https://github.com/inboxpraveen/relock
|
|
6
6
|
Project-URL: Repository, https://github.com/inboxpraveen/relock
|
|
@@ -43,20 +43,29 @@ Provides-Extra: postgres
|
|
|
43
43
|
Requires-Dist: psycopg[binary]>=3.1; extra == 'postgres'
|
|
44
44
|
Description-Content-Type: text/markdown
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
<p align="center">
|
|
47
|
+
<img src="https://raw.githubusercontent.com/inboxpraveen/relock/main/docs/assets/logo.svg" alt="relock" width="252" height="64">
|
|
48
|
+
</p>
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
<p align="center">
|
|
51
|
+
<strong>Agent memory that fixes the rule that fired, in place and only on trusted evidence,<br>
|
|
52
|
+
so corrected mistakes don't come back.</strong>
|
|
53
|
+
</p>
|
|
52
54
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
<p align="center">
|
|
56
|
+
<a href="https://github.com/inboxpraveen/relock/actions/workflows/ci.yml"><img alt="ci" src="https://github.com/inboxpraveen/relock/actions/workflows/ci.yml/badge.svg"></a>
|
|
57
|
+
<a href="https://pypi.org/project/relock-memory/"><img alt="pypi" src="https://img.shields.io/pypi/v/relock-memory"></a>
|
|
58
|
+
<a href="https://pypi.org/project/relock-memory/"><img alt="python" src="https://img.shields.io/pypi/pyversions/relock-memory"></a>
|
|
59
|
+
<a href="https://github.com/inboxpraveen/relock/pkgs/container/relock"><img alt="docker" src="https://img.shields.io/badge/docker-ghcr.io%2Finboxpraveen%2Frelock-blue"></a>
|
|
60
|
+
<a href="https://github.com/inboxpraveen/relock/blob/main/LICENSE"><img alt="license" src="https://img.shields.io/badge/license-Apache--2.0-blue"></a>
|
|
61
|
+
</p>
|
|
55
62
|
|
|
56
63
|
You corrected your agent: the orders API takes ISO dates now. Its memory saved the lesson as a
|
|
57
64
|
note. Days later, deep into a long session, it sends `03/14/2026` again. The old rule was still in
|
|
58
65
|
memory, next to the note, and the model followed it.
|
|
59
66
|
|
|
67
|
+

|
|
68
|
+
|
|
60
69
|
Lesson notes, rules files and playbooks all keep both rules and hope the model picks the right
|
|
61
70
|
one. relock edits the rule that fired, in place, under three conditions:
|
|
62
71
|
|
|
@@ -133,11 +142,18 @@ The extras install one at a time too: `[postgres]`, `[mcp]`, `[langchain]`. The
|
|
|
133
142
|
|
|
134
143
|
Unlock on recall, rewrite on surprise, re-lock.
|
|
135
144
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
145
|
+

|
|
146
|
+
|
|
147
|
+
The idea comes from **memory reconsolidation** in neuroscience:
|
|
148
|
+
- [Nader, Schafe and LeDoux (2000)](https://doi.org/10.1038/35021052) showed in rats that a fear
|
|
149
|
+
memory becomes editable again for a short window after it is recalled.
|
|
150
|
+
- [Sevenster, Beckers and Kindt (2013)](https://doi.org/10.1126/science.1231966) found, in people,
|
|
151
|
+
that the update needs a prediction error: the memory changes only when what happened differs from
|
|
152
|
+
what it predicted.
|
|
139
153
|
|
|
140
|
-
|
|
154
|
+
relock borrows that shape: a memory can change only while it is recalled, and only when an outcome
|
|
155
|
+
contradicts what it predicted. It is a design metaphor, not a biological claim. The evidence comes
|
|
156
|
+
mostly from animal work, and results in people are mixed.
|
|
141
157
|
|
|
142
158
|
1. **Reactivation = retrieval.** Only items recalled in the current episode can be edited. The
|
|
143
159
|
retrieval trace answers "which memory caused this?" structurally, so the model never has to.
|
|
@@ -193,6 +209,8 @@ Run [`examples/01_quickstart.py`](https://github.com/inboxpraveen/relock/blob/ma
|
|
|
193
209
|
|
|
194
210
|
## Plug it into your stack
|
|
195
211
|
|
|
212
|
+

|
|
213
|
+
|
|
196
214
|
relock does not replace your agent framework. It sits beside it. The split that keeps memory
|
|
197
215
|
safe is **the model predicts, the harness judges**.
|
|
198
216
|
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/assets/logo.svg" alt="relock" width="252" height="64">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<strong>Agent memory that fixes the rule that fired, in place and only on trusted evidence,<br>
|
|
7
|
+
so corrected mistakes don't come back.</strong>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<a href="https://github.com/inboxpraveen/relock/actions/workflows/ci.yml"><img alt="ci" src="https://github.com/inboxpraveen/relock/actions/workflows/ci.yml/badge.svg"></a>
|
|
12
|
+
<a href="https://pypi.org/project/relock-memory/"><img alt="pypi" src="https://img.shields.io/pypi/v/relock-memory"></a>
|
|
13
|
+
<a href="https://pypi.org/project/relock-memory/"><img alt="python" src="https://img.shields.io/pypi/pyversions/relock-memory"></a>
|
|
14
|
+
<a href="https://github.com/inboxpraveen/relock/pkgs/container/relock"><img alt="docker" src="https://img.shields.io/badge/docker-ghcr.io%2Finboxpraveen%2Frelock-blue"></a>
|
|
15
|
+
<a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-Apache--2.0-blue"></a>
|
|
16
|
+
</p>
|
|
10
17
|
|
|
11
18
|
You corrected your agent: the orders API takes ISO dates now. Its memory saved the lesson as a
|
|
12
19
|
note. Days later, deep into a long session, it sends `03/14/2026` again. The old rule was still in
|
|
13
20
|
memory, next to the note, and the model followed it.
|
|
14
21
|
|
|
22
|
+

|
|
23
|
+
|
|
15
24
|
Lesson notes, rules files and playbooks all keep both rules and hope the model picks the right
|
|
16
25
|
one. relock edits the rule that fired, in place, under three conditions:
|
|
17
26
|
|
|
@@ -88,22 +97,18 @@ The extras install one at a time too: `[postgres]`, `[mcp]`, `[langchain]`. The
|
|
|
88
97
|
|
|
89
98
|
Unlock on recall, rewrite on surprise, re-lock.
|
|
90
99
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
C --> B
|
|
104
|
-
R --> B
|
|
105
|
-
B -- "episode closes" --> L
|
|
106
|
-
```
|
|
100
|
+

|
|
101
|
+
|
|
102
|
+
The idea comes from **memory reconsolidation** in neuroscience:
|
|
103
|
+
- [Nader, Schafe and LeDoux (2000)](https://doi.org/10.1038/35021052) showed in rats that a fear
|
|
104
|
+
memory becomes editable again for a short window after it is recalled.
|
|
105
|
+
- [Sevenster, Beckers and Kindt (2013)](https://doi.org/10.1126/science.1231966) found, in people,
|
|
106
|
+
that the update needs a prediction error: the memory changes only when what happened differs from
|
|
107
|
+
what it predicted.
|
|
108
|
+
|
|
109
|
+
relock borrows that shape: a memory can change only while it is recalled, and only when an outcome
|
|
110
|
+
contradicts what it predicted. It is a design metaphor, not a biological claim. The evidence comes
|
|
111
|
+
mostly from animal work, and results in people are mixed.
|
|
107
112
|
|
|
108
113
|
1. **Reactivation = retrieval.** Only items recalled in the current episode can be edited. The
|
|
109
114
|
retrieval trace answers "which memory caused this?" structurally, so the model never has to.
|
|
@@ -159,6 +164,8 @@ Run [`examples/01_quickstart.py`](examples/01_quickstart.py) to see the whole lo
|
|
|
159
164
|
|
|
160
165
|
## Plug it into your stack
|
|
161
166
|
|
|
167
|
+

|
|
168
|
+
|
|
162
169
|
relock does not replace your agent framework. It sits beside it. The split that keeps memory
|
|
163
170
|
safe is **the model predicts, the harness judges**.
|
|
164
171
|
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 410" width="880" height="410" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Where relock sits</title>
|
|
3
|
+
<desc id="desc">relock sits beside your agent. It recalls matching rules into the model's prompt. The real outcomes of tool calls and tests pass its trust gate; only tool errors, tests and verified users count, while the model's claims, web pages and timeouts are logged only. Trusted evidence rewrites the clause that fired, and every version is kept in SQLite or Postgres. It plugs in as a Python decorator, a LangChain or LangGraph callback, an MCP server, or an HTTP API with a Docker image for any language.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="head" d="M0 0 10 5 0 10z"/></marker>
|
|
6
|
+
<marker id="arrow-ink" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="head-ink" d="M0 0 10 5 0 10z"/></marker>
|
|
7
|
+
</defs>
|
|
8
|
+
<style>
|
|
9
|
+
:root{--surface:#ffffff;--panel:#f7f8fa;--card:#ffffff;--line:#e2e4e8;--ink:#191919;--ink2:#666666;--muted:#9a9a9a;--accent:#257de0;--accent-tint:rgba(37,125,224,.06)}
|
|
10
|
+
@media (prefers-color-scheme: dark){:root{--surface:#191919;--panel:#202124;--card:#27282c;--line:#36383d;--ink:#efefef;--ink2:#9c9c9c;--muted:#6f6f6f;--accent:#338ced;--accent-tint:rgba(51,140,237,.10)}}
|
|
11
|
+
text{font-family:ui-sans-serif,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
|
|
12
|
+
.mono{font-family:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,'Liberation Mono',monospace}
|
|
13
|
+
.bg{fill:var(--surface)} .box{fill:var(--panel);stroke:var(--line)} .rbox{fill:var(--card);stroke:var(--line)}
|
|
14
|
+
.col{fill:var(--accent-tint);stroke:var(--accent);stroke-opacity:.55}
|
|
15
|
+
.title{fill:var(--ink);font-size:17px;font-weight:650} .sub{fill:var(--ink2);font-size:12.5px}
|
|
16
|
+
.lab{fill:var(--ink2);font-size:10px;font-weight:650;letter-spacing:.09em} .laba{fill:var(--accent);font-size:10px;font-weight:700;letter-spacing:.09em}
|
|
17
|
+
.bt{fill:var(--ink);font-size:13.5px;font-weight:650} .bs{fill:var(--ink2);font-size:11.5px} .bm{fill:var(--muted);font-size:11.5px}
|
|
18
|
+
.el{fill:var(--ink2);font-size:11.5px}
|
|
19
|
+
.head{fill:var(--accent)} .head-ink{fill:var(--ink2)}
|
|
20
|
+
.wire{fill:none;stroke:var(--accent);stroke-width:1.8} .wire-ink{fill:none;stroke:var(--ink2);stroke-width:1.4}
|
|
21
|
+
.chip{fill:var(--panel);stroke:var(--line)} .ct{fill:var(--ink);font-size:12px}
|
|
22
|
+
</style>
|
|
23
|
+
|
|
24
|
+
<rect class="bg" x="0" y="0" width="880" height="410" rx="10"/>
|
|
25
|
+
<text class="title" x="24" y="34">Where relock sits</text>
|
|
26
|
+
<text class="sub" x="24" y="56">Beside your agent, not inside it. The model reads memory; only real outcomes can change it.</text>
|
|
27
|
+
|
|
28
|
+
<!-- your agent -->
|
|
29
|
+
<text class="lab" x="24" y="94">YOUR AGENT</text>
|
|
30
|
+
<rect class="box" x="24.5" y="106.5" width="265" height="59" rx="10"/>
|
|
31
|
+
<text class="bt" x="42" y="131">Model</text>
|
|
32
|
+
<text class="bs" x="42" y="150">reads the recalled rules, picks the call</text>
|
|
33
|
+
<rect class="box" x="24.5" y="238.5" width="265" height="59" rx="10"/>
|
|
34
|
+
<text class="bt" x="42" y="263">Tools and tests</text>
|
|
35
|
+
<text class="bs" x="42" y="282">the real outcome of each call</text>
|
|
36
|
+
<path class="wire-ink" d="M157 167V235" marker-end="url(#arrow-ink)"/>
|
|
37
|
+
<text class="el" x="165" y="206">tool call</text>
|
|
38
|
+
|
|
39
|
+
<!-- relock -->
|
|
40
|
+
<rect class="col" x="370.5" y="78.5" width="279" height="257" rx="12"/>
|
|
41
|
+
<text class="laba" x="388" y="98">RELOCK</text>
|
|
42
|
+
<rect class="rbox" x="386.5" y="108.5" width="247" height="41" rx="8"/>
|
|
43
|
+
<text class="bt" x="400" y="125">Recall</text>
|
|
44
|
+
<text class="bs" x="400" y="141">rules into the prompt; now editable</text>
|
|
45
|
+
<rect class="rbox" x="386.5" y="158.5" width="247" height="59" rx="8"/>
|
|
46
|
+
<text class="bt" x="400" y="175">Trust gate</text>
|
|
47
|
+
<text class="bs" x="400" y="192">counts: tool errors, tests, verified users</text>
|
|
48
|
+
<text class="bm" x="400" y="208">logged only: model claims, web pages, 5xx</text>
|
|
49
|
+
<rect class="rbox" x="386.5" y="226.5" width="247" height="41" rx="8"/>
|
|
50
|
+
<text class="bt" x="400" y="243">Rewrite in place</text>
|
|
51
|
+
<text class="bs" x="400" y="259">only the clause that fired</text>
|
|
52
|
+
<rect class="rbox" x="386.5" y="276.5" width="247" height="41" rx="8"/>
|
|
53
|
+
<text class="bt" x="400" y="293">Version history</text>
|
|
54
|
+
<text class="bs" x="400" y="309">every version and decision; rollback</text>
|
|
55
|
+
|
|
56
|
+
<!-- storage -->
|
|
57
|
+
<text class="lab" x="700" y="260">STORAGE</text>
|
|
58
|
+
<rect class="box" x="700.5" y="268.5" width="155" height="59" rx="10"/>
|
|
59
|
+
<text class="bt" x="716" y="293">SQLite or Postgres</text>
|
|
60
|
+
<text class="bs" x="716" y="312">versions, events, audit</text>
|
|
61
|
+
|
|
62
|
+
<!-- wires -->
|
|
63
|
+
<path class="wire" d="M384 128H293" marker-end="url(#arrow)"/>
|
|
64
|
+
<text class="el" x="338" y="121" text-anchor="middle">context</text>
|
|
65
|
+
<path class="wire" d="M292 268H331V188H383" marker-end="url(#arrow)"/>
|
|
66
|
+
<text class="el" x="324" y="232" text-anchor="end">outcomes</text>
|
|
67
|
+
<path class="wire" d="M636 297H697" marker-end="url(#arrow)"/>
|
|
68
|
+
|
|
69
|
+
<!-- integration surfaces -->
|
|
70
|
+
<text class="lab" x="24" y="374">PLUG IN AS</text>
|
|
71
|
+
<rect class="chip" x="104.5" y="357.5" width="133" height="27" rx="13.5"/>
|
|
72
|
+
<text class="ct" x="171" y="375" text-anchor="middle">Python decorator</text>
|
|
73
|
+
<rect class="chip" x="245.5" y="357.5" width="171" height="27" rx="13.5"/>
|
|
74
|
+
<text class="ct" x="331" y="375" text-anchor="middle">LangChain / LangGraph</text>
|
|
75
|
+
<rect class="chip" x="424.5" y="357.5" width="97" height="27" rx="13.5"/>
|
|
76
|
+
<text class="ct" x="473" y="375" text-anchor="middle">MCP server</text>
|
|
77
|
+
<rect class="chip" x="529.5" y="357.5" width="326" height="27" rx="13.5"/>
|
|
78
|
+
<text class="ct" x="692" y="375" text-anchor="middle">HTTP API + Docker: Rust, TypeScript, Go, Java</text>
|
|
79
|
+
</svg>
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 384" width="880" height="384" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Same correction, two memories</title>
|
|
3
|
+
<desc id="desc">The orders API now wants YYYY-MM-DD, and two real API errors correct the agent. A typical memory appends the correction as a note next to the old rule; in the next long session the agent follows the old rule and the call is rejected. relock rewrites the rule in place after the second trusted error; version 1 is kept for audit but never shown again, and the next call succeeds.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
:root{--surface:#ffffff;--panel:#f7f8fa;--card:#ffffff;--line:#e2e4e8;--ink:#191919;--ink2:#666666;--accent:#257de0;--accent-tint:rgba(37,125,224,.08);--bad:#c93f33;--bad-tint:rgba(201,63,51,.09);--good:#1b8547;--good-tint:rgba(27,133,71,.09)}
|
|
6
|
+
@media (prefers-color-scheme: dark){:root{--surface:#191919;--panel:#202124;--card:#27282c;--line:#36383d;--ink:#efefef;--ink2:#9c9c9c;--accent:#338ced;--accent-tint:rgba(51,140,237,.15);--bad:#f0685d;--bad-tint:rgba(240,104,93,.15);--good:#3dbd71;--good-tint:rgba(61,189,113,.15)}}
|
|
7
|
+
text{font-family:ui-sans-serif,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
|
|
8
|
+
.mono{font-family:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,'Liberation Mono',monospace;font-size:12.5px;fill:var(--ink)}
|
|
9
|
+
.bg{fill:var(--surface)} .panel{fill:var(--panel);stroke:var(--line)} .row{fill:var(--card);stroke:var(--line)}
|
|
10
|
+
.title{fill:var(--ink);font-size:17px;font-weight:650} .sub{fill:var(--ink2);font-size:12.5px}
|
|
11
|
+
.h{fill:var(--ink);font-size:14.5px;font-weight:650} .ha{fill:var(--accent);font-size:14.5px;font-weight:700}
|
|
12
|
+
.hs{fill:var(--ink2);font-size:12px} .lab{fill:var(--ink2);font-size:10px;font-weight:650;letter-spacing:.09em}
|
|
13
|
+
.tag{fill:var(--ink2);font-size:11px;font-weight:650} .taga{fill:var(--accent);font-size:11px;font-weight:700}
|
|
14
|
+
.v2row{fill:var(--accent-tint);stroke:var(--accent)} .badrow{fill:var(--bad-tint);stroke:var(--bad)}
|
|
15
|
+
.pbad{fill:var(--bad-tint);stroke:var(--bad)} .pgood{fill:var(--good-tint);stroke:var(--good)}
|
|
16
|
+
.tbad{fill:var(--bad);font-size:11.5px;font-weight:650} .tgood{fill:var(--good);font-size:11.5px;font-weight:650}
|
|
17
|
+
.cap{fill:var(--ink2);font-size:12px} .strike{stroke:var(--ink2);stroke-width:1.6;fill:none}
|
|
18
|
+
|
|
19
|
+
/* 12 s loop. Without animation (or with reduced motion) every element shows its final state. */
|
|
20
|
+
.a08,.a12,.a18,.a21,.a30,.a44,.a52,.a60{animation:12s linear infinite}
|
|
21
|
+
.a08{animation-name:k08}.a12{animation-name:k12}.a18{animation-name:k18}.a21{animation-name:k21}
|
|
22
|
+
.a30{animation-name:k30}.a44{animation-name:k44}.a52{animation-name:k52}.a60{animation-name:k60}
|
|
23
|
+
@keyframes k08{0%,7%{opacity:0}10%,91%{opacity:1}96%,100%{opacity:0}}
|
|
24
|
+
@keyframes k12{0%,11%{opacity:0}14%,91%{opacity:1}96%,100%{opacity:0}}
|
|
25
|
+
@keyframes k18{0%,17%{opacity:0}20%,91%{opacity:1}96%,100%{opacity:0}}
|
|
26
|
+
@keyframes k21{0%,20%{opacity:0}23%,91%{opacity:1}96%,100%{opacity:0}}
|
|
27
|
+
@keyframes k30{0%,29%{opacity:0}32%,91%{opacity:1}96%,100%{opacity:0}}
|
|
28
|
+
@keyframes k44{0%,43%{opacity:0}46%,91%{opacity:1}96%,100%{opacity:0}}
|
|
29
|
+
@keyframes k52{0%,51%{opacity:0}54%,91%{opacity:1}96%,100%{opacity:0}}
|
|
30
|
+
@keyframes k60{0%,59%{opacity:0}62%,91%{opacity:1}96%,100%{opacity:0}}
|
|
31
|
+
.strike{stroke-dasharray:214;animation:kstrike 12s linear infinite}
|
|
32
|
+
@keyframes kstrike{0%,24%{stroke-dashoffset:214}28%,91%{stroke-dashoffset:0}96%,100%{stroke-dashoffset:214}}
|
|
33
|
+
.dim{opacity:.45;animation:kdim 12s linear infinite}
|
|
34
|
+
@keyframes kdim{0%,25%{opacity:1}29%,91%{opacity:.45}96%,100%{opacity:1}}
|
|
35
|
+
@media (prefers-reduced-motion: reduce){*{animation:none!important}}
|
|
36
|
+
</style>
|
|
37
|
+
|
|
38
|
+
<rect class="bg" x="0" y="0" width="880" height="384" rx="10"/>
|
|
39
|
+
<text class="title" x="24" y="34">Same correction, two memories</text>
|
|
40
|
+
<text class="sub" x="24" y="56">The orders API now wants YYYY-MM-DD. Two real API errors correct the agent. Then it works through a long session.</text>
|
|
41
|
+
|
|
42
|
+
<!-- ============ typical memory ============ -->
|
|
43
|
+
<rect class="panel" x="16.5" y="76.5" width="415" height="291" rx="10"/>
|
|
44
|
+
<text class="h" x="34" y="104">Typical memory</text>
|
|
45
|
+
<text class="hs" x="414" y="104" text-anchor="end">appends the correction as a note</text>
|
|
46
|
+
|
|
47
|
+
<text class="lab" x="34" y="130">MEMORY</text>
|
|
48
|
+
<rect class="row" x="34.5" y="138.5" width="379" height="29" rx="6"/>
|
|
49
|
+
<rect class="badrow a52" x="34.5" y="138.5" width="379" height="29" rx="6"/>
|
|
50
|
+
<text class="tag" x="46" y="157">rule</text>
|
|
51
|
+
<text class="mono" x="84" y="157">Pass the date as MM/DD/YYYY.</text>
|
|
52
|
+
<text class="tbad a52" x="402" y="157" text-anchor="end">followed</text>
|
|
53
|
+
<g class="a12">
|
|
54
|
+
<rect class="row" x="34.5" y="174.5" width="379" height="29" rx="6"/>
|
|
55
|
+
<text class="tag" x="46" y="193">note</text>
|
|
56
|
+
<text class="mono" x="84" y="193">The API wants YYYY-MM-DD now.</text>
|
|
57
|
+
</g>
|
|
58
|
+
|
|
59
|
+
<text class="lab" x="34" y="230">TOOL ERRORS</text>
|
|
60
|
+
<g class="a08"><rect class="pbad" x="34.5" y="238.5" width="131" height="23" rx="11.5"/><text class="tbad" x="100" y="254" text-anchor="middle">422 invalid date</text></g>
|
|
61
|
+
<g class="a18"><rect class="pbad" x="174.5" y="238.5" width="131" height="23" rx="11.5"/><text class="tbad" x="240" y="254" text-anchor="middle">422 invalid date</text></g>
|
|
62
|
+
|
|
63
|
+
<text class="lab" x="34" y="288">NEXT LONG SESSION</text>
|
|
64
|
+
<g class="a44">
|
|
65
|
+
<rect class="row" x="34.5" y="296.5" width="379" height="29" rx="6"/>
|
|
66
|
+
<text class="mono" x="46" y="315">get_orders("03/14/2026")</text>
|
|
67
|
+
</g>
|
|
68
|
+
<g class="a52"><rect class="pbad" x="306.5" y="299.5" width="99" height="23" rx="11.5"/><text class="tbad" x="356" y="315" text-anchor="middle">422 rejected</text></g>
|
|
69
|
+
<text class="cap a60" x="34" y="352">Both rules stay in memory. The model can follow either.</text>
|
|
70
|
+
|
|
71
|
+
<!-- ============ relock ============ -->
|
|
72
|
+
<rect class="panel" x="448.5" y="76.5" width="415" height="291" rx="10"/>
|
|
73
|
+
<text class="ha" x="466" y="104">relock</text>
|
|
74
|
+
<text class="hs" x="846" y="104" text-anchor="end">rewrites the rule that fired</text>
|
|
75
|
+
|
|
76
|
+
<text class="lab" x="466" y="130">MEMORY</text>
|
|
77
|
+
<rect class="row" x="466.5" y="138.5" width="379" height="29" rx="6"/>
|
|
78
|
+
<g class="dim">
|
|
79
|
+
<text class="tag" x="478" y="157">v1</text>
|
|
80
|
+
<text class="mono" x="516" y="157" textLength="210" lengthAdjust="spacingAndGlyphs">Pass the date as MM/DD/YYYY.</text>
|
|
81
|
+
</g>
|
|
82
|
+
<line class="strike" x1="514" y1="153.5" x2="728" y2="153.5"/>
|
|
83
|
+
<text class="tag a30" x="834" y="157" text-anchor="end">superseded</text>
|
|
84
|
+
<g class="a30">
|
|
85
|
+
<rect class="v2row" x="466.5" y="174.5" width="379" height="29" rx="6"/>
|
|
86
|
+
<text class="taga" x="478" y="193">v2</text>
|
|
87
|
+
<text class="mono" x="516" y="193">Pass the date as YYYY-MM-DD.</text>
|
|
88
|
+
</g>
|
|
89
|
+
<text class="tgood a52" x="834" y="193" text-anchor="end">followed</text>
|
|
90
|
+
|
|
91
|
+
<text class="lab" x="466" y="230">TOOL ERRORS</text>
|
|
92
|
+
<g class="a08"><rect class="pbad" x="466.5" y="238.5" width="131" height="23" rx="11.5"/><text class="tbad" x="532" y="254" text-anchor="middle">422 invalid date</text></g>
|
|
93
|
+
<g class="a18"><rect class="pbad" x="606.5" y="238.5" width="131" height="23" rx="11.5"/><text class="tbad" x="672" y="254" text-anchor="middle">422 invalid date</text></g>
|
|
94
|
+
<text class="hs a21" x="750" y="254">2 of 2: rewrite</text>
|
|
95
|
+
|
|
96
|
+
<text class="lab" x="466" y="288">NEXT LONG SESSION</text>
|
|
97
|
+
<g class="a44">
|
|
98
|
+
<rect class="row" x="466.5" y="296.5" width="379" height="29" rx="6"/>
|
|
99
|
+
<text class="mono" x="478" y="315">get_orders("2026-03-14")</text>
|
|
100
|
+
</g>
|
|
101
|
+
<g class="a52"><rect class="pgood" x="738.5" y="299.5" width="99" height="23" rx="11.5"/><text class="tgood" x="788" y="315" text-anchor="middle">200 OK</text></g>
|
|
102
|
+
<text class="cap a60" x="466" y="352">One active rule. v1 is kept for audit, never shown again.</text>
|
|
103
|
+
</svg>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 312" width="880" height="312" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">The lifecycle of a memory in relock</title>
|
|
3
|
+
<desc id="desc">A memory is locked until it is recalled in a task, which makes it editable. Each outcome passes a trust gate. Untrusted or transient outcomes are logged and never applied. Trusted errors add evidence; at the threshold the clause that fired is rewritten in place and the old version is superseded. When the task ends the memory re-locks, and the next recall sees only the new version.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="head" d="M0 0 10 5 0 10z"/></marker>
|
|
6
|
+
<marker id="arrow-muted" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="head-muted" d="M0 0 10 5 0 10z"/></marker>
|
|
7
|
+
</defs>
|
|
8
|
+
<style>
|
|
9
|
+
:root{--surface:#ffffff;--panel:#f7f8fa;--line:#e2e4e8;--ink:#191919;--ink2:#666666;--muted:#9a9a9a;--accent:#257de0;--accent-tint:rgba(37,125,224,.08)}
|
|
10
|
+
@media (prefers-color-scheme: dark){:root{--surface:#191919;--panel:#202124;--line:#36383d;--ink:#efefef;--ink2:#9c9c9c;--muted:#6f6f6f;--accent:#338ced;--accent-tint:rgba(51,140,237,.15)}}
|
|
11
|
+
text{font-family:ui-sans-serif,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
|
|
12
|
+
.bg{fill:var(--surface)} .node{fill:var(--panel);stroke:var(--line)} .key{fill:var(--accent-tint);stroke:var(--accent)}
|
|
13
|
+
.off{fill:none;stroke:var(--muted);stroke-dasharray:4 4}
|
|
14
|
+
.title{fill:var(--ink);font-size:17px;font-weight:650} .sub{fill:var(--ink2);font-size:12.5px}
|
|
15
|
+
.nt{fill:var(--ink);font-size:14px;font-weight:650} .nta{fill:var(--accent);font-size:14px;font-weight:700}
|
|
16
|
+
.ns{fill:var(--ink2);font-size:12px} .el{fill:var(--ink2);font-size:11.5px} .ml{fill:var(--muted);font-size:12px}
|
|
17
|
+
.head{fill:var(--accent)} .head-muted{fill:var(--muted)}
|
|
18
|
+
.flow{fill:none;stroke:var(--accent);stroke-width:1.8;stroke-dasharray:5 5;animation:flow 1.2s linear infinite}
|
|
19
|
+
.branch{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 4}
|
|
20
|
+
@keyframes flow{to{stroke-dashoffset:-10}}
|
|
21
|
+
@media (prefers-reduced-motion: reduce){.flow{animation:none}}
|
|
22
|
+
</style>
|
|
23
|
+
|
|
24
|
+
<rect class="bg" x="0" y="0" width="880" height="312" rx="10"/>
|
|
25
|
+
<text class="title" x="24" y="34">The lifecycle of a memory</text>
|
|
26
|
+
<text class="sub" x="24" y="56">Only a recalled memory can change, only on trusted evidence, and it re-locks when the task ends.</text>
|
|
27
|
+
|
|
28
|
+
<!-- top row -->
|
|
29
|
+
<rect class="node" x="24.5" y="80.5" width="165" height="59" rx="10"/>
|
|
30
|
+
<text class="nt" x="42" y="105">Locked</text>
|
|
31
|
+
<text class="ns" x="42" y="125">stored, read-only</text>
|
|
32
|
+
|
|
33
|
+
<rect class="node" x="246.5" y="80.5" width="165" height="59" rx="10"/>
|
|
34
|
+
<text class="nt" x="264" y="105">Editable</text>
|
|
35
|
+
<text class="ns" x="264" y="125">recalled in this task</text>
|
|
36
|
+
|
|
37
|
+
<rect class="key" x="468.5" y="80.5" width="165" height="59" rx="10"/>
|
|
38
|
+
<text class="nta" x="486" y="105">Trust gate</text>
|
|
39
|
+
<text class="ns" x="486" y="125">trusted, not transient?</text>
|
|
40
|
+
|
|
41
|
+
<rect class="node" x="690.5" y="80.5" width="165" height="59" rx="10"/>
|
|
42
|
+
<text class="nt" x="708" y="105">Evidence</text>
|
|
43
|
+
<text class="ns" x="708" y="125">rewrite at 2 errors</text>
|
|
44
|
+
|
|
45
|
+
<!-- branch: untrusted or transient -->
|
|
46
|
+
<path class="branch" d="M551 141V165" marker-end="url(#arrow-muted)"/>
|
|
47
|
+
<rect class="off" x="468.5" y="168.5" width="165" height="45" rx="8"/>
|
|
48
|
+
<text class="ml" x="551" y="187" text-anchor="middle">untrusted or transient:</text>
|
|
49
|
+
<text class="el" x="551" y="204" text-anchor="middle">logged, never applied</text>
|
|
50
|
+
|
|
51
|
+
<!-- bottom: rewrite -->
|
|
52
|
+
<rect class="key" x="690.5" y="232.5" width="165" height="59" rx="10"/>
|
|
53
|
+
<text class="nta" x="708" y="257">Rewritten in place</text>
|
|
54
|
+
<text class="ns" x="708" y="277">v1 superseded, kept</text>
|
|
55
|
+
|
|
56
|
+
<!-- the cycle -->
|
|
57
|
+
<path class="flow" d="M191 110H243" marker-end="url(#arrow)"/>
|
|
58
|
+
<text class="el" x="217" y="101" text-anchor="middle">recall</text>
|
|
59
|
+
<path class="flow" d="M413 110H465" marker-end="url(#arrow)"/>
|
|
60
|
+
<text class="el" x="439" y="101" text-anchor="middle">outcome</text>
|
|
61
|
+
<path class="flow" d="M635 110H687" marker-end="url(#arrow)"/>
|
|
62
|
+
<text class="el" x="661" y="101" text-anchor="middle">trusted</text>
|
|
63
|
+
<path class="flow" d="M773 141V229" marker-end="url(#arrow)"/>
|
|
64
|
+
<text class="el" x="781" y="190">threshold reached</text>
|
|
65
|
+
<path class="flow" d="M689 262H107V143" marker-end="url(#arrow)"/>
|
|
66
|
+
<text class="el" x="398" y="254" text-anchor="middle">task ends: re-lock. The next recall sees only v2.</text>
|
|
67
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 252 64" width="252" height="64" role="img" aria-labelledby="t">
|
|
2
|
+
<title id="t">relock</title>
|
|
3
|
+
<style>
|
|
4
|
+
:root{--ink:#191919;--accent:#257de0}
|
|
5
|
+
@media (prefers-color-scheme: dark){:root{--ink:#efefef;--accent:#338ced}}
|
|
6
|
+
.body{fill:var(--accent)} .shackle{fill:none;stroke:var(--accent);stroke-width:5.5;stroke-linecap:round;stroke-linejoin:round}
|
|
7
|
+
.word{fill:var(--ink);font-family:ui-sans-serif,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:40px;font-weight:650;letter-spacing:-.6px}
|
|
8
|
+
</style>
|
|
9
|
+
<g transform="translate(2 2)">
|
|
10
|
+
<!-- the shackle is mid-close: its right leg comes down as an arrow, re-locking -->
|
|
11
|
+
<path class="shackle" d="M18 27V19a12 12 0 0 1 24 0v3.5"/>
|
|
12
|
+
<path class="shackle" d="M37.6 19.6 42 24.2l4.4-4.6"/>
|
|
13
|
+
<path class="body" fill-rule="evenodd" d="M17 27h26a7 7 0 0 1 7 7v15a7 7 0 0 1-7 7H17a7 7 0 0 1-7-7V34a7 7 0 0 1 7-7Zm13 7.6a4.4 4.4 0 0 0-2.3 8.15L27 48.6h6l-.7-5.85A4.4 4.4 0 0 0 30 34.6Z"/>
|
|
14
|
+
</g>
|
|
15
|
+
<text class="word" x="70" y="47">relock</text>
|
|
16
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 640" width="1280" height="640" role="img" aria-labelledby="t">
|
|
2
|
+
<title id="t">relock: agent memory that fixes the rule that fired, in place and only on trusted evidence</title>
|
|
3
|
+
<!-- Social preview card (GitHub, LinkedIn, X). Fixed colours: it is rendered to docs/assets/social.png. -->
|
|
4
|
+
<style>
|
|
5
|
+
text{font-family:'Segoe UI',ui-sans-serif,-apple-system,Roboto,'Helvetica Neue',Arial,sans-serif}
|
|
6
|
+
.mono{font-family:Consolas,ui-monospace,SFMono-Regular,Menlo,monospace}
|
|
7
|
+
</style>
|
|
8
|
+
<rect width="1280" height="640" fill="#121316"/>
|
|
9
|
+
<rect x="0" y="0" width="1280" height="6" fill="#338ced"/>
|
|
10
|
+
|
|
11
|
+
<g transform="translate(80 86) scale(1.5)">
|
|
12
|
+
<path d="M18 27V19a12 12 0 0 1 24 0v3.5" fill="none" stroke="#338ced" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13
|
+
<path d="M37.6 19.6 42 24.2l4.4-4.6" fill="none" stroke="#338ced" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
<path fill="#338ced" fill-rule="evenodd" d="M17 27h26a7 7 0 0 1 7 7v15a7 7 0 0 1-7 7H17a7 7 0 0 1-7-7V34a7 7 0 0 1 7-7Zm13 7.6a4.4 4.4 0 0 0-2.3 8.15L27 48.6h6l-.7-5.85A4.4 4.4 0 0 0 30 34.6Z"/>
|
|
15
|
+
</g>
|
|
16
|
+
<text x="186" y="164" fill="#f3f4f6" font-size="76" font-weight="700" letter-spacing="-1.5">relock</text>
|
|
17
|
+
|
|
18
|
+
<text x="80" y="262" fill="#e4e6ea" font-size="42" font-weight="600" letter-spacing="-.4">Agent memory that fixes the rule that fired,</text>
|
|
19
|
+
<text x="80" y="316" fill="#e4e6ea" font-size="42" font-weight="600" letter-spacing="-.4">in place and only on trusted evidence.</text>
|
|
20
|
+
|
|
21
|
+
<text x="80" y="398" fill="#9aa0a8" font-size="22">Correct tool calls after a correction, 8 models, long sessions</text>
|
|
22
|
+
<!-- 0..100% maps to x 80..1200 -->
|
|
23
|
+
<line x1="80" y1="450" x2="1200" y2="450" stroke="#2c2f35" stroke-width="2"/>
|
|
24
|
+
<line x1="752" y1="450" x2="1177.6" y2="450" stroke="#4a4f57" stroke-width="4" stroke-linecap="round"/>
|
|
25
|
+
<circle cx="752" cy="450" r="12" fill="#8a8f97" stroke="#121316" stroke-width="4"/>
|
|
26
|
+
<circle cx="1177.6" cy="450" r="14" fill="#338ced" stroke="#121316" stroke-width="4"/>
|
|
27
|
+
<text x="752" y="494" fill="#9aa0a8" font-size="22" text-anchor="middle">60% usual memory</text>
|
|
28
|
+
<text x="1177.6" y="494" fill="#338ced" font-size="22" font-weight="700" text-anchor="end">98% relock</text>
|
|
29
|
+
|
|
30
|
+
<text class="mono" x="80" y="578" fill="#e4e6ea" font-size="26">pip install relock-memory</text>
|
|
31
|
+
<text x="1200" y="578" fill="#9aa0a8" font-size="24" text-anchor="end">Python · MCP · HTTP for any language</text>
|
|
32
|
+
</svg>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "relock",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"summary": "Agent memory that fixes the rule that fired, in place and only on trusted evidence, so corrected mistakes don't come back.",
|
|
7
7
|
"description": "Language-neutral API for relock. Call it from your harness, the code that runs tools and checks results, never from the model. Loop: POST /episodes, /recall (put `context` in the prompt), report each tool call with /tool-result, then /close. Authenticate with `Authorization: Bearer $RELOCK_TOKEN` when the server has a token.",
|
|
8
8
|
"license": {
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "relock-memory"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Agent memory that fixes the rule that fired, in place and only on trusted evidence, so corrected mistakes don't come back. Python, HTTP (any language), MCP."
|
|
9
9
|
dynamic = ["readme"]
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -61,8 +61,12 @@ content-type = "text/markdown"
|
|
|
61
61
|
path = "README.md"
|
|
62
62
|
|
|
63
63
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
|
|
64
|
-
pattern = '
|
|
65
|
-
replacement = '
|
|
64
|
+
pattern = 'src="(?!https?://)([^"]+)"'
|
|
65
|
+
replacement = 'src="https://raw.githubusercontent.com/inboxpraveen/relock/main/\1"'
|
|
66
|
+
|
|
67
|
+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
|
|
68
|
+
pattern = 'href="(?!https?://|#)([^"]+)"'
|
|
69
|
+
replacement = 'href="https://github.com/inboxpraveen/relock/blob/main/\1"'
|
|
66
70
|
|
|
67
71
|
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
|
|
68
72
|
pattern = '!\[([^\]]*)\]\((?!https?://)([^)\s]+)\)'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|