test: ban session jsonl export bridges

This commit is contained in:
Peter Steinberger
2026-05-10 04:14:30 +01:00
parent 9864909c13
commit 46b2c377a8
2 changed files with 11 additions and 2 deletions

View File

@@ -791,8 +791,9 @@ sessionId}` and session key context.
legacy store names with write-style filesystem APIs. It also fails runtime
source that reintroduces transcript bridge contracts such as
`transcriptLocator`, `sqlite-transcript://...`, or `sessionFile`, and scans
tests for those bridge-contract names too. Migration, doctor, import, and
explicit export code remain allowed. The guard now also covers runtime
tests for those bridge-contract names too. It also bans the old session JSONL
downloader hook/class from export UI. Migration, doctor, import, and explicit
non-session export code remain allowed. The guard now also covers runtime
`cache/*.json` stores, generic `thread-bindings.json` sidecars, cron
state/run-log JSON, config health JSON, restart and lock sidecars, Voice Wake
settings, plugin binding approvals, installed plugin index JSON, File

View File

@@ -209,6 +209,14 @@ const forbiddenRuntimeLocatorContractMarkers = [
label: "context engine compaction transcript locator output",
pattern: /\bresult\??\.transcriptLocator\b/u,
},
{
label: "session JSONL export downloader",
pattern: /\bdownloadSessionJson\b/u,
},
{
label: "session JSONL export button",
pattern: /\bdownload-json-btn\b/u,
},
];
const allowedExactPaths = new Set([