Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions .github/release-notes/v0.23.2-rc3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# v0.23.2-rc3 — lossless default, security, and instrument-integrity release candidate

**RELEASE CANDIDATE — not GA.** This prerelease enters the RELEASE-READINESS-V1 gauntlet
(bench/specs/RELEASE-READINESS-V1.md): Phase A (all-tools live matrix on a fresh clone across
privacy postures, planted-secret battery), Phase B (multi-agent P0/P1 sweep of the full
v0.23.1→rc1 diff), Phase C (30+ turn live session soak). GA follows only with all three
Comment thread
100yenadmin marked this conversation as resolved.
Resolved
Comment thread
100yenadmin marked this conversation as resolved.
Resolved
Comment thread
100yenadmin marked this conversation as resolved.
Resolved
receipts green.

## Lossless by default: the privacy split (#346 → #374)

LCM sells lossless memory, and v0.23.2 makes that the shipped default everywhere. Durable
sensitive-pattern redaction (`LCM_SENSITIVE_PATTERNS_ENABLED`) is now a fully independent,
opt-in-forever choice: it is off by default and no other feature turns it on. Cloud embedding
no longer requires it — known cloud providers instead protect only the **provider-bound
copy** of your text, controlled by the new `LCM_EMBEDDING_PRIVACY_ENABLED` flag (unset =
auto-on for cloud). Your durable history stays byte-for-byte lossless while the text leaving
the machine is transformed. Operators who want raw provider payloads can opt out explicitly
with `LCM_EMBEDDING_PRIVACY_ENABLED=false`, which binds vectors to the distinguished
`privacy:off` revision. Changing posture changes vector identity: dispatch refuses until a
new `/lcm embed warmup` registers it, and existing vectors stay ineligible until
`/lcm embed backfill --apply` re-embeds them — LCM never re-embeds automatically.

Rerank payloads are covered by the same resolution (#371): with reranking enabled on a cloud
provider, the rerank query and every snippet are transformed before transport, and ranking
maps back to the original untransformed hits.

## Security: PEM private-key redaction hardening (#365 → #366)

v0.23.1's privacy release contained an ordering flaw: an assignment-style prefix
(`password:` / `passphrase=`) before a PEM block could consume the `-----BEGIN` marker and ship
the private-key body to the cloud embedding provider and durable storage. No customer exposure:
the repository is pre-release with no external deployments; vectors embedded under the previous
transform become ineligible (privacy revision v1 → v3) until the standard
`/lcm embed warmup` + `/lcm embed backfill --apply` sequence re-embeds them.

The fix went through twenty-five adversarial cross-model review rounds and grew into a rewrite of the
redaction scanner around a normalized line model with a **declared threat model** (module
comment): accidental leakage of PEM-structured material in realistic paste/log/transcript shapes
— line-separator and whitespace variants, indentation and label/log prefixes, truncation,
stripped markers, re-wrapped widths, RFC 1421 encrypted-key armor, JSON/log serialization at any
escaping depth, and their compositions — with the dispatch validator as a fail-closed second
layer on the cloud path. Deliberate re-encoding remains out of scope for any content-based
redactor. Performance is linear and bounded (pathological inputs that took 13.9–34.6s now run in
milliseconds; CodeQL ReDoS finding closed).

**rc2 (#383/#384):** the v0.23.2-rc1 Phase-A gauntlet caught a residual the #366 rewrite missed —
a truncated PRIVATE KEY body sharing a line with a following inline PEM marker (any armor label)
escaped to the provider copy, and the residual validator missed it. rc2 closes it at both layers:
the scanner redacts leading base64-body runs before inline markers, and — the durable fix — the
validator became marker-INDEPENDENT (blocking a dispatch where a key-body fragment survives beside a
surviving private-key marker). rc2 also added a placeholder-adjacency backstop; that specific form was
over-broad and was reworked in rc3 (below) — the rc-first gate working as intended, the leak never in a GA build.

**rc3 (#389 + audit + 3 cross-model reviews):** rc2's gauntlet then caught the fix's own over-reach — a
redacted private key beside a nearby git SHA (ubiquitous in runbooks) refused to embed. Three successive
line-model rewrites of the placeholder-proximity backstop each re-opened a leak shape the prior release
blocked (escape-blindness, glued separators, a placeholder hidden by line reclassification) — each
caught by an independent cross-model adversarial review before any candidate was cut. Decision (owner):
restore the proven RAW-text proximity backstop (any surviving 16+ base64 run in a private_key
placeholder's 160-char adjacency window blocks fail-closed, immune to line classification) and remove
the over-block surgically instead — pure-hex runs (git SHAs / hash digests) are excluded, so key+hash
prose embeds while every key-body fragment blocks. The Phase-A battery was extended with the full
orphan-shape family (prefixed, glued, backward, serialized, marker-glued) plus an independent
partial-fragment outbound sweep. The accepted boundary is sub-16 fragments; the durable store is lossless.

## Instrument integrity: loud privacy failures + production-posture harness (#367 → #370)

- `lcm_recall` no longer silently degrades to FTS-only on a privacy-policy configuration error —
the error is loud at every handler site, and the proactive-recall path surfaces it via a
dedicated status counter plus a once-per-engine-instance warning.
- The V1-M harness now runs cloud providers at production posture — post-#374 that means the
lossless-durable / protected-provider-copy split: the transform applies to every cloud-bound
payload (documents, queries, probes), vector identities register under the active privacy
revision, resume artifacts bind the posture and refuse mismatches, and non-embedding runs
keep a byte-identical raw corpus.
- Provider aliases (`openai`, `siliconflow`) can no longer bypass the cloud-privacy predicate.

## Release process: rc-first gauntlet (#373)

Any release containing product code is now rc-first: this prerelease is the first through the
three-phase live gauntlet, and the GA commit may differ from the passing rc tree only by the
added release notes. The Phase-A runner discovers the tool surface at runtime (15 tools),
binds release runs to a clean tree at the exact rc tag, and records hermes provenance in its
receipt.

## Known follow-ups (tracked, non-blocking)

- #386 — teams-scope backfill O(N^2) (test-only entrypoint today; Teams milestone).
- #387 — upgrade-path lcm_recall raises raw across the tool boundary (JSON-error follow-up).
- #389 — redaction precision boundaries (single sub-threshold fragments; stateful-pass candidate).
- #372 — assignment-pattern fragments around an embedded PEM placeholder.
- #369 — merge-gate governance right-sizing (reset scoping, approval-count rule).
- Live rerank battery in Phase A (rerank protection is covered by product regressions).

## Benchmark boundary

F53's reproducibility on current main is UNVERIFIED (not proven broken); the re-bank runs after
this release so the row binds to the stable privacy transform under the new posture split, and
its registration must declare the harness transform posture. See bench/BASELINE-LEDGER.md
(privacy-trio boundary) and the FINDING-F53 reproducibility note.
Loading
Loading