Repository navigation
Release v0.18.0 - #541
Release v0.18.0#541
Conversation
Bump project.version and the GHCR tags to 0.18.0, regenerate openapi.json, the llms files and the TypeScript contract/version exports, and add the 0.18.0 changelog with the self-hoster breaking changes. Document the 400 invalid_path refusal. Drop transitional "until the next release" wording now that 0.18.0 is the first release on PostgreSQL 19 RC 1. Also: correct D147's renumbering note (D144 unused; D145, D146, D148 are the claim-lease, stage-class worker and egress decisions) and give the S3 adapter's boto3 client 50 pooled connections, above an llm worker's default 20 tasks in flight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
…n version-free docker/README.md records the re-verified foundation pins, both architectures' local image IDs, pg_textsearch artifact manifests and regression results, and the test runs against each image. test_d143_openapi_additive pinned the pre-D143 export's hash including info.version, so any release bump failed it (found by the arm64 full suite). Reset info.version to the pinned document's 0.17.2 before hashing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Codex review round 1 (gpt-6.1-sol, max) on c476ccbVERDICT: APPROVE No blocker, major, or minor findings. Release contract, lockfile, docs truth, generated artifacts, TypeScript checks, Ruff, Pyright, and all 6 MinIO tests passed. TypeScript’s Node checks used pinned dependencies from a neighboring checkout. Disposition: no findings to address. Later commit e940e4d adds the release-matrix record and a test fix, which the arm64 full suite found; it goes to round 2. |
Codex review round 2 (gpt-6.1-sol, max) on e940e4dI’ll read the repository agreement, review the two changes in e940e4d, and run the targeted OpenAPI tests. I won’t edit files or start Docker. exec CLAUDE.md — working agreement for this repoRememberStack is open memory infrastructure for AI agents. Its implementation and binding design
When editing any of these, four rules are non-negotiable (Rule 4 also governs code, Rule 1 — Design docs must be understandable by both future agents AND humansA design or decision document is read by people who were not in the conversation that
Rule 2 — We design the FULL scope, not an MVP or a phased subsetThis project designs the complete intended system (it targets millions of documents — scale
Rule 3 — The library boundary is binding (D60/D61)This repo is the complete single-deployment memory system — and only that. It ships as open
Rule 4 — A new version costs only its edit (D56)The requirement (owner, binding). When a new version of a document arrives, paid work — How the engine implements it today. E1 deterministically re-packs every new
Known gaps against the requirement (not yet fixed; a design to close them is pending
Rules for every change:
Publish work in progressThis applies to the supervising agent and every delegated agent. Push a meaningful Draft publication is not merge approval. Complete the required integration, The docs site ships with the code (D66)
When in doubt on any rule, favor the version a stranger could read cold and fully understand, exec diff --git a/docker/README.md b/docker/README.md +### 0.18.0 (PostgreSQL 19 RC 1), 2026-11-06
+Each architecture was built locally from this Dockerfile with no build cache:
The local 2026-08-26 arm64 experiment passed 71/71 upstream pg_textsearch SQL +_PRE_D143_VERSION: Final = "0.17.2" def without_d143_additions(document: dict[str, Any]) -> dict[str, Any]:
I’m using the repository’s design-corpus skill to check the release record against the binding graph release requirements. exec exec
|
| Where typical agent memory goes wrong | What RememberStack does instead |
|---|---|
| Source text is treated as the truth | What a source said (a claim) is kept apart from what is held true now (a fact) |
| A correction overwrites what came before | The old fact's time window is closed, not erased |
| Contradictions are averaged away | Both sides come back, marked as a contradiction |
| Re-sending a file makes it look more certain | Support counts distinct documents, not repetitions |
| "No results" could mean anything | The result says whether the entity is unknown or known with nothing matching |
Built for agents
- MCP.
remember mcpgives Claude Code, Cursor, Codex, Claude Desktop and
other MCP clients the memory tools;remember setupconfigures them in one
command. Connect your agent → - Python SDK and CLI.
pip install remember.
SDK → ·
CLI → - HTTP API. The same operations over plain HTTP.
API → - Your files. Markdown, text, HTML, Word, PowerPoint and Excel convert out
of the box; PDFs and images with an OCR converter.
File types →
Quickstart
You need Docker (Engine 28 or later for the tokenless local setup) and an
OpenRouter API key.
git clone https://github.com/writeitai/remember-stack && cd remember-stack
cp .env.example .env
printf 'REMEMBERSTACK_POSTGRES_PASSWORD=%s\nREMEMBERSTACK_MINIO_ACCESS_KEY=%s\nREMEMBERSTACK_MINIO_SECRET_KEY=%s\nREMEMBERSTACK_SELFHOST_DEPLOYMENT_ID=%s\n' \
"$(openssl rand -hex 32)" "$(openssl rand -hex 12)" "$(openssl rand -hex 32)" \
"$(openssl rand -hex 16 | sed -E 's/^(.{8})(.{4}).(.{3}).(.{3})(.{12})$/\1-\2-4\3-8\4-\5/')" >> .env
# edit .env: set REMEMBERSTACK_OPENROUTER_API_KEY
docker compose up -d --build
uvx remember setup --self-hosted # connect your coding agentThen send a document and ask your first question:
Quickstart → ·
Self-hosting →
Open source, all of it
Apache-2.0. Everything that decides what your memory holds (extraction,
entity resolution, supersession, provenance, forgetting) is in this
repository. Nothing that affects correctness is held back.
- Docs: remember.dev/docs
- Current release: v0.18.0 ·
PyPI ·
container - How it works inside: architecture ·
design corpus · decision log
Contributing
See CONTRIBUTING.md and CLA.md. Pull requests need
the contributor-agreement checkbox in the PR template.
.github/workflows/release.yml
.github/workflows/release-prepare.yml
.github/ci/postgres-evidence.jq
.github/ci/start-postgres.sh
plan/designs/postgres_schema_design.md
plan/designs/postgres_p1_search_projection_design.md
src/tests/surfaces/test_openapi_export.py
src/tests/surfaces/test_d143_openapi_additive.py
src/tests/surfaces/test_postgres_graph_sql.py
exec
/bin/zsh -lc "nl -ba src/tests/surfaces/test_d143_openapi_additive.py; nl -ba src/tests/surfaces/test_openapi_export.py; rg -n '"'^##|release|matrix|amd64|arm64'"' plan/designs/p2_graph_design.md; git log -3 --oneline; git rev-parse HEAD" in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 0ms:
1 """D143 §8: the published OpenAPI document changes only by additions.
2
3 The layer toggles add one route (GET /processing-layers), an optional
4 layers query parameter on the operation and SQL routes, and the schemas
5 those reference. Removing exactly those from today's export must give back the
6 pre-D143 document, byte for byte after canonical serialisation; its hash is
7 pinned here because the old document itself is a build product of history.
8 """
9
10 from future import annotations
11
12 import hashlib
13 import json
14 from pathlib import Path
15 import sys
16 from typing import Any
17 from typing import Final
18
19 _ROOT = Path(file).parents[3]
20 sys.path.insert(0, str(_ROOT / "scripts"))
21
22 _PRE_D143_SHA256: Final = (
23 "c2bce70429554311e8564e59b2429e371798da1712e3be6aa3bb1c44eff5578f"
24 )
25 """Canonical hash of openapi.json at fbcd489 (main just before D143's code)."""
26
27 _PRE_D143_VERSION: Final = "0.17.2"
28 """info.version in that document; a release bump is not a D143 change."""
29
30 _ADDED_ROUTES: Final = frozenset({"/processing-layers"})
31 _ADDED_SCHEMAS: Final = frozenset(
32 {"ProcessingLayer", "ProcessingLayerStates", "OutputProcessingLayerStates"}
33 )
34
35
36 def without_d143_additions(document: dict[str, Any]) -> dict[str, Any]:
37 """The document with the D143 route, layers parameters and schemas removed.
38
39 info.version is reset to the pre-D143 release, so the pinned hash
40 survives version bumps.
41 """
42 stripped = json.loads(json.dumps(document))
43 stripped["info"]["version"] = _PRE_D143_VERSION
44 for path in _ADDED_ROUTES:
45 stripped["paths"].pop(path, None)
46 for operations in stripped["paths"].values():
47 for operation in operations.values():
48 if not isinstance(operation, dict) or "parameters" not in operation:
49 continue
50 kept = [p for p in operation["parameters"] if p.get("name") != "layers"]
51 if kept:
52 operation["parameters"] = kept
53 else:
54 del operation["parameters"]
55 schemas = stripped.get("components", {}).get("schemas", {})
56 for name in _ADDED_SCHEMAS:
57 schemas.pop(name, None)
58 return stripped
59
60
61 def canonical_sha256(document: dict[str, Any]) -> str:
62 """Hash of the document with sorted keys and no insignificant whitespace."""
63 encoded = json.dumps(document, sort_keys=True, separators=(",", ":"))
64 return hashlib.sha256(encoded.encode("utf-8")).hexdigest()
65
66
67 def test_the_export_is_the_pre_d143_document_plus_its_additions() -> None:
68 """Strip the additions and nothing else may differ (descriptions included)."""
69 from export_openapi import build_document
70
71 assert canonical_sha256(without_d143_additions(build_document())) == (
72 _PRE_D143_SHA256
73 )
1 """The published schema must describe the API this repo actually serves.
2
3 The deployment's OpenAPI document is what clients are generated from, so a
4 document that drifts from the code is worse than no document: consumers compile
5 against it and the mismatch only surfaces at runtime, on someone else's
6 machine.
7
8 Two ways it can drift, and one test each. It can go stale, because the checked
9 in file is a build product that nobody regenerates. And it can go quietly
10 incomplete, because routes mount conditionally on ports — an export that
11 forgot a port publishes a schema missing those endpoints and looks entirely
12 valid, so a generated client simply would not have them.
13 """
14
15 from future import annotations
16
17 import inspect
18 import json
19 from pathlib import Path
20 import sys
21 from typing import Any
22
23 _ROOT = Path(file).parents[3]
24 _SCHEMA = _ROOT / "openapi.json"
25
26 sys.path.insert(0, str(_ROOT / "scripts"))
27
28
29 def _routes(document: dict[str, Any]) -> set[tuple[str, str]]:
30 """(METHOD, path) pairs the document declares."""
31 return {
32 (method.upper(), path)
33 for path, operations in document.get("paths", {}).items()
34 for method in operations
35 if method.lower() in {"get", "post", "put", "patch", "delete"}
36 }
37
38
39 def exported() -> dict[str, Any]:
40 """A freshly built document, straight from the app."""
41 from export_openapi import build_document
42
43 return build_document()
44
45
46 def test_this_file_still_defines_every_test_it_should() -> None:
47 """Guard against a test silently disappearing from this file.
48
49 Twice while writing these checks, an edit that rewrote a block of this file
50 deleted a test along with it. Nothing failed — a deleted test cannot fail —
51 and the claim it had supported stayed in the commit message, describing a
52 guarantee that no longer existed. That is the quietest way for a suite to
53 rot: not a test that breaks, but one that stops being there.
54
55 Counting is crude, and deliberately so: it costs one line to update when a
56 test is added on purpose, and it is the only thing that notices when one
57 vanishes by accident.
58 """
59 source = Path(file).read_text(encoding="utf-8")
60 defined = {
61 line.removeprefix("def ").split("(")[0]
62 for line in source.splitlines()
63 if line.startswith("def test")
64 }
65 assert len(defined) == 8, (
66 f"this file defines {len(defined)} tests: {sorted(defined)}. If you "
67 f"added or removed one deliberately, update this count; if you did not, "
68 f"an edit has silently dropped a test."
69 )
70
71
72 def test_the_checked_in_schema_matches_the_app() -> None:
73 """Regenerate and compare, so the committed document cannot go stale.
74
75 The file is a build product, and build products rot silently — a route
76 added to http_api.py without rerunning the export leaves consumers
77 generating clients against yesterday's surface. Comparing the parsed
78 documents rather than the bytes means reformatting the file is fine while
79 changing what it says is not.
80 """
81 assert _SCHEMA.exists(), (
82 "openapi.json is missing; regenerate it with "
83 "uv run python scripts/export_openapi.py -o openapi.json"
84 )
85 committed = json.loads(_SCHEMA.read_text(encoding="utf-8"))
86 assert committed == _exported(), (
87 "openapi.json no longer matches the app; regenerate it with "
88 "uv run python scripts/export_openapi.py -o openapi.json"
89 )
90
91
92 #: Every route the exported document must declare, and no others.
93 #:
94 #: Frozen as a set rather than spot-checked. An earlier version named four
95 #: routes it cared about, and passed happily while the exporter omitted the
96 #: operations surface, all seven open-query endpoints and /deployment —
97 #: because a missing route is invisible to a test that only asks about the
98 #: routes it remembered.
99 #:
100 #: This list is reviewed, not derived, and the distinction is load-bearing.
101 #: Whether a route is one a real deployment serves cannot be settled by reading
102 #: source: capabilities are resolved at run time from settings, so the profile
103 #: names some it may not compose, and an attempt to check the call sites
104 #: mechanically was defeated six different ways before it was abandoned. What
105 #: a test can do is refuse to let the published surface change without a
106 #: person editing this list and saying why — which is how the phantom
107 #: /connectors routes, absent from every shipped deployment, would have been
108 #: caught: not by the machine, but by the edit being visible.
109 _SURFACE: frozenset[tuple[str, str]] = frozenset(
110 (
111 ("DELETE", "/documents/{doc_id}"),
112 ("DELETE", "/documents/{doc_id}/effective-periods"),
113 ("PUT", "/documents/{doc_id}/versions/{version_id}/effective-periods"),
114 ("GET", "/chunks/{chunk_id}/adjacent"),
115 ("GET", "/deployment"),
116 ("GET", "/documents"),
117 ("POST", "/documents/search"),
118 ("GET", "/documents/{doc_id}/sections/{section_key}/history"),
119 ("PUT", "/documents/{doc_id}/versions/{version_id}/references"),
120 ("GET", "/documents/{doc_id}/versions/{version_id}/references"),
121 ("POST", "/documents/references"),
122 ("GET", "/hydrate/relation/{relation_id}"),
123 ("GET", "/lookup/observations"),
124 ("GET", "/lookup/relations"),
125 ("GET", "/operations"),
126 ("GET", "/processing-layers"),
127 ("GET", "/query/saved"),
128 ("GET", "/query/saved/{namespace}/{name}"),
129 ("GET", "/query/space"),
130 ("GET", "/query/space/search"),
131 ("GET", "/resolve"),
132 ("GET", "/search/chunks"),
133 ("GET", "/search/claims"),
134 ("GET", "/transcript/relation/{relation_id}"),
135 ("POST", "/chunks/adjacent"),
136 ("POST", "/graph/citation-path"),
137 ("POST", "/graph/neighborhood"),
138 ("POST", "/graph/path"),
139 ("POST", "/ingest"),
140 ("POST", "/operations/{name}"),
141 ("POST", "/query/saved/{namespace}/{name}/run"),
142 ("POST", "/query/sql"),
143 ("POST", "/query/sql/explain"),
144 ("POST", "/readiness"),
145 ("POST", "/search/chunks"),
146 ("POST", "/search/claims"),
147 )
148 )
149
150
151 #: build_api parameters that compose a capability.
152 #:
153 #: Most mount routes. auth and spend_lease do not — the first adds a
154 #: dependency and the bearer scheme, the second installs middleware — but they
155 #: are capabilities all the same, which is why this is not called a route list.
156 #:
157 #: Listed rather than inferred, because "optional parameter" and "capability"
158 #: are not the same thing: a body-size cap is optional and composes nothing.
159 #: The signature test below fails on an optional parameter that appears in
160 #: neither list, so a capability added later cannot pass unnoticed.
161 _CAPABILITY_PORTS = frozenset(
162 {
163 "surface",
164 "open_query",
165 "auth",
166 "spend_lease",
167 "ingest",
168 "connectors",
169 "pipeline_readiness",
170 "documents",
171 "document_search",
172 "section_history",
173 "references",
174 "document_references",
175 "deletion",
176 "effective_time",
177 "graph",
178 "build_info",
179 "processing_layers",
180 }
181 )
182
183 #: Optional build_api parameters that tune behaviour without composing one.
184 #:
185 #: A body-size cap changes how a request is handled, not what the deployment
186 #: can do. Keeping the two lists apart is what lets the signature check be
187 #: exhaustive: every optional parameter must be one or the other, deliberately.
188 #: A task queue only announces the work a request created (D147); it mounts
189 #: no route.
190 _POLICY_PARAMETERS = frozenset(
191 {"ingest_body_max_bytes", "direct_admission", "task_queue"}
192 )
193
194
195 def test_every_optional_capability_is_classified() -> None:
196 """The two lists above must still cover every optional build_api parameter.
197
198 They are hand-kept, so they rot the moment someone adds a capability and
199 does not touch them. This does not check that the exporter and the profile
200 compose the same things — nothing here does, because run-time settings
201 decide that — it checks the smaller thing that is actually knowable: a new
202 optional parameter has been consciously classified as a capability or a
203 policy knob, rather than slipping in unconsidered.
204
205 This test was itself deleted once by an edit that rewrote the surrounding
206 block, and nothing noticed until review: the claim that the mutation failed
207 stayed in the commit message while the check that made it true was gone.
208 Hence the count assertion in test_this_file_still_defines_every_test_it_should.
209 """
210 from rememberstack.surfaces import http_api
211
212 optional = {
213 name
214 for name, parameter in inspect.signature(http_api.build_api).parameters.items()
215 if parameter.default is None
216 }
217 assert _CAPABILITY_PORTS <= optional, (
218 f"named but not an optional build_api parameter: "
219 f"{sorted(_CAPABILITY_PORTS - optional)}"
220 )
221 unlisted = optional - _CAPABILITY_PORTS - _POLICY_PARAMETERS
222 assert not unlisted, (
223 f"build_api gained optional parameters not classified here: "
224 f"{sorted(unlisted)}. Add a capability to _CAPABILITY_PORTS, or a knob "
225 f"that composes nothing to _POLICY_PARAMETERS. If it mounts routes, "
226 f"regenerate openapi.json and _SURFACE too."
227 )
228
229
230 def test_the_exported_surface_is_exactly_the_surface_we_publish() -> None:
231 """The document must declare every route, and nothing extra.
232
233 Routes mount conditionally on ports, so an export that forgot a port
234 publishes a schema missing those endpoints and looks entirely valid: a
235 generated client would simply lack them, and nothing would fail until
236 someone called one. Comparing the whole set is what turns that into a test
237 failure instead of a support ticket.
238
239 The unexpected direction matters too. A route appearing here that nobody
240 meant to publish is a surface expansion, and the schema is exactly where
241 that should be noticed.
242 """
243 exported = _routes(_exported())
244 assert exported == set(_SURFACE), (
245 f"missing: {sorted(set(_SURFACE) - exported)}\n"
246 f"unexpected: {sorted(exported - set(_SURFACE))}"
247 )
248
249
250 def test_the_schema_declares_the_credential_a_guarded_deployment_requires() -> None:
251 """A contract without its auth is a contract clients cannot satisfy.
252
253 A deployment that composes an auth perimeter rejects every unauthenticated
254 call, so a client generated from a document that never mentions credentials
255 compiles cleanly and then fails on the first request. Declaring the bearer
256 scheme is what lets generation produce a client that can actually talk to a
257 guarded deployment.
258 """
259 schemes = _exported().get("components", {}).get("securitySchemes", {})
260 assert "HTTPBearer" in schemes, (
261 "no bearer security scheme; a generated client would not send a credential"
262 )
263
264
265 def test_the_schema_reports_the_package_version() -> None:
266 """A document labelled 0.1.0 tells a consumer nothing about what it describes.
267
268 FastAPI defaults the version, and a published asset carrying that default
269 would be indistinguishable across releases — exactly the wrong property for
270 an artifact whose whole job is to pin a contract to a version.
271 """
272 from rememberstack import version
273
274 assert _exported()["info"]["version"] == version
275
276
277 def test_the_schema_carries_the_shapes_those_routes_answer_with() -> None:
278 """A route without its response schema generates a client returning any.
279
280 Declaring the path is only half a contract. If the component schemas were
281 missing, generation would still succeed and produce untyped responses —
282 the drift this whole file exists to prevent, arriving through the back
283 door.
284 """
285 schemas = _exported().get("components", {}).get("schemas", {})
286 for name in (
287 "DocumentPage",
288 "DocumentSummary",
289 "DocumentVersionSummary",
290 "AdjacentChunksRequest",
291 ):
292 assert name in schemas, f"{name} is missing from the published schema"
293 assert "SearchRequest" in schemas, (
294 "SearchRequest is missing; the POST search bodies would generate untyped"
295 )
296
297
298 def test_documenting_the_credential_did_not_start_enforcing_it() -> None:
299 """The scheme must describe the contract without ever refusing a request.
300
301 HTTPBearer refuses a missing credential by default (401 on the pinned
302 FastAPI, 403 on some versions — the code varies, the refusal does not).
303
304 On a gated route that refusal is merely redundant, because _perimeter is
305 registered first and already answers 401, so a test checking only a gated
306 route would pass either way and prove nothing. The real damage is on the
307 one route the perimeter deliberately exempts: GET /healthz is the Compose
308 liveness probe and is reached without a credential by design. An
309 auto_error=True scheme sits outside that exemption and would refuse it,
310 failing the container's health check while every other route still worked —
311 the kind of breakage that reads as an infrastructure fault for a long time.
312
313 So the scheme is declared with auto_error=False: it never raises, and
314 _perimeter stays the sole enforcement point. This checks both routes,
315 because only the exempt one can tell the difference.
316 """
317 from uuid import UUID
318
319 from export_openapi import _Boundary
320 from export_openapi import _Unused
321 from fastapi.testclient import TestClient
322
323 from rememberstack.model import AuthenticatedContext
324 from rememberstack.model import PerimeterCredential
325 from rememberstack.surfaces.http_api import build_api
326
327 served = UUID("11111111-2222-3333-4444-555555555555")
328
329 class _Auth:
330 """Accepts exactly one credential for the deployment under test."""
331
332 def authenticate(
333 self, *, credential: PerimeterCredential
334 ) -> AuthenticatedContext:
335 """Authenticate good; refuse anything else."""
336 if credential.value.get_secret_value() == b"good":
337 return AuthenticatedContext(deployment_id=served, principal="agent")
338 raise ValueError("unknown credential")
339
340 boundary = _Boundary(deployment_id=served)
341 app = build_api(
342 engine=_Unused(), # type: ignore[arg-type]
343 deployment_id=served,
344 admission=boundary, # type: ignore[arg-type]
345 readiness=boundary, # type: ignore[arg-type]
346 auth=_Auth(), # type: ignore[arg-type]
347 documents=_Unused(), # type: ignore[arg-type]
348 )
349
350 # The self-host profile adds this route to the built app; the liveness
351 # probe's exemption lives in _perimeter, so reproduce the shape here.
352 @app.get("/healthz", include_in_schema=False)
353 def healthz() -> dict[str, str]:
354 """Stand in for the profile's probe, which needs no credential."""
355 return {"status": "ok"}
356
357 client = TestClient(app)
358
359 # Gated route: refused, and with the code clients already handle.
360 assert client.get("/documents").status_code == 401
361 # Exempt route: still reachable with no credential at all.
362 assert client.get("/healthz").status_code == 200
16:## 1. Problem and decision
49:read. PostgreSQL 19 Beta 4 reverted SQL/PGQ, so release candidate 1 and the
50:final release cannot parse it. PG19's SQL/PGQ was only a query rewrite: a
60:## 2. Product contract
78:## 3. Authority and graph model
80:### 3.1 Sources
117:### 3.2 The current and history graphs
153:### 3.3 No entity types
160:## 4. Query execution
162:### 4.1 Fixed one-hop read
269:### 4.2 Work-bounded frontier traversal
394:### 4.3 Temporal semantics
417:### 4.4 Transaction snapshot
448:## 5. Retrieval behavior
474:## 6. Global graph analytics
497:## 7. Security and admission boundary
521:### Surface and transport contract
537:## 8. Capacity and isolation
585:## 9. PostgreSQL 19 and extension posture
587:The reference image tracks the latest PostgreSQL 19 prerelease by exact image
588:digest: first the Beta 3 image proven in the analysis, release candidate 1
589:since 2026-11-06, and the final release when it ships. There are no user
592:- no prerelease database contains irreplaceable production data;
597:- the complete extension/one-hop/traversal matrix passes on both linux/amd64 and
598: linux/arm64, with per-architecture image/artifact digests recorded;
599:- prerelease-to-prerelease data-directory compatibility is not assumed;
604:pinned to an upstream release of 1.5.1 or later (D142), which supports
611:distribution when the required notices accompany copies. OSS release
615:## 10. Failure, recovery, forget, and upgrade
617:### Failure
625:### Recovery
635:### Hard forget
643:### Schema and version upgrades
648:During PostgreSQL 19 prereleases, rollback is rebuild-and-restore from a
658:## 11. Observability and readiness
679:invalid-short/valid-longer temporal path are CI, release, restore-drill, and
707:## 12. Acceptance gates
731: and query-space tests pass on both linux/amd64 and linux/arm64 images;
745:## 13. Costs and rejected alternatives
759: release lacks PostgreSQL 19 and the required per-edge temporal predicate;
e940e4d Record the 0.18.0 PostgreSQL release matrix; keep the D143 OpenAPI pin version-free
c476ccb chore(release): prepare v0.18.0
0de5d15 Merge pull request #540 from writeitai/fix/spend-gate-empty-segments
e940e4d
exec
/bin/zsh -lc "nl -ba RELEASING.md | sed -n '1,220p'; nl -ba docker/README.md | sed -n '1,190p'; sed -n '1,100p' plan/README.md" in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 0ms:
1 # Releasing RememberStack
2
3 The Release workflow publishes one version to PyPI and GHCR, then creates a GitHub release
4 containing the Python distributions, the same version-pinned compose.yaml, the generated
5 openapi.json, and the example environment as default.env.example (GitHub's public asset
6 name for the source .env.example). It accepts only tags exactly matching
7 vMAJOR.MINOR.PATCH.
8
9 ## One-time owner setup
10
11 The one-time owner setup is complete:
12
13 1. D77 records explicit acceptance of the preliminary naming risk. CLA.md, the trademark policy,
14 pull-request template, and metadata-only CLA workflow are present. The emitted CLA status is
15 a required main check with administrator enforcement.
16 2. The GitHub repository is writeitai/remember-stack. Update each existing clone if needed:
17
18 bash 19 git remote set-url origin git@github.com:writeitai/remember-stack.git 20
21
22 Under D108, the canonical PyPI distribution is remember (providing the remember CLI launcher
23 and the remember Python client package),
24 published from this repository starting with v0.17.0. The container image package is ghcr.io/writeitai/remember-stack.
25 3. The GitHub environment pypi requires an owner review, so a tag cannot publish to PyPI without
26 explicit approval.
27 4. The PyPI account uses two-factor authentication and has an active
28 Trusted Publisher
29 with these exact values:
30
31 | Field | Value |
32 |---|---|
33 | PyPI project name | remember |
34 | GitHub owner | writeitai |
35 | Repository | remember-stack |
36 | Workflow | release.yml |
37 | Environment | pypi |
38
39 This publisher replaced the retired writeitai/ultimate-memory-cloud / release-remember.yml
40 / pypi-remember publisher after the 0.17.0 upload succeeded. Do not restore a second
41 publisher for the same package.
42 5. The active Protect release tags ruleset restricts creation, update, and deletion of tags
43 matching v* to repository administrators. The workflow token cannot create these tags.
44
45 No PyPI password or long-lived API token belongs in GitHub secrets. The workflow requests a
46 short-lived OpenID Connect credential and grants id-token: write only to the PyPI job.
47
48 ## Cutting a release
49
50 Prepare a normal pull request that updates both project.version in pyproject.toml and the
51 GHCR tag in compose.yaml. Update release-facing documentation in the same pull request. The
52 contract check rejects drift:
53
54 bash 55 uv run python scripts/check_release_contract.py --tag v0.17.0 56
57
58 That release pull request also refreshes the PostgreSQL foundation pins in
59 Dockerfile.postgres: use the reviewed PostgreSQL 19 prerelease/GA base digest,
60 pin the intended PGDG pgvector and pg_partman package versions, and pin the
61 pg_textsearch source revision plus source, compatibility-patch, license, and
62 notice checksums. Build the Dockerfile for both architectures, record each
63 embedded artifact manifest and immutable image digest, and run the extension
64 and graph release matrix before tagging. The tag workflow then rebuilds and
65 publishes ghcr.io/writeitai/remember-stack-postgres:19rc1-VERSION for both
66 architectures and attaches postgres-image-digests.json to the GitHub release;
67 UMC consumes the recorded manifest digest, never that human-readable tag.
68 Updating the foundation pins remains a manual, reviewable patch cadence;
69 publishing and digest capture are mechanical and mutable database-image tags
70 are not used.
71
72 After that pull request is merged and main is green, tag its exact merge commit:
73
74 bash 75 git switch main 76 git pull --ff-only 77 git tag -a v0.17.0 -m "Remember 0.17.0" 78 git push origin v0.17.0 79
80
81 An administrator must push the tag at the exact verified source commit before
82 the GitHub-release job runs. A main push may start the workflow before the
83 tag exists; if the job then fails with the tag-creation rule, create the
84 annotated tag at that immutable source SHA and rerun only the failed jobs.
85 Never move an existing release tag.
86
87 The workflow validates the tag, runs the release test suite, builds the wheel and source
88 distribution, and publishes remember==0.17.0 plus
89 ghcr.io/writeitai/remember-stack:0.17.0 and the PostgreSQL foundation, both
90 for linux/amd64 and linux/arm64. It creates the GitHub release only after both
91 registries accept their artifacts and both image manifests prove amd64 plus
92 arm64 digests.
93
94 PyPI and GHCR do not support an atomic cross-registry transaction. Never reuse a published
95 version after a partial failure: fix the cause, complete the missing publish when safe, or cut the
96 next patch version.
97
98 ## 0.17.0 cutover record (2026-09-23)
99
100 - Source commit: 78fee141484729be3763fe886c4d7cff595c09e7 (PR #446).
101 The owner-created annotated v0.17.0 tag resolves to that commit.
102 - Release run 35788878236
103 completed on attempt 3. Attempt 1 exposed the missing remember PyPI
104 trusted publisher; attempt 2 published both Python distributions but the
105 workflow token could not create the administrator-protected tag. The owner
106 added the publisher and tag, then resumed the same release.
107 - PyPI has remember==0.17.0
108 wheel and source archive. The one-time
109 rememberstack==0.17.0
110 forwarder was also published, then the rememberstack project was archived
111 rather than deleted. Its 24 releases and existing pins remain available;
112 new uploads are blocked and PyPI search no longer promotes the name.
113 - The GitHub release
114 is titled remember 0.17.0 and attaches only canonical remember Python
115 files alongside deployment inputs and image receipts. Application image:
116 sha256:df9ca49f6249b8a848f429a1688324467615ce7818de37dfc19e8c589678b587.
117 PostgreSQL multi-architecture manifest:
118 sha256:59ed1414da1f5f366b7e1c5f0f6028a9bc99a15183debbd6d52d3b4a94062684
119 (amd64 and arm64 receipts attached).
120 - The PyPI remember project now lists only this repository's release.yml
121 / pypi trusted publisher. No long-lived publishing token was created.
122
123 ## GHCR visibility
124
125 The remember-stack container package was made public after the v0.1.0 image push, so later
126 versions in the same package support anonymous Compose pulls without another visibility step. A
127 new package namespace would default to private and require the same one-time review. GitHub warns
128 that a public package cannot be made private again.
129
130 The image carries standard OCI source labels generated from the repository metadata, which links
131 the package back to this repository. Docker Hub is intentionally not a second publication target.
132
133 ## Verify the public artifacts
134
135 Run these checks from a clean machine or temporary directory:
136
137 bash 138 uvx --from remember==0.17.0 remember --version 139 docker pull ghcr.io/writeitai/remember-stack:0.17.0 140 gh release download v0.17.0 --repo writeitai/remember-stack \ 141 --pattern compose.yaml --pattern default.env.example --pattern openapi.json 142 found=$(jq -r '.info.version' openapi.json) || { 143 echo "cannot read openapi.json" >&2 144 exit 1 145 } 146 [ "$found" = "0.17.0" ] || { 147 echo "openapi.json is version $found, expected 0.17.0" >&2 148 exit 1 149 } 150 cp default.env.example .env 151 docker compose --env-file .env up --no-build --pull always --detach --wait 152 curl --fail http://localhost:8000/healthz 153 docker compose --env-file .env down --volumes 154
155
156 The final command deletes the disposable verification deployment and its volumes.
1 # PostgreSQL image release evidence
2
3 Dockerfile.postgres is the only supported database image definition. It pins
4 the PostgreSQL 19 prerelease base (release candidate 1, 19rc1-trixie) by
5 digest, pins PGDG extension package versions, and builds pg_textsearch from a
6 checksum-verified source archive (no local patch: v1.5.1 supports PostgreSQL 19
7 upstream, D142).
8
9 The RC 1 headers no longer include <limits.h> indirectly, and pg_textsearch
10 v1.5.1 uses INT_MAX without including it (upstream issue
11 timescale/pg_textsearch#586,
12 open on 2026-11-06). The build adds -include limits.h to the server's own
13 preprocessor flags instead of changing the source; drop the flag once a pinned
14 release includes the header itself.
15
16 pgvector is pinned to the PGDG build 0.8.6-1.pgdg13+2, which PGDG rebuilt
17 against the Beta 4 headers; that is the tested pin (PGDG also publishes
18 0.8.7-1.pgdg13+1). Between Beta 4 and RC 1 the
19 index access-method interface (access/amapi.h) is unchanged, and the one
20 changed index-vacuum struct (IndexVacuumInfo, a new is_autovacuum flag)
21 moves only fields pgvector 0.8.6 does not read (checked against the
22 postgresql-server-dev-19 19beta4 and 19rc1 packages and the v0.8.6 source,
23 2026-11-06). pg_partman's background worker uses only interfaces whose headers
24 are unchanged between Beta 3 and RC 1.
25
26 Exact pgvector and pg_partman Debian versions resolve from PGDG's all-versions
27 trixie-pgdg-archive repository, not the rotating current-version index. PGDG
28 documents that archive as the daily-updated repository containing every
29 released package version; retrieved 2026-08-27 from
30 https://apt-archive.postgresql.org/.
31
32 ## pg_textsearch provenance
33
34 - source revision: fa142d049d08eac45a263f5abc250c8877ae076e (tag v1.5.1)
35 - source archive SHA-256:
36 445a546810cbc17e15d05ff8a391f1b693eab382a2ef6efbf72e1c37fa0c48d0
37 - PostgreSQL 19: supported upstream since v1.5.0 as best effort with
38 non-blocking CI (README at the pinned revision),
39 so this image's own integration suite is the PostgreSQL 19 gate; the former
40 local compatibility patch is retired (retrieved 2026-10-21)
41 - license determination: the pinned revision's LICENSE identifies The
42 PostgreSQL License (PostgreSQL identifier), and its NOTICE says the
43 extension is licensed under that license; unchanged at v1.5.1 (same
44 checksums), retrieved 2026-10-21
45 - license SHA-256:
46 d33de21a123ce25b41722a5d10750984cb9c844c4d9b01add9e1b31f3ff452e5
47 - notice SHA-256:
48 ff70cf4336c579957368a71c6b6b66ee8954011deef2b3d2c7a11f931080851d
49 - license evidence: both files are checksum-verified during the build and
50 copied to /usr/share/doc/pg_textsearch/ in the runtime image
51
52 The build writes SHA-256 values for the installed shared object, control file,
53 and SQL migration files to
54 /usr/share/doc/pg_textsearch/artifacts.sha256. Because that file is produced
55 inside each build platform, it is also the per-architecture binary record.
56
57 ## Release matrix
58
59 For each PostgreSQL beta, RC, and GA candidate, build both linux/amd64 and
60 linux/arm64. Record the immutable image digest and the embedded artifact
61 manifest for each architecture, then run migrations, extension smoke tests,
62 the pg_textsearch regression suite, graph correctness tests, and the complete
63 RememberStack test suite. Managed deployment remains blocked unless amd64
64 passes; self-host release remains blocked unless both architectures pass.
65
66 The tag workflow mechanically publishes the two-platform manifest and attaches
67 postgres-image-digests.json, containing its immutable digest plus both child
68 digests, to the GitHub release. The release-contract checker fails if that job,
69 either required platform, or the digest evidence artifact disappears.
70
71 ### 0.18.0 (PostgreSQL 19 RC 1), 2026-11-06
72
73 These pins were re-verified for this release, and none changed:
74 - Base image. The pinned index sha256:f6bab621… lists the same children as the
75 19rc1-trixie tag's current index, sha256:4b3e4b2e…. Both have amd64
76 sha256:2683c85306de152af6475f669cec1b172a3bfb77f7928cfe46b8c6dd338aa7a5 and
77 arm64 sha256:40ec4717d7f11d1456c7ced89d4bcdb7a7b8727ddadf652b09765b4440cbbc4b.
78 Only the riscv64 child was rebuilt. The server package is 19~rc1-1.pgdg13+1.
79 - PGDG packages. The pgvector and pg_partman versions pinned above resolve from the
80 archive.
81 - pg_textsearch. The source archive, LICENSE and NOTICE checksums match. The pinned
82 revision is tag v1.5.1.
83
84 Each architecture was built locally from this Dockerfile with no build cache:
85 - arm64 was built natively.
86 - amd64 was built under Rosetta emulation on an Apple Silicon host.
87
88 | | linux/amd64 | linux/arm64 |
89 |---|---|---|
90 | Local image ID (not pushed) | sha256:0a99756fdb833ec133ee75ae2458b3da9f95c15b23976931b227667fb96e2a3d | sha256:8affa2dd4a8ae6724f1aa085591aa5f73ec00c8c31d51c417b3c6edd9d5d5441 |
91 | artifacts.sha256 (file SHA-256) | 67e0e0b3bb6cdb5239f1a9b6abaf7ae55980499100beaa05be4da476baf6e0d9 | 6c2e3491af7c05daaf602f5d57d11a9a39b27ff91981f9ca7241f0c8605e21a5 |
92 | pg_textsearch.so | 302e2123c5cb464dccd744bd520cf0980e48e4aacc0179184e6bcf9540b7fd7a | b3c183a5741815d142d339240d426ff48ad7f7822f88e04f5628c62e70ab5e16 |
93 | pg_textsearch regression suite | 82/82 | 82/82 |
94
95 The control and SQL files are byte-identical on both architectures. The .so lines differ.
96 The arm64 .so checksum also came out the same in an earlier cached build.
97
98 The published registry digests are a separate record. The tag workflow writes them to
99 postgres-image-digests.json on the GitHub release.
100
101 Tests run against these images:
102 - amd64 (Rosetta). The migration, pgvector/HNSW, pg_textsearch/BM25, pg_partman,
103 one-hop, traversal, readiness, ops, query-space and restore suites: 277 passed.
104 - amd64 (native). Main CI run 42303684449 at 0de5d1506 ran the workers, surfaces
105 and adapters integration suites against this Dockerfile on Linux amd64, and they passed.
106 - arm64. The complete suite: 4479 passed, 6 skipped, 2 xfailed. One test failed
107 only because it pinned the old info.version (test_d143_openapi_additive). The
108 release PR fixes it, and it now passes.
109
110 The local 2026-08-26 arm64 experiment passed 71/71 upstream pg_textsearch SQL
111 regression tests. It is evidence for this patch, not a substitute for the
112 two-architecture release matrix. A broken local Docker daemon is likewise an
113 open execution gate, never a reason to waive the image build.
Planning corpus
Requirements describe what the engine must do in requirements/. Accepted
architecture lives in designs/; research in analysis/ is non-binding.
plans/ owns build order. The canonical numbered authority log is
decisions.md. Design acceptance does not establish shipped behavior.
For package and release identity, start with D108's unified distribution
design. The
release-identity analysis
explains why GitHub preserves the remember-stack history while public Python
releases expose only remember, and why the retired PyPI name is archived
rather than deleted.
For credentials and client surfaces — the one signed key, the shared
remember.mcp_tools catalogue, the project routing argument, remember mcp
engine and bridge modes, remember setup, and the perimeter's signed-key
contract — start with D136's design
and its analysis. It amends the
credential and login parts of D92/D108.
For the temporal program, start with D118 mutable fact windows
and the implementation sequence. The
analysis explains the independent audits
and rejected alternatives. PR #384 withdraws the old incomplete implementation;
this design does not claim that the replacement runtime ships.
For the processing improvements, see D120 clear prompts,
D121 concise evidence,
D122 document references and
D123 contextual nomination.
The analysis explains the costs and
alternatives; the delivery plan coordinates
these with D119 multi-span extraction in PR #400. Grouped adjudication remains
an unchosen proposal.
D107's canonical arithmetic and extraction
remain applicable. Its other fact-time rules and the D110–D113 framework are
superseded by D118's explicit authority map. Their documents and SQL remain
marked as historical artifacts; the PostgreSQL design
no longer incorporates the withdrawn DDL.
For coherent claims and distributed source evidence, start with
D119 multi-span extraction.
The analysis explains the LoCoMo
findings and reuse constraints. Implementation is not implied by design acceptance.
For which file formats the engine accepts and what it produces from each — the format
registry, full/profile/card postures and extraction eligibility — see
D133 format conversion, with D139's
OCR on every accepted PDF page in
the workspace family design;
for finding files and
filtering by author or date, D134 document metadata and search.
The families actually shipped for workspaces, and how they serve coding agents, are
D138 workspace formats.
The analysis records the
current coverage and rejected alternatives; the
delivery order sequences the work.
For conversational anaphora and question-affirmation resolution across dialogue turns,
see D131 cross-turn conversational anaphora extraction
and the analysis.
For byte-authoritative ingest MIME and explicit classes on every object write,
see D132 in the E0 file design
and the analysis.
For deleting a document through the API, SDK, CLI or MCP, see D135 in the
evidence lifecycle design §8
and the analysis. Erasure remains
D74 hard-forget.
For documents whose versions are in force for declared periods (policies, price
lists, standards editions, contract amendments, statutes), stable section keys,
reading text as of a date, and section-level cross-references that are pinned or
floating, start with D140's design
and its analysis; the
delivery plan says which parts ship
together. It also makes D56's version reuse hold for dated versions (text origin time).
For why ranked search must use its indexes, how it keeps eligibility exact and
reports every early stop, and how semantic recall is measured, start with D142 in the P1 search design,
its analysis, the unchosen
distinct-text index proposal and the
delivery plan.
For the full TypeScript counterpart, see D141 TypeScript client,
analysis, the normative parity inventory
and delivery gates. CLI/MCP are separate package boundaries.
For configurable context result counts, automatic fourfold candidate overfetch,
and the separate full LoCoMo retrieval budget, start with
context operations
and the retrieval-depth analysis.
To switch the claims or facts layer off for a deployment, narrow a request to some layers, or
understand how a layer switched on later is backfilled without re-paying for unchanged text,
start with D143's processing layers design and its
analysis.
exec
/bin/zsh -lc "nl -ba src/tests/surfaces/test_d143_openapi_additive.py; nl -ba plan/designs/p2_graph_design.md | sed -n '580,615p;700,744p'; rg -n 'pytest|postgres|runs-on|workers|surfaces|adapters|Dockerfile' .github/workflows/ci.yml .github/workflows/release.yml pyproject.toml src/tests/conftest.py" in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 0ms:
1 """D143 §8: the published OpenAPI document changes only by additions.
2
3 The layer toggles add one route (GET /processing-layers), an optional
4 layers query parameter on the operation and SQL routes, and the schemas
5 those reference. Removing exactly those from today's export must give back the
6 pre-D143 document, byte for byte after canonical serialisation; its hash is
7 pinned here because the old document itself is a build product of history.
8 """
9
10 from future import annotations
11
12 import hashlib
13 import json
14 from pathlib import Path
15 import sys
16 from typing import Any
17 from typing import Final
18
19 _ROOT = Path(file).parents[3]
20 sys.path.insert(0, str(_ROOT / "scripts"))
21
22 _PRE_D143_SHA256: Final = (
23 "c2bce70429554311e8564e59b2429e371798da1712e3be6aa3bb1c44eff5578f"
24 )
25 """Canonical hash of openapi.json at fbcd489 (main just before D143's code)."""
26
27 _PRE_D143_VERSION: Final = "0.17.2"
28 """info.version in that document; a release bump is not a D143 change."""
29
30 _ADDED_ROUTES: Final = frozenset({"/processing-layers"})
31 _ADDED_SCHEMAS: Final = frozenset(
32 {"ProcessingLayer", "ProcessingLayerStates", "OutputProcessingLayerStates"}
33 )
34
35
36 def without_d143_additions(document: dict[str, Any]) -> dict[str, Any]:
37 """The document with the D143 route, layers parameters and schemas removed.
38
39 info.version is reset to the pre-D143 release, so the pinned hash
40 survives version bumps.
41 """
42 stripped = json.loads(json.dumps(document))
43 stripped["info"]["version"] = _PRE_D143_VERSION
44 for path in _ADDED_ROUTES:
45 stripped["paths"].pop(path, None)
46 for operations in stripped["paths"].values():
47 for operation in operations.values():
48 if not isinstance(operation, dict) or "parameters" not in operation:
49 continue
50 kept = [p for p in operation["parameters"] if p.get("name") != "layers"]
51 if kept:
52 operation["parameters"] = kept
53 else:
54 del operation["parameters"]
55 schemas = stripped.get("components", {}).get("schemas", {})
56 for name in _ADDED_SCHEMAS:
57 schemas.pop(name, None)
58 return stripped
59
60
61 def canonical_sha256(document: dict[str, Any]) -> str:
62 """Hash of the document with sorted keys and no insignificant whitespace."""
63 encoded = json.dumps(document, sort_keys=True, separators=(",", ":"))
64 return hashlib.sha256(encoded.encode("utf-8")).hexdigest()
65
66
67 def test_the_export_is_the_pre_d143_document_plus_its_additions() -> None:
68 """Strip the additions and nothing else may differ (descriptions included)."""
69 from export_openapi import build_document
70
71 assert canonical_sha256(without_d143_additions(build_document())) == (
72 _PRE_D143_SHA256
73 )
580 after recreating the helpers. The citation-path helper keeps the default planner
581 because it is not one of the recursive entity-expansion helpers.
582 Measurements record hardware, cardinality, skew, and p50/p95/p99 rather than
583 weakening correctness to a small-fixture promise.
584
585 ## 9. PostgreSQL 19 and extension posture
586
587 The reference image tracks the latest PostgreSQL 19 prerelease by exact image
588 digest: first the Beta 3 image proven in the analysis, release candidate 1
589 since 2026-11-06, and the final release when it ships. There are no user
590 databases to preserve. Until GA:
591
592 - no prerelease database contains irreplaceable production data;
593 - migrations and representative fixtures must replay from empty storage;
594 - every beta/RC bump rebuilds the image and runs the full migration,
595 pgvector/HNSW, pg_textsearch/BM25, pg_partman, one-hop, traversal, backup,
596 and restore gates;
597 - the complete extension/one-hop/traversal matrix passes on both linux/amd64 and
598 linux/arm64, with per-architecture image/artifact digests recorded;
599 - prerelease-to-prerelease data-directory compatibility is not assumed;
600 - GA is another tested image replacement, after which ordinary supported
601 major/minor upgrade policy resumes.
602
603 The reference image pins pgvector and pg_partman packages. pg_textsearch is
604 pinned to an upstream release of 1.5.1 or later (D142), which supports
605 PostgreSQL 19 upstream, so the earlier 1.3.1 compatibility patch is retired and no
606 local patch is carried (the P1 search design §8.3 bounds the extension's
607 memtable-versus-segment scoring difference instead of patching it).
608 Upstream treats PostgreSQL 19 as best-effort with non-blocking CI, so the image
609 build runs the extension's upstream SQL tests on the pinned PostgreSQL 19 image
610 as a local gate. Its PostgreSQL License permits use, modification, and
611 distribution when the required notices accompany copies. OSS release
612 engineering records source, notice, compiler/toolchain, and per-architecture
613 binary checksums. No floating main branches enter the image.
614
615 ## 10. Failure, recovery, forget, and upgrade
700 edges/paths, truncation, duration, timeout/cancel/error, pool wait, temp bytes,
701 and PostgreSQL query identity. They contain ids/cardinalities, not fact text or
702 secret connection material.
703
704 There is no p2_generation, built_at, snapshot age, download state, local
705 graph path, or rebuild-ready signal.
706
707 ## 12. Acceptance gates
708
709 Implementation is accepted only when all of these pass:
710
711 1. fresh PostgreSQL 19 migration creates the graph views and each view's key
712 query proves unique;
713 2. one-hop tests prove tenant isolation, direction,
714 current/as-of visibility, anchor exclusion, deduplication, deterministic
715 truncation, and byte-identical parity with the canonical traversal at depth
716 one for under-budget inputs; separate
717 dense-hub tests prove the one-hop read's zero-data refusal and the helper's deterministic
718 partial-prefix over-budget contracts;
719 3. frontier tests prove required deployment_id, current/history source
720 selection, both half-open clocks, invalid-short/valid-longer shortest path,
721 directed citation behavior, cycle safety, early target termination,
722 deterministic ordering, whole-path limits, hard frontier/expansion/result
723 clamps, and clean scratch/pool reuse;
724 4. typed graph API parity covers neighborhood/path/citation results without
725 Ladybug or Cypher;
726 5. retrieval tests prove live newly committed edges are available without a
727 graph build and that graph provenance/truncation are preserved;
728 6. forget and restore tests find no graph artifact inventory and prove view
729 disappearance after commit;
730 7. HNSW, BM25, pg_partman, migration, PG18-parser/PG19-executor negative tests,
731 and query-space tests pass on both linux/amd64 and linux/arm64 images;
732 8. repository searches and dependency locks contain no active Ladybug runtime,
733 P2 generation worker, public Cypher route, or P2 readiness contract;
734 9. representative query plans prove frontier-anchored deployment-first index
735 access; an unrelated-tenant scale fixture proves survivor/provenance
736 materialization is deployment-scoped before its fence; and the configured
737 concurrency test does not starve authority writes/search;
738 10. least-privilege tests determine and enforce invoker ACL behavior on every
739 graph view (no owner-based privilege escalation);
740 11. cold-start, backup/restore, missing-catalog fail-closed, and operator
741 graph-catalog ensure drills pass;
742 12. K tests and repository searches prove no community scope/rule/event/page
743 or snapshot-keyed analytics consumer remains.
744
pyproject.toml:44:# connector extras are added with their adapters, rather than speculatively.
pyproject.toml:105: "pytest>=8.3",
pyproject.toml:106: "pytest-asyncio>=0.25",
pyproject.toml:107: "pytest-cov>=6.0",
pyproject.toml:132:# class — never ad hoc. Tests set env via pytest's monkeypatch.setenv, which is not banned.
pyproject.toml:168:[tool.pytest.ini_options]
src/tests/conftest.py:6:environment for the whole pytest run — before any test executes, because
src/tests/conftest.py:22:import pytest
src/tests/conftest.py:35:@pytest.fixture(autouse=True)
src/tests/conftest.py:36:def isolate_optional_provider_pins(monkeypatch: pytest.MonkeyPatch) -> None:
src/tests/conftest.py:59:@pytest.fixture(autouse=True)
src/tests/conftest.py:61: monkeypatch: pytest.MonkeyPatch, tmp_path_factory: pytest.TempPathFactory
.github/workflows/release.yml:23: runs-on: ubuntu-latest
.github/workflows/release.yml:72: runs-on: ubuntu-latest
.github/workflows/release.yml:75: # budgets 45 minutes for workers and 50 for surfaces. At 30 minutes this job
.github/workflows/release.yml:76: # was killed mid-run (reported as "cancelled", with pytest terminated as an
.github/workflows/release.yml:81: REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
.github/workflows/release.yml:98: run: .github/ci/start-postgres.sh
.github/workflows/release.yml:123: run: uv run pytest src/tests -q
.github/workflows/release.yml:174: runs-on: ubuntu-latest
.github/workflows/release.yml:234: runs-on: ubuntu-latest
.github/workflows/release.yml:283: # CI builds the arm64 image natively on every Dockerfile or lockfile change.
.github/workflows/release.yml:325: publish-postgres-ghcr:
.github/workflows/release.yml:328: runs-on: ubuntu-latest
.github/workflows/release.yml:354: images: ghcr.io/writeitai/remember-stack-postgres
.github/workflows/release.yml:361: IMAGE: ghcr.io/writeitai/remember-stack-postgres:19rc1-${{ needs.prepare.outputs.version }}
.github/workflows/release.yml:377: file: Dockerfile.postgres
.github/workflows/release.yml:401: -f .github/ci/postgres-evidence.jq
.github/workflows/release.yml:402: > release-evidence/postgres-image-digests.json
.github/workflows/release.yml:406: ' release-evidence/postgres-image-digests.json
.github/workflows/release.yml:408: jq --arg revision "${{ needs.prepare.outputs.source_sha }}" --arg tag "${{ needs.prepare.outputs.tag }}" '. + {source_revision:$revision,tag:$tag}' release-evidence/postgres-image-digests.json > "$tmp"
.github/workflows/release.yml:409: mv "$tmp" release-evidence/postgres-image-digests.json
.github/workflows/release.yml:414: name: postgres-image-evidence
.github/workflows/release.yml:415: path: release-evidence/postgres-image-digests.json
.github/workflows/release.yml:420: needs: [prepare, publish-pypi, publish-ghcr, publish-postgres-ghcr]
.github/workflows/release.yml:421: runs-on: ubuntu-latest
.github/workflows/release.yml:438: name: postgres-image-evidence
.github/workflows/release.yml:479: release-evidence/postgres-image-digests.json
.github/workflows/release.yml:496: runs-on: ubuntu-latest
.github/workflows/release.yml:516: --pattern postgres-image-digests.json
.github/workflows/release.yml:518: test "$(jq -r .tag release-evidence/postgres-image-digests.json)" = '${{ needs.prepare.outputs.tag }}'
.github/workflows/release.yml:520: test "$(jq -r .source_revision release-evidence/postgres-image-digests.json)" = '${{ needs.prepare.outputs.source_sha }}'
.github/workflows/release.yml:526: postgres_digest="$(jq -r .manifest_digest release-evidence/postgres-image-digests.json)"
.github/workflows/release.yml:532: -F "client_payload[postgres_digest]=${postgres_digest}"
.github/workflows/ci.yml:22: runs-on: ubuntu-latest
.github/workflows/ci.yml:27: workers: ${{ steps.filter.outputs.workers }}
.github/workflows/ci.yml:28: surfaces: ${{ steps.filter.outputs.surfaces }}
.github/workflows/ci.yml:29: adapters: ${{ steps.filter.outputs.adapters }}
.github/workflows/ci.yml:42: runs-on: ubuntu-latest
.github/workflows/ci.yml:69: runs-on: ubuntu-latest
.github/workflows/ci.yml:95: uv run pytest "${paths[@]}" -q --tb=short
.github/workflows/ci.yml:99: runs-on: ubuntu-latest
.github/workflows/ci.yml:104: REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
.github/workflows/ci.yml:108: run: .github/ci/start-postgres.sh
.github/workflows/ci.yml:120: uv run pytest "${paths[@]}" -v --tb=short
.github/workflows/ci.yml:122: integration-workers:
.github/workflows/ci.yml:123: name: Integration (workers)
.github/workflows/ci.yml:127: || needs.changes.outputs.workers == 'true'
.github/workflows/ci.yml:130: runs-on: ubuntu-latest
.github/workflows/ci.yml:135: REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
.github/workflows/ci.yml:139: run: .github/ci/start-postgres.sh
.github/workflows/ci.yml:149: run: uv run pytest src/tests/workers src/tests/spine -q --tb=short
.github/workflows/ci.yml:151: integration-surfaces:
.github/workflows/ci.yml:152: name: Integration (surfaces)
.github/workflows/ci.yml:156: || needs.changes.outputs.surfaces == 'true'
.github/workflows/ci.yml:159: runs-on: ubuntu-latest
.github/workflows/ci.yml:164: REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
.github/workflows/ci.yml:168: run: .github/ci/start-postgres.sh
.github/workflows/ci.yml:178: run: uv run pytest src/tests/surfaces src/tests/eval -q --tb=short
.github/workflows/ci.yml:180: integration-adapters:
.github/workflows/ci.yml:181: name: Integration (adapters)
.github/workflows/ci.yml:185: || needs.changes.outputs.adapters == 'true'
.github/workflows/ci.yml:188: runs-on: ubuntu-latest
.github/workflows/ci.yml:193: REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
.github/workflows/ci.yml:197: run: .github/ci/start-postgres.sh
.github/workflows/ci.yml:208: uv run pytest src/tests/adapters src/tests/profiles src/tests/spikes -q --tb=short
.github/workflows/ci.yml:217: runs-on: ubuntu-latest
.github/workflows/ci.yml:305: from rememberstack.adapters.selfhost import MinIOObjectStore, MinIOSettings
.github/workflows/ci.yml:363: observed="$(docker compose --env-file .env exec -T postgres
.github/workflows/ci.yml:372: test "$(docker compose --env-file .env exec -T postgres
.github/workflows/ci.yml:422: test "$(docker compose --env-file .env exec -T postgres
.github/workflows/ci.yml:425: test "$(docker compose --env-file .env exec -T postgres
.github/workflows/ci.yml:462: test "$(docker compose "${compose_args[@]}" exec -T postgres
.github/workflows/ci.yml:469: test "$(docker compose --env-file .env exec -T postgres
.github/workflows/ci.yml:472: test "$(docker compose --env-file .env exec -T postgres
.github/workflows/ci.yml:501: runs-on: ubuntu-24.04-arm
.github/workflows/ci.yml:521: runs-on: ubuntu-latest
exec
/bin/zsh -lc 'PYTHONDONTWRITEBYTECODE=1 uv run --frozen pytest -q -p no:cacheprovider src/tests/surfaces/test_d143_openapi_additive.py src/tests/surfaces/test_openapi_export.py' in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
exec
/bin/zsh -lc "git show fbcd489:openapi.json | python3 -c 'import sys,json,hashlib; d=json.load(sys.stdin); print("pre-D143 info:", json.dumps(d["info"], sort_keys=True)); print("canonical SHA-256:", hashlib.sha256(json.dumps(d, sort_keys=True, separators=(",", ":")).encode()).hexdigest())'; sed -n '1,100p' src/tests/conftest.py; sed -n '150,185p' pyproject.toml; sed -n '1,140p' .github/ci/start-postgres.sh; sed -n '60,215p' .github/workflows/ci.yml; git diff 0de5d15..e940e4d -- Dockerfile.postgres .github/ci/start-postgres.sh" in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 0ms:
pre-D143 info: {"title": "RememberStack query API", "version": "0.17.2"}
canonical SHA-256: c2bce70429554311e8564e59b2429e371798da1712e3be6aa3bb1c44eff5578f
"""Test-suite-wide isolation from the developer's local .env.
Importing markitdown pulls in magika, whose __init__ calls
dotenv.load_dotenv(dotenv.find_dotenv()) at import time. That walks up from the
working directory and loads this repository's .env into the process
environment for the whole pytest run — before any test executes, because
collection imports every test module.
Any BaseSettings constructed afterwards therefore inherits the developer's
local bindings. That made the suite pass in CI (no .env present) while failing
locally, which is the worst failure mode available: green where nobody is
looking and red where the work happens.
The optional pins below are the ones that change provider request payloads
rather than merely supplying a credential, so a leaked value silently alters what
a test asserts. Tests needing them set them explicitly with
monkeypatch.setenv, which runs after this fixture and therefore still wins.
"""
from future import annotations
import pytest
#: Optional pins that alter provider request payloads when present.
_LEAKY_OPTIONAL_PINS = (
"REMEMBERSTACK_OPENROUTER_EMBEDDING_PROVIDER",
"REMEMBERSTACK_OPENROUTER_EMBEDDING_PROVIDER_ORDER",
"REMEMBERSTACK_OPENROUTER_MAX_COMPLETION_TOKENS",
"REMEMBERSTACK_OPENROUTER_REASONING_EFFORT",
"REMEMBERSTACK_OPENROUTER_REASONING_EFFORT_MAP",
"REMEMBERSTACK_OPENROUTER_INVALID_COMPLETION_CAPTURE_DIR",
)
@pytest.fixture(autouse=True)
def isolate_optional_provider_pins(monkeypatch: pytest.MonkeyPatch) -> None:
"""Remove ambient optional provider pins for the duration of each test.
Credentials and connection settings are deliberately left alone: the
Postgres-gated tests rely on them being present.
"""
for name in _LEAKY_OPTIONAL_PINS:
monkeypatch.delenv(name, raising=False)
#: The client connection variables (D136 §8.2). A developer's own key, engine
#: URL or project must never leak into a test, and no test may read or write the
#: developer's real credential file.
_CLIENT_CONNECTION_VARIABLES = (
"REMEMBER_API_KEY",
"REMEMBER_API_URL",
"REMEMBER_PROJECT",
"REMEMBER_ISSUER",
"REMEMBER_MCP_URL",
"XDG_CONFIG_HOME",
)
@pytest.fixture(autouse=True)
def isolate_client_connection(
monkeypatch: pytest.MonkeyPatch, tmp_path_factory: pytest.TempPathFactory
) -> None:
"""Give every test an empty client environment and its own config directory."""
from remember.connection import clear_host_cache
from remember.issuer import clear_metadata_cache
for name in _CLIENT_CONNECTION_VARIABLES:
monkeypatch.delenv(name, raising=False)
monkeypatch.setenv(
"REMEMBER_CONFIG_DIR", str(tmp_path_factory.mktemp("remember-config"))
)
clear_host_cache()
clear_metadata_cache()
the noisy reportUnknown* family is off) with no checks disabled.
Relax-with-receipts rule: any future report*=false here MUST carry a one-line reason
comment and come from observed friction on real code, never pre-emptively. Loosening
later is a one-line change; tightening later means fixing accumulated violations.
[tool.pyright]
pythonVersion = "3.12"
typeCheckingMode = "standard"
include = ["src", "benchmarks"]
extraPaths = ["src", ".", "scripts"]
exclude = ["/.venv", "/virtualenvs", "tmp/"]
Test code has different ergonomics (poking internals, monkeypatching) — relaxed
per-directory, so src/rememberstack stays at full standard.
[[tool.pyright.executionEnvironments]]
root = "src/tests"
reportPrivateUsage = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
pythonpath = ["src", "."]
testpaths = ["src/tests"]
[tool.coverage.run]
source = ["src/rememberstack", "src/remember"]
branch = true
relative_files = true # required by the coverage-comment action
[tool.coverage.report]
show_missing = true
precision = 1
#!/usr/bin/env bash
set -euo pipefail
container_name="rememberstack-postgres-ci"
POSTGRES_IMAGE runs a published image instead of building Dockerfile.postgres
(a released engine needs the PostgreSQL it was released with).
if [ -n "${POSTGRES_IMAGE:-}" ]; then
image_name="${POSTGRES_IMAGE}"
docker pull "${image_name}"
else
image_name="rememberstack-postgres:ci"
docker build --file Dockerfile.postgres --tag "${image_name}" .
fi
docker rm --force "${container_name}" >/dev/null 2>&1 || true
docker run --detach --name "${container_name}"
--env POSTGRES_USER=rememberstack
--env POSTGRES_PASSWORD=rememberstack_test
--env POSTGRES_DB=rememberstack_test
--publish 5432:5432
"${image_name}"
postgres
-c shared_preload_libraries=pg_textsearch,pg_partman_bgw
-c pg_partman_bgw.dbname=rememberstack_test
-c pg_partman_bgw.role=rememberstack
for attempt in $(seq 1 60); do
if docker exec "${container_name}"
psql --username rememberstack --dbname rememberstack_test
--tuples-only --command 'SELECT 1' >/dev/null 2>&1; then
exit 0
fi
sleep 1
done
docker logs "${container_name}"
exit 1
- name: Ruff lint
run: uv run ruff check src/ benchmarks/
- name: Ruff format check
run: uv run ruff format --check src/ benchmarks/
- name: Pyright type check
run: uv run pyright src/ benchmarks/ --pythonversion 3.13
unit:
name: Unit
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "0.12.6"
enable-cache: true
- name: Set up Python 3.13
run: uv python install 3.13
- name: Install dependencies (locked)
run: uv sync --locked --python 3.13
- name: Install LibreOffice (D138 legacy office conversions)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends
libreoffice-writer-nogui libreoffice-impress-nogui libreoffice-calc-nogui
- name: Unit pack (no Postgres service)
run: |
mapfile -t paths < .github/ci/unit-paths.txt
if [ "${#paths[@]}" -eq 0 ]; then
echo "unit-paths.txt is empty" >&2
exit 1
fi
uv run pytest "${paths[@]}" -q --tb=short
contract-smoke:
name: Contract smoke
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
env:
REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
steps:
- uses: actions/checkout@v4
- name: Start PostgreSQL 19 with required extensions
run: .github/ci/start-postgres.sh
- uses: astral-sh/setup-uv@v5
with:
version: "0.12.6"
enable-cache: true
- name: Set up Python 3.13
run: uv python install 3.13
- name: Install dependencies (locked)
run: uv sync --locked --python 3.13
- name: Contract smoke pack
run: |
mapfile -t paths < .github/ci/contract-smoke-paths.txt
uv run pytest "${paths[@]}" -v --tb=short
integration-workers:
name: Integration (workers)
needs: changes
if: >-
github.event_name == 'push'
|| needs.changes.outputs.workers == 'true'
|| needs.changes.outputs.shared_core == 'true'
|| needs.changes.outputs.ci_control == 'true'
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
env:
REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
steps:
- uses: actions/checkout@v4
- name: Start PostgreSQL 19 with required extensions
run: .github/ci/start-postgres.sh
- uses: astral-sh/setup-uv@v5
with:
version: "0.12.6"
enable-cache: true
- name: Set up Python 3.13
run: uv python install 3.13
- name: Install dependencies (locked)
run: uv sync --locked --python 3.13
- name: Workers + spine integration
run: uv run pytest src/tests/workers src/tests/spine -q --tb=short
integration-surfaces:
name: Integration (surfaces)
needs: changes
if: >-
github.event_name == 'push'
|| needs.changes.outputs.surfaces == 'true'
|| needs.changes.outputs.shared_core == 'true'
|| needs.changes.outputs.ci_control == 'true'
runs-on: ubuntu-latest
timeout-minutes: 50
permissions:
contents: read
env:
REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
steps:
- uses: actions/checkout@v4
- name: Start PostgreSQL 19 with required extensions
run: .github/ci/start-postgres.sh
- uses: astral-sh/setup-uv@v5
with:
version: "0.12.6"
enable-cache: true
- name: Set up Python 3.13
run: uv python install 3.13
- name: Install dependencies (locked)
run: uv sync --locked --python 3.13
- name: Surfaces + eval integration
run: uv run pytest src/tests/surfaces src/tests/eval -q --tb=short
integration-adapters:
name: Integration (adapters)
needs: changes
if: >-
github.event_name == 'push'
|| needs.changes.outputs.adapters == 'true'
|| needs.changes.outputs.shared_core == 'true'
|| needs.changes.outputs.ci_control == 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
env:
REMEMBERSTACK_DATABASE_URL: postgresql+psycopg://rememberstack:rememberstack_test@localhost:5432/rememberstack_test
steps:
- uses: actions/checkout@v4
- name: Start PostgreSQL 19 with required extensions
run: .github/ci/start-postgres.sh
- uses: astral-sh/setup-uv@v5
with:
version: "0.12.6"
enable-cache: true
- name: Set up Python 3.13
run: uv python install 3.13
- name: Install dependencies (locked)
run: uv sync --locked --python 3.13
- name: Adapters + profiles + spikes integration
run: |
uv run pytest src/tests/adapters src/tests/profiles src/tests/spikes -q --tb=short
compose-quickstart:
name: Compose quickstart
needs: changes
if: >-
github.event_name == 'push'
|| needs.changes.outputs.compose == 'true'
exec
/bin/zsh -lc 'gh run view 42303684449 --repo writeitai/remember-stack --json headSha,headBranch,event,status,conclusion,url,jobs' in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 1136ms:
{"conclusion":"cancelled","event":"push","headBranch":"main","headSha":"0de5d1506917b7038d8a8efaeceedc68e35144f3","jobs":[{"completedAt":"2026-11-06T22:19:22Z","conclusion":"success","databaseId":128187568419,"name":"Quality","startedAt":"2026-11-06T22:18:31Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:34Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:32Z","status":"completed"},{"completedAt":"2026-11-06T22:18:36Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:34Z","status":"completed"},{"completedAt":"2026-11-06T22:18:38Z","conclusion":"success","name":"Run astral-sh/setup-uv@v5","number":3,"startedAt":"2026-11-06T22:18:36Z","status":"completed"},{"completedAt":"2026-11-06T22:18:39Z","conclusion":"success","name":"Set up Python 3.13","number":4,"startedAt":"2026-11-06T22:18:38Z","status":"completed"},{"completedAt":"2026-11-06T22:18:44Z","conclusion":"success","name":"Install dependencies (locked)","number":5,"startedAt":"2026-11-06T22:18:39Z","status":"completed"},{"completedAt":"2026-11-06T22:18:44Z","conclusion":"success","name":"Test inventory drift check","number":6,"startedAt":"2026-11-06T22:18:44Z","status":"completed"},{"completedAt":"2026-11-06T22:18:44Z","conclusion":"success","name":"Architecture dependency check","number":7,"startedAt":"2026-11-06T22:18:44Z","status":"completed"},{"completedAt":"2026-11-06T22:18:45Z","conclusion":"success","name":"Ruff lint","number":8,"startedAt":"2026-11-06T22:18:44Z","status":"completed"},{"completedAt":"2026-11-06T22:18:45Z","conclusion":"success","name":"Ruff format check","number":9,"startedAt":"2026-11-06T22:18:45Z","status":"completed"},{"completedAt":"2026-11-06T22:19:19Z","conclusion":"success","name":"Pyright type check","number":10,"startedAt":"2026-11-06T22:18:45Z","status":"completed"},{"completedAt":"2026-11-06T22:19:19Z","conclusion":"success","name":"Post Run astral-sh/setup-uv@v5","number":19,"startedAt":"2026-11-06T22:19:19Z","status":"completed"},{"completedAt":"2026-11-06T22:19:20Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":20,"startedAt":"2026-11-06T22:19:19Z","status":"completed"},{"completedAt":"2026-11-06T22:19:20Z","conclusion":"success","name":"Complete job","number":21,"startedAt":"2026-11-06T22:19:20Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187568419"},{"completedAt":"2026-11-06T22:22:49Z","conclusion":"success","databaseId":128187568435,"name":"Contract smoke","startedAt":"2026-11-06T22:18:32Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:34Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:33Z","status":"completed"},{"completedAt":"2026-11-06T22:18:36Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:34Z","status":"completed"},{"completedAt":"2026-11-06T22:21:19Z","conclusion":"success","name":"Start PostgreSQL 19 with required extensions","number":3,"startedAt":"2026-11-06T22:18:36Z","status":"completed"},{"completedAt":"2026-11-06T22:21:22Z","conclusion":"success","name":"Run astral-sh/setup-uv@v5","number":4,"startedAt":"2026-11-06T22:21:19Z","status":"completed"},{"completedAt":"2026-11-06T22:21:22Z","conclusion":"success","name":"Set up Python 3.13","number":5,"startedAt":"2026-11-06T22:21:22Z","status":"completed"},{"completedAt":"2026-11-06T22:21:27Z","conclusion":"success","name":"Install dependencies (locked)","number":6,"startedAt":"2026-11-06T22:21:22Z","status":"completed"},{"completedAt":"2026-11-06T22:22:45Z","conclusion":"success","name":"Contract smoke pack","number":7,"startedAt":"2026-11-06T22:21:27Z","status":"completed"},{"completedAt":"2026-11-06T22:22:45Z","conclusion":"success","name":"Post Run astral-sh/setup-uv@v5","number":13,"startedAt":"2026-11-06T22:22:45Z","status":"completed"},{"completedAt":"2026-11-06T22:22:46Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":14,"startedAt":"2026-11-06T22:22:45Z","status":"completed"},{"completedAt":"2026-11-06T22:22:46Z","conclusion":"success","name":"Complete job","number":15,"startedAt":"2026-11-06T22:22:46Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187568435"},{"completedAt":"2026-11-06T22:33:47Z","conclusion":"cancelled","databaseId":128187568474,"name":"Unit","startedAt":"2026-11-06T22:18:31Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:33Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:32Z","status":"completed"},{"completedAt":"2026-11-06T22:18:35Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:33Z","status":"completed"},{"completedAt":"2026-11-06T22:18:38Z","conclusion":"success","name":"Run astral-sh/setup-uv@v5","number":3,"startedAt":"2026-11-06T22:18:35Z","status":"completed"},{"completedAt":"2026-11-06T22:18:39Z","conclusion":"success","name":"Set up Python 3.13","number":4,"startedAt":"2026-11-06T22:18:38Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Install dependencies (locked)","number":5,"startedAt":"2026-11-06T22:18:39Z","status":"completed"},{"completedAt":"2026-11-06T22:33:44Z","conclusion":"cancelled","name":"Install LibreOffice (D138 legacy office conversions)","number":6,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:33:44Z","conclusion":"skipped","name":"Unit pack (no Postgres service)","number":7,"startedAt":"2026-11-06T22:33:44Z","status":"completed"},{"completedAt":"2026-11-06T22:33:44Z","conclusion":"skipped","name":"Post Run astral-sh/setup-uv@v5","number":13,"startedAt":"2026-11-06T22:33:44Z","status":"completed"},{"completedAt":"2026-11-06T22:33:44Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":14,"startedAt":"2026-11-06T22:33:44Z","status":"completed"},{"completedAt":"2026-11-06T22:33:44Z","conclusion":"success","name":"Complete job","number":15,"startedAt":"2026-11-06T22:33:44Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187568474"},{"completedAt":"2026-11-06T22:18:38Z","conclusion":"success","databaseId":128187569112,"name":"Path filters","startedAt":"2026-11-06T22:18:31Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:33Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:32Z","status":"completed"},{"completedAt":"2026-11-06T22:18:35Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:33Z","status":"completed"},{"completedAt":"2026-11-06T22:18:35Z","conclusion":"success","name":"Run dorny/paths-filter@v3","number":3,"startedAt":"2026-11-06T22:18:35Z","status":"completed"},{"completedAt":"2026-11-06T22:18:36Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":6,"startedAt":"2026-11-06T22:18:35Z","status":"completed"},{"completedAt":"2026-11-06T22:18:36Z","conclusion":"success","name":"Complete job","number":7,"startedAt":"2026-11-06T22:18:36Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187569112"},{"completedAt":"2026-11-06T22:23:14Z","conclusion":"success","databaseId":128187631149,"name":"Compose quickstart","startedAt":"2026-11-06T22:18:40Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:41Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:41Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:41Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Prepare .env as the quickstart documents","number":3,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Validate Compose model","number":4,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Prove every .env.example variable reaches the engine","number":5,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:21:59Z","conclusion":"success","name":"Start fresh self-host deployment","number":6,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:22:04Z","conclusion":"success","name":"Prove object-store round trip and conditional create","number":7,"startedAt":"2026-11-06T22:21:59Z","status":"completed"},{"completedAt":"2026-11-06T22:22:16Z","conclusion":"success","name":"Prove the zero-cost full pipeline","number":8,"startedAt":"2026-11-06T22:22:04Z","status":"completed"},{"completedAt":"2026-11-06T22:22:33Z","conclusion":"success","name":"Stage an upgrade from the prior schema","number":9,"startedAt":"2026-11-06T22:22:16Z","status":"completed"},{"completedAt":"2026-11-06T22:22:51Z","conclusion":"success","name":"Run migrations before application processes restart","number":10,"startedAt":"2026-11-06T22:22:33Z","status":"completed"},{"completedAt":"2026-11-06T22:22:51Z","conclusion":"skipped","name":"Show service logs after failure","number":11,"startedAt":"2026-11-06T22:22:51Z","status":"completed"},{"completedAt":"2026-11-06T22:23:12Z","conclusion":"success","name":"Remove quickstart deployment","number":12,"startedAt":"2026-11-06T22:22:51Z","status":"completed"},{"completedAt":"2026-11-06T22:23:12Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":24,"startedAt":"2026-11-06T22:23:12Z","status":"completed"},{"completedAt":"2026-11-06T22:23:12Z","conclusion":"success","name":"Complete job","number":25,"startedAt":"2026-11-06T22:23:12Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187631149"},{"completedAt":"2026-11-06T22:22:12Z","conclusion":"success","databaseId":128187631161,"name":"Integration (adapters)","startedAt":"2026-11-06T22:18:40Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:42Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:40Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:42Z","status":"completed"},{"completedAt":"2026-11-06T22:20:59Z","conclusion":"success","name":"Start PostgreSQL 19 with required extensions","number":3,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:21:01Z","conclusion":"success","name":"Run astral-sh/setup-uv@v5","number":4,"startedAt":"2026-11-06T22:20:59Z","status":"completed"},{"completedAt":"2026-11-06T22:21:02Z","conclusion":"success","name":"Set up Python 3.13","number":5,"startedAt":"2026-11-06T22:21:01Z","status":"completed"},{"completedAt":"2026-11-06T22:21:05Z","conclusion":"success","name":"Install dependencies (locked)","number":6,"startedAt":"2026-11-06T22:21:02Z","status":"completed"},{"completedAt":"2026-11-06T22:22:09Z","conclusion":"success","name":"Adapters + profiles + spikes integration","number":7,"startedAt":"2026-11-06T22:21:05Z","status":"completed"},{"completedAt":"2026-11-06T22:22:09Z","conclusion":"success","name":"Post Run astral-sh/setup-uv@v5","number":13,"startedAt":"2026-11-06T22:22:09Z","status":"completed"},{"completedAt":"2026-11-06T22:22:09Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":14,"startedAt":"2026-11-06T22:22:09Z","status":"completed"},{"completedAt":"2026-11-06T22:22:09Z","conclusion":"success","name":"Complete job","number":15,"startedAt":"2026-11-06T22:22:09Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187631161"},{"completedAt":"2026-11-06T22:24:29Z","conclusion":"success","databaseId":128187631214,"name":"Integration (surfaces)","startedAt":"2026-11-06T22:18:39Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:41Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:40Z","status":"completed"},{"completedAt":"2026-11-06T22:18:42Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:41Z","status":"completed"},{"completedAt":"2026-11-06T22:20:58Z","conclusion":"success","name":"Start PostgreSQL 19 with required extensions","number":3,"startedAt":"2026-11-06T22:18:42Z","status":"completed"},{"completedAt":"2026-11-06T22:20:59Z","conclusion":"success","name":"Run astral-sh/setup-uv@v5","number":4,"startedAt":"2026-11-06T22:20:58Z","status":"completed"},{"completedAt":"2026-11-06T22:21:00Z","conclusion":"success","name":"Set up Python 3.13","number":5,"startedAt":"2026-11-06T22:20:59Z","status":"completed"},{"completedAt":"2026-11-06T22:21:03Z","conclusion":"success","name":"Install dependencies (locked)","number":6,"startedAt":"2026-11-06T22:21:00Z","status":"completed"},{"completedAt":"2026-11-06T22:24:27Z","conclusion":"success","name":"Surfaces + eval integration","number":7,"startedAt":"2026-11-06T22:21:03Z","status":"completed"},{"completedAt":"2026-11-06T22:24:27Z","conclusion":"success","name":"Post Run astral-sh/setup-uv@v5","number":13,"startedAt":"2026-11-06T22:24:27Z","status":"completed"},{"completedAt":"2026-11-06T22:24:27Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":14,"startedAt":"2026-11-06T22:24:27Z","status":"completed"},{"completedAt":"2026-11-06T22:24:27Z","conclusion":"success","name":"Complete job","number":15,"startedAt":"2026-11-06T22:24:27Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187631214"},{"completedAt":"2026-11-06T22:36:22Z","conclusion":"success","databaseId":128187631269,"name":"Integration (workers)","startedAt":"2026-11-06T22:18:40Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:42Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:41Z","status":"completed"},{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:42Z","status":"completed"},{"completedAt":"2026-11-06T22:21:25Z","conclusion":"success","name":"Start PostgreSQL 19 with required extensions","number":3,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:21:28Z","conclusion":"success","name":"Run astral-sh/setup-uv@v5","number":4,"startedAt":"2026-11-06T22:21:25Z","status":"completed"},{"completedAt":"2026-11-06T22:21:29Z","conclusion":"success","name":"Set up Python 3.13","number":5,"startedAt":"2026-11-06T22:21:28Z","status":"completed"},{"completedAt":"2026-11-06T22:21:33Z","conclusion":"success","name":"Install dependencies (locked)","number":6,"startedAt":"2026-11-06T22:21:29Z","status":"completed"},{"completedAt":"2026-11-06T22:36:19Z","conclusion":"success","name":"Workers + spine integration","number":7,"startedAt":"2026-11-06T22:21:33Z","status":"completed"},{"completedAt":"2026-11-06T22:36:19Z","conclusion":"success","name":"Post Run astral-sh/setup-uv@v5","number":13,"startedAt":"2026-11-06T22:36:19Z","status":"completed"},{"completedAt":"2026-11-06T22:36:19Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":14,"startedAt":"2026-11-06T22:36:19Z","status":"completed"},{"completedAt":"2026-11-06T22:36:19Z","conclusion":"success","name":"Complete job","number":15,"startedAt":"2026-11-06T22:36:19Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187631269"},{"completedAt":"2026-11-06T22:19:25Z","conclusion":"success","databaseId":128187631331,"name":"Engine image (linux/arm64)","startedAt":"2026-11-06T22:18:42Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:18:43Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:18:44Z","conclusion":"success","name":"Run actions/checkout@v4","number":2,"startedAt":"2026-11-06T22:18:43Z","status":"completed"},{"completedAt":"2026-11-06T22:19:18Z","conclusion":"success","name":"Build the engine image","number":3,"startedAt":"2026-11-06T22:18:44Z","status":"completed"},{"completedAt":"2026-11-06T22:19:23Z","conclusion":"success","name":"The image is arm64 and its native dependencies load","number":4,"startedAt":"2026-11-06T22:19:18Z","status":"completed"},{"completedAt":"2026-11-06T22:19:23Z","conclusion":"success","name":"Post Run actions/checkout@v4","number":8,"startedAt":"2026-11-06T22:19:23Z","status":"completed"},{"completedAt":"2026-11-06T22:19:23Z","conclusion":"success","name":"Complete job","number":9,"startedAt":"2026-11-06T22:19:23Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128187631331"},{"completedAt":"2026-11-06T22:33:54Z","conclusion":"failure","databaseId":128194186590,"name":"PR gate","startedAt":"2026-11-06T22:33:50Z","status":"completed","steps":[{"completedAt":"2026-11-06T22:33:51Z","conclusion":"success","name":"Set up job","number":1,"startedAt":"2026-11-06T22:33:51Z","status":"completed"},{"completedAt":"2026-11-06T22:33:51Z","conclusion":"failure","name":"Require hard lanes (incl. path selector)","number":2,"startedAt":"2026-11-06T22:33:51Z","status":"completed"},{"completedAt":"2026-11-06T22:33:51Z","conclusion":"success","name":"Complete job","number":3,"startedAt":"2026-11-06T22:33:51Z","status":"completed"}],"url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449/job/128194186590"}],"status":"completed","url":"https://github.com/writeitai/remember-stack/actions/runs/42303684449"}
succeeded in 3576ms:
......... [100%]
=============================== warnings summary ===============================
src/tests/surfaces/test_openapi_export.py::test_documenting_the_credential_did_not_start_enforcing_it
/Users/jpuc/code/moje/remember-stack-release-0180-review-20261106/.venv/lib/python3.12/site-packages/fastapi/testclient.py:1: StarletteDeprecationWarning: Using httpx with starlette.testclient is deprecated; install httpx2 instead.
from starlette.testclient import TestClient as TestClient # noqa
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
9 passed, 1 warning in 3.21s
exec
/bin/zsh -lc "rg --files -g AGENTS.md -g CLAUDE.md docker src .agents; sed -n '320,418p' .github/workflows/release.yml; git status --short" in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 0ms:
name: application-image-evidence
path: release-evidence/application-image-digest.json
if-no-files-found: error
publish-postgres-ghcr:
name: Publish multi-architecture PostgreSQL foundation
needs: [prepare, verify]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@11d5960 # v4.2.2
with:
ref: ${{ needs.prepare.outputs.source_sha }}
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Log in to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Derive the immutable foundation tag
id: metadata
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
with:
images: ghcr.io/writeitai/remember-stack-postgres
flavor: latest=false
tags: type=raw,value=19rc1-${{ needs.prepare.outputs.version }}
- name: Preserve an existing immutable foundation tag on recovery
id: existing
env:
IMAGE: ghcr.io/writeitai/remember-stack-postgres:19rc1-${{ needs.prepare.outputs.version }}
run: |
if docker manifest inspect "$IMAGE" >/dev/null 2>&1; then
docker pull --platform linux/amd64 "$IMAGE" >/dev/null
test "$(docker image inspect --format '{{ index .Config.Labels "org.opencontainers.image.revision" }}' "$IMAGE")" = "${{ needs.prepare.outputs.source_sha }}"
echo 'present=true' >> "$GITHUB_OUTPUT"
else
echo 'present=false' >> "$GITHUB_OUTPUT"
fi
- name: Build and publish both supported architectures
id: build
if: steps.existing.outputs.present != 'true'
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
with:
context: .
file: Dockerfile.postgres
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: |
${{ steps.metadata.outputs.labels }}
org.opencontainers.image.revision=${{ needs.prepare.outputs.source_sha }}
annotations: org.opencontainers.image.revision=${{ needs.prepare.outputs.source_sha }}
- name: Record manifest and per-architecture digests
env:
POSTGRES_IMAGE_TAG: ${{ steps.metadata.outputs.tags }}
POSTGRES_MANIFEST_DIGEST: ${{ steps.build.outputs.digest }}
run: |
mkdir -p release-evidence
image_coordinate="${POSTGRES_IMAGE_TAG}"
if [ -z "${POSTGRES_MANIFEST_DIGEST}" ]; then
POSTGRES_MANIFEST_DIGEST="$(docker buildx imagetools inspect "${POSTGRES_IMAGE_TAG}" | awk '/^Digest:/ {print $2; exit}')"
fi
test -n "${POSTGRES_MANIFEST_DIGEST}"
image_coordinate="${image_coordinate}@${POSTGRES_MANIFEST_DIGEST}"
docker buildx imagetools inspect --raw "${image_coordinate}" \
| jq --arg image "${POSTGRES_IMAGE_TAG}" \
--arg manifest "${POSTGRES_MANIFEST_DIGEST}" \
-f .github/ci/postgres-evidence.jq \
> release-evidence/postgres-image-digests.json
jq -e '
[.platforms[] | select(.os == "linux") | .architecture]
| sort == ["amd64", "arm64"]
' release-evidence/postgres-image-digests.json
tmp="$(mktemp)"
jq --arg revision "${{ needs.prepare.outputs.source_sha }}" --arg tag "${{ needs.prepare.outputs.tag }}" '. + {source_revision:$revision,tag:$tag}' release-evidence/postgres-image-digests.json > "$tmp"
mv "$tmp" release-evidence/postgres-image-digests.json
- name: Upload immutable PostgreSQL image evidence
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.1
with:
name: postgres-image-evidence
path: release-evidence/postgres-image-digests.json
if-no-files-found: error
github-release:
The nine targeted tests pass, and the historical export confirms both the pinned hash and version 0.17.2. The cited CI run also confirms that the three native amd64 integration suites passed against the unchanged Dockerfile. I’m checking that changes outside info.version still fail the hash comparison.
exec
/bin/zsh -lc ".venv/bin/python -B - <<'PY'
import copy
import json
import runpy
checks = runpy.run_path('src/tests/surfaces/test_d143_openapi_additive.py')
strip = checks['without_d143_additions']
digest = checks['canonical_sha256']
pinned = checks['_PRE_D143_SHA256']
with open('openapi.json') as source:
document = json.load(source)
original = copy.deepcopy(document)
assert digest(strip(document)) == pinned
changed = copy.deepcopy(document)
changed['info']['version'] = '99.0.0'
assert digest(strip(changed)) == pinned
print('Version-only change: accepted')
mutations = []
changed = copy.deepcopy(document)
changed['info']['title'] = 'Changed title'
mutations.append(('info.title change', changed))
changed = copy.deepcopy(document)
del changed['paths']['/ingest']
mutations.append(('removed pre-D143 route', changed))
changed = copy.deepcopy(document)
del changed['components']['schemas']['DocumentSummary']
mutations.append(('removed pre-D143 schema', changed))
changed = copy.deepcopy(document)
del changed['paths']['/documents']['get']['responses']['200']
mutations.append(('removed response', changed))
for label, changed in mutations:
assert digest(strip(changed)) "'!= pinned, label
print(f'"'{label}: rejected')
assert document == original
print('Original document remains unchanged')
PY" in /Users/jpuc/code/moje/remember-stack-release-0180-review-20261106
succeeded in 0ms:
Version-only change: accepted
info.title change: rejected
removed pre-D143 route: rejected
removed pre-D143 schema: rejected
removed response: rejected
Original document remains unchanged
VERDICT: APPROVE
No findings in e940e4d.
The release record clearly distinguishes local image IDs, Rosetta execution, and native amd64 CI coverage. The OpenAPI fix normalizes only info.version; changes to other metadata, routes, schemas, and responses still fail the hash check.
Validation: all 9 targeted tests passed; in-memory mutation checks passed. No files changed or Docker started.
Disposition: no findings to address.
Summary
Release PR for remember 0.18.0, following RELEASING.md "Cutting a release". It contains relaunch plan phase 2, which is already on main:
worker --class convert|llm.%escaping.The release also includes everything else merged since v0.17.2 (D134, D137–D140, D143, the TypeScript client).
Merging this PR starts the Release workflow (
release.ymlruns on main pushes that touchpyproject.toml). GHCR images are published afterverifypasses. PyPI waits for thepypienvironment's owner approval.Release coordinates
pyproject.tomlproject.versionand thecompose.yamlGHCR tags (remember-stack:0.18.0,remember-stack-postgres:19rc1-0.18.0) move to 0.18.0. The README and docs coordinates move with them, which is whatprepare_next_release.pydoes, but as a minor bump.uv.lock,openapi.json,llms-full.txt, and the TypeScript contract hash and version exports.Release-facing docs
--stagebecomes--class.docker compose down --remove-orphans.graph_pgq_*becomegraph_one_hop_*.ops graph-catalog ensurelosesdefinitions.400 invalid_pathfor control characters.reference/errors: adds the400 invalid_pathrow, which was undocumented.self-hosting/requirementsand thecompose.yamlcomment: the "RC 1 image is published by the next release / 0.17.2 needs Beta 3" transition text is replaced. 0.18.0 is the first RC 1 release.cloud/compatibility: "Added after v0.17.2" becomes "Added in v0.18.0". remember.dev still runs v0.17.2.PostgreSQL foundation pins (
Dockerfile.postgres, unchanged)Every pin was re-verified on 2026-11-06. None needed to change:
postgres:19rc1-trixie@sha256:f6bab621…. The tag has since moved to indexsha256:4b3e4b2e…, but only its riscv64 child was rebuilt. The amd64 child (sha256:2683c853…) and arm64 child (sha256:40ec4717…) are byte-identical, so the reviewed digest stays.PG_VERSION=19~rc1-1.pgdg13+1.trixie-pgdg-archive):postgresql-19-pgvector=0.8.6-1.pgdg13+2andpostgresql-19-partman=5.5.0-1.pgdg13+1both resolve.0.8.7-1.pgdg13+1is also published. It is not adopted: the release stays on the reviewed, tested pin, asdocker/README.mdrecords.fa142d04…is tagv1.5.1(annotated tag objectb63fe589…).Two small fixes
decisions.mdD147: the renumbering note now says D144 is unused, and that D145, D146 and D148 are the claim-lease, stage-class worker and egress decisions.adapters/selfhost/minio.py: the boto3 client getsmax_pool_connections=50. botocore's default of 10 is below anllmworker's default 20 tasks in flight.Verification
uv run python scripts/check_release_contract.py --tag v0.18.0:release contract valid for RememberStack 0.18.0check_docs_truth.py,generate_docs_llms.py --check, TypeScriptnpm run check:generatedruff check,ruff format --check,test_minio_store.pysha256:0a99756f…, arm64sha256:8affa2dd….artifacts.sha256manifests are recorded indocker/README.md.postgres-image-digests.json.test_migrations,test_pipeline_readiness,test_p1_ranked_pg,test_postgres_p1, graph SQL, queries and HTTP,query_sandbox_graph_d98,query_sandbox_batch_b,ops_cli,s55_selfhost_restore,d98_removal_audit,minio_store.0de5d1506(this PR's base, sameDockerfile.postgres). The workers, surfaces and adapters integration suites passed. Its Unit job was cancelled because an Ubuntu mirror was slow installing LibreOffice.test_d143_openapi_additive. Its pinned hash includedinfo.version, so any release bump would fail it, including the Release workflow'sverify.info.versionis reset to the pinned document's 0.17.2 before hashing. The test now passes.Contributor agreement
Signing on behalf of a legal entity (leave blank if accepting individually):
🤖 Generated with Claude Code
https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm