Repository navigation
fix(privacy)+gauntlet: narrow placeholder backstop (rc2-caught over-block), audit P0 fixes, rc3 prep #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix(privacy)+gauntlet: narrow placeholder backstop (rc2-caught over-block), audit P0 fixes, rc3 prep #391
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9552652
fix(privacy): narrow the placeholder-proximity backstop to full-width…
100yenadmin c7a9d84
fix(privacy): serialization-aware placeholder-adjacency backstop + wi…
100yenadmin 600123f
gauntlet: planted-secret battery accepts fail-closed refusals as no-l…
100yenadmin 264aac1
release: v0.23.2-rc3 notes + RC_TAG (over-block fix + audit round)
100yenadmin b8335b7
fix(privacy)+gauntlet: close prefixed/glued/backward orphan leak (#39…
100yenadmin 933a308
fix(privacy): detect embedded base64 run, not whole-token (glued-sepa…
100yenadmin 870b74b
fix(privacy): restore main's raw-text proximity backstop + pure-hex e…
100yenadmin 628822c
docs(rc3): Phase B scope reads previous-GA→rc, re-run per candidate (…
100yenadmin e38518c
Merge branch 'main' into fix/389-drop-overbroad-fragment-backstop
100yenadmin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
100yenadmin marked this conversation as resolved.
Resolved
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. | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.