Skip to content

Evidence Lab v1.6.6 — Security hardening, Brief version history and Fact Checker, and production-ready AWS deployments

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:42
· 177 commits to main since this release
2d9c3f1

[1.6.6] - 2026-11-21

Evidence Lab v1.6.6 is a security and production release. Document changes and reprocessing now need an administrator, the key built into the web interface no longer opens MCP, A2A or a sign-in-required deployment, connecting an MCP client asks for consent, AI requests may use only the models and token budgets config.json allows, and text visitors submit can no longer run in the admin screens or exports. Brief gains a version history: a section's change can be reviewed and kept or rejected, and both sections and the whole brief can be compared with and restored to earlier versions. A Fact Checker shows a citation check's verdicts in the brief itself. Two new kinds of model provider arrive, any OpenAI-compatible embeddings endpoint and any Cohere-compatible reranker, and Amazon Rerank 1.0 becomes the AWS Bedrock combo's reranker. The AWS template gets what a production site needs: optional CloudFront and AWS WAF, weekly AWS Backup backups, moving data in and out through a transfer bucket, PostgreSQL 17, and fixes that keep the search index and the database version across deploys. Requests no longer fall back to the uneg data source, and the PDF heading add-in is held at the version existing libraries were parsed with. Releases are now tags on main.

Brief

  • Review a section's change before keeping it. After Generate, AI Edit or Update on one section, the section shows its changes as tracked changes, with Hide/Show Changes, Keep Edits and Reject Edits. Rejecting puts back the text the section had before. Whole-brief runs don't ask for review (#612)
  • Section History and Document History. Each section's Section History (n) lists every change with the text before and after it, and shows any version compared with the one before. Document History (n), on the title row, keeps whole-brief versions, about 10 KB each; typing saves within application.brief.versions.merge_minutes (default 5) merge into one version. The owner can restore any version, even of a run since trimmed from the brief. Anyone who can open the brief sees both histories; only the owner keeps, rejects or restores (#612)
  • Fact Checker. A brief with a completed citation check (Admin → Testing (Brief)) gets a Fact Checker button beside Export to Word. It highlights every passage the check judged in the colour of its verdict (Supported, Partially supported, Unsupported, Cannot assess), with a legend that counts them, and a card on hover gives the judge's reason, confidence and the cited excerpts, with Open source. A check is tied to the brief version it judged: a section changed since is marked as not covered, and the button says which version was checked (#611)
  • Research prompts up to 5,000 characters. A brief's instructions, section guidance, Edit and Update instructions and template prompts share one 5,000-character limit, in the boxes and in the API, up from 2,000. The outline's library survey sends the instructions in a new brief_survey field and the API writes its prompt, as sections already did, so long instructions no longer make the outline fail with 422 (#603, #604)
  • No reference list in the middle of a brief. The research agent sometimes added its own "References" block to a section. Trailing, list-shaped blocks under such headings are now left out of the displayed section and its numbering, so sources cited only there get no number; the run's original text is kept (#609)
  • Shared briefs open without an error. Opening a brief someone else owns showed "Request failed with status code 404", because the page tried to store claim highlights on the owner's brief. Highlights are still shown, but only stored for the owner (#643)
  • Keep or Reject goes once. Clicking Keep Edits again before the API answered sent the decision twice and showed a 400. The buttons now wait for the answer, and errors show the API's reason rather than a status code (#645)
  • A run's original output reads as a document. In Section History, original opens the agent's output formatted, with a Formatted / Raw switch, padded and at a readable line length, and its numbering table no longer wraps (#644)
  • A CSS-only loading spinner shows while the app loads, instead of a blank page (#612)

Search & Assistant

  • Prompt boxes grow with their content. The Search box and every Brief prompt box grow up to 240 px as text is typed, then scroll. Enter still runs a search; Shift+Enter adds a line (#602)
  • No uneg fallback for requests without a data source. A request that named no data source used uneg. It now uses the deployment's only source, or DEFAULT_DATA_SOURCE when there are several, and otherwise fails with 400. Chat and the Brief outline and revise routes refuse sources that aren't configured, and return 403 to a signed-in user whose groups don't grant the source, who now sees a clear "no access" message instead of a brief written from no evidence. MCP and A2A research checks the source before starting. A 422 now logs which fields were rejected, never their values, and the page shows the API's reason (#603)
  • Search recovers after a database restart. The Postgres connection pool behind search, the filter lists and the pipeline handed out connections the server had closed, so after a restart, failover or restore each idle connection cost one failed request. Each connection is now checked when taken from the pool and replaced if closed (#640)

Models

  • OpenAI-compatible embeddings ("source": "openai"). Any service with the OpenAI embeddings API (OpenAI, vLLM, Ollama, LiteLLM, hosted providers) can embed documents and queries. base_url_env and api_key_env name the variables to read, so several such providers can be configured at once; no key is sent when none is set. Requests are batched and retried on 429 and server errors. config.json gains a stock entry, openai_small (text-embedding-3-small, 1536 dimensions), used by nothing until a data source lists it (#607, #616)
  • Cohere-compatible rerankers ("provider": "cohere_compatible"). Any endpoint with Cohere's /rerank API, Cohere's own included, can rerank results, over HTTPS only. When it is unavailable, search returns the results unranked with a warning, as with Vertex. config.json gains cohere-api-rerank-v4.0-fast (rerank-v4.0-fast on Cohere's API), used by no combo (#606, #615)
  • Amazon Rerank 1.0 on Bedrock. amazon.rerank-v1:0 is accepted next to Cohere Rerank and is now the AWS Bedrock combo's reranker, in us-west-2. It is Amazon's own model, so a new AWS account needs no Marketplace agreement before reranked search and the research assistant work. Other Bedrock rerank models are still refused, with a message naming the two supported ones (#624)

Pipeline

  • PDF headings parse as before. The add-in that sets PDF heading levels, docling-hierarchical-pdf, is held at 0.1.2. From 0.1.6 it turned numbered paragraphs and list items into headings and flattened real ones: on one 91-page evaluation, 27 numbered paragraphs became headings and chapter 1's text was filed under the Executive Summary. Tests now run the real add-in (#641)
  • Annexes start where they should. When a document has no stored page count, the tagger now takes the highest page in its table of contents, instead of letting an entry on the contents page start the annexes. On one report this had labelled 252 of its 256 chunks as annexes (#605)

Security

  • Changing documents needs an administrator. Editing a document or its table of contents, reprocessing it or its table of contents, and reading the processing queue or a document's processing log need a signed-in superuser; without the user module they are always refused. The interface shows those controls only to administrators. A request without an API key passes the key check only with a valid session cookie. Web pages and static files now carry the security headers, plus HSTS and a Content-Security-Policy that blocks framing and plugins (#617)
  • The web interface's key opens only the web interface. REACT_APP_API_KEY is readable by anyone who loads the site. MCP and A2A now refuse it, and when sign-in is required it is not accepted as a credential. It can now differ from API_SECRET_KEY, the demo script generates a separate one, and the API warns at start-up when the two are the same (#619)
  • Connecting an MCP client asks for consent. After signing in, the person sees Allow this app?, naming the client and where it will be sent, and the sign-in only completes in the browser that started it. MCP tokens can no longer be used as web sessions (#620)
  • Limits on what one request can ask for. The AI summary, chat, highlight and Brief outline and revise routes accept only models listed in config.json, and at most the output tokens config.json allows for that model; anything else gets a 400 that names the limit. Search limit is capped by SEARCH_MAX_LIMIT (default 10,000) and highlight text by HIGHLIGHT_MAX_TEXT_CHARS (default 50,000). RATE_LIMIT_MCP_SEARCH and RATE_LIMIT_MCP_AI, documented before but never applied, now apply per caller (#621)
  • Visitor input stays text in admin screens and exports. Ratings and activity entries refuse data: URLs other than images and javascript: or vbscript: links. Stored links are clickable only for http, https, mailto and site paths, feedback screenshots open inside the page, and spreadsheet exports write cells starting with = as text, not formulas (#618)
  • SECURITY.md now matches the code, and lists which checks block a merge (#617, #618, #652)

Layout

  • Tablets and small laptops. Between 641 and 1279 px, the navigation, the search landing page, the Documents Library controls, the Brief Central tabs, the Heatmapper buttons and the Document Statistics toggles no longer run off the edge or show stray scroll bars. Phones and desktops are unchanged (#646)
  • The header's Dataset and Models pickers fit on tablets. Without a deployment theme, they made the header about 1,170 px wide, so the page scrolled sideways below that width. Between 641 and 1279 px they now take a second header line (#648)
  • Phones no longer scroll sideways. The navigation's hover tooltips still counted toward the page width while hidden. They are now left out on phones, which have no hover; screen readers still read them (#649)

Deployment & CI

  • CloudFront and AWS WAF for AWS (cloudfront_enabled). The load balancer moves to private subnets and only CloudFront can reach it. CloudFront serves the site over HTTPS on its own address or your domain, caches only static files, and passes streams straight through. An AWS WAF web ACL adds an optional address allow list, a per-address rate limit and AWS's managed rules, with a count-only mode for a new site's first days. The API, MCP server and nginx still see each visitor's own address, so rate limits and the audit log count visitors. Google and Microsoft sign-in now return to the site's address, and secure cookies are on whenever the site uses HTTPS (#623, #653)
  • Your own branding and pipeline files on AWS. customize_assets_dir names the branding folder every web interface build uses, so a build no longer falls back to the stock look when CUSTOMIZE_ASSETS isn't set where it runs. pipeline_files_dir uploads a folder of the deployment's own pipeline files, such as a downloader script and its spreadsheet, to a private bucket, and the pipeline task copies them to /app/custom before each run (#623)
  • AWS deploys keep the search index and the database version. The Qdrant instance keeps the Amazon Linux image it was created from, so a new Amazon Linux release no longer replaces it and deletes the index on its disk. Postgres keeps the version it runs, and AWS's minor upgrades move it on in the maintenance window, instead of each deploy trying to move it (#634, #635)
  • PostgreSQL 17 for new AWS databases. The major version is a setting, db_engine_version (default "17"), because PostgreSQL loads exports only into the same or a newer version. It affects new databases only (#638)
  • AWS Backup. The database, the file share with the documents and page images, which had no backups, and the Qdrant instance when it runs on EC2 are backed up every Sunday at 03:00 UTC and kept 35 days (backups_enabled, backup_schedule, backup_retention_days) (#636)
  • Moving data into and out of an AWS deployment. A private transfer bucket and a restore task with its own role: restore-data.sh loads a Postgres export and a data source's folder archive from inside the network, and inspect shows what an export holds first. dump-data.sh writes the database, the data source's Qdrant collections and its folder back to the bucket, with a manifest of sizes and SHA-256s. Archives made by the pipeline, whose links to original files use absolute paths, now restore (#637, #639, #642)
  • AWS WAF allow list and site check. Turning the allow list off no longer fails with WAFAssociatedItemException. When an allow list blocks the machine running the deploy, deploy.sh's last step, now also check-site.sh, checks the site through AWS instead of fetching it (#650, #651)
  • The web app builds without emulation. The web interface image builds its JavaScript on the build machine's own platform, so an x64 machine builds the arm64 image for AWS, and an Apple silicon Mac the amd64 image, without emulating the whole build (#647)
  • Releases are tags on main. Every pull request targets main, and a release is a tag on a tested commit of main: vX.Y.Z-rc.N for a candidate and vX.Y.Z for the release, which adds names to the image already built for that commit and publishes the GitHub release from this file. There are no rc/ or release/ branches; a release-X.Y branch is made only to patch an older release (#625)
  • The web interface image is based on nginx:alpine-slim. The full nginx:alpine image adds the XSLT, njs, image-filter, GeoIP and ACME modules, which the web interface doesn't load, and the libraries they need. One of them, libxml2, carried a high-severity advisory (CVE-2026-86144) that failed the new image scan. The slim image has the same nginx and envsubst without them: 21 packages instead of 72 (#657)
  • CI pins every action and scanner. Each action is pinned to a commit, Trivy and the Python scanners to versions. Bandit's high-severity findings and high or critical findings in the web interface image now fail the build (#652)

Documentation

  • The README's Features list is grouped under headings, with short bullets (#608)
  • Cloud deployment covers CloudFront and AWS WAF, signing in with Microsoft or Google on AWS, backups, restoring and dumping data, and an updated AWS diagram (#623, #636, #637, #642)
  • Pipeline Configuration covers the OpenAI-compatible embeddings and Cohere-compatible reranker settings, and Amazon Rerank (#615, #616, #624)
  • The MCP server page describes the consent step and separate web and master keys, and Performance and Scaling the new request limits (#619, #620, #621)

Dependencies

  • Dependabot targets rc/v1.6.6 (#600), then main (#625)
  • Frontend: axios 1.21.1 (#626), @typescript-eslint/parser 8.73.0 (#627), http-proxy-middleware 2.0.12 (#629), @playwright/test 1.65.1 (#630)
  • Backend: google-cloud-discoveryengine >= 0.20.7 (#628); nltk 3.10.4, python-multipart 0.0.34 and OpenTelemetry 1.45.2, and PyPDF2 and pypdf removed, unused (#654); docling-hierarchical-pdf held at 0.1.2 (#641)

Upgrade Notes

  • Migrations 0039_add_brief_versions and 0040_add_brief_check_version add the brief_versions table and link citation checks to the version they judged. The API applies them on start-up. Existing briefs get a baseline version dated at their last save; earlier citation checks apply while the brief still reads as they judged it (#611, #612).
  • Give the web interface its own key. Set REACT_APP_API_KEY to its own value, rebuild the web interface, then change API_SECRET_KEY. Until then a deployment whose two keys are equal keeps working in the browser, but its master key no longer opens MCP or A2A; admin-created keys still do. A deployment that sets variables per service must also give the MCP service REACT_APP_API_KEY (#619).
  • Document changes need an administrator. Non-admin users, and deployments without sign-in, can no longer reprocess documents, edit or re-run a table of contents, or see processing logs and the queue (#617).
  • MCP clients show an Allow page after sign-in. Tokens issued before the upgrade keep working until they expire, within an hour (#620).
  • No uneg default. On a deployment with several data sources, a request naming none now gets 400 unless DEFAULT_DATA_SOURCE is set; set DEFAULT_DATA_SOURCE=uneg to keep MCP and A2A clients that relied on the old default. A missing config.json is now an error, instead of a built-in list of sources. Signed-in users with no group grants get 403 and need adding to a group (#603).
  • AI requests are checked against config.json. A client that names a model not in supported_llms, or more output tokens than its entries allow, gets 400. New optional environment variables SEARCH_MAX_LIMIT (default 10000) and HIGHLIGHT_MAX_TEXT_CHARS (default 50000); RATE_LIMIT_MCP_SEARCH and RATE_LIMIT_MCP_AI now apply (#621).
  • New config.json key application.brief.versions.merge_minutes (default 5; 0 stops typing saves merging) (#612).
  • New config.json entries openai_small, cohere-api-rerank-v4.0-fast and amazon-rerank-1.0-bedrock, and the AWS Bedrock combo's reranker is now amazon-rerank-1.0-bedrock. New optional environment variables OPENAI_BASE_URL, OPENAI_API_KEY, COHERE_BASE_URL and COHERE_API_KEY. A deployment that keeps its own config.json can copy the entries to use them (#606, #607, #615, #616, #624).
  • The Brief's outline request carries a new brief_survey field. Reload browser tabs left open across the upgrade (#604).
  • docling-hierarchical-pdf 0.1.2. Documents keep the parse they have; reprocess a document to parse it with 0.1.2 (#641).
  • Rebuild the web interface for the new security headers, the loading spinner and its smaller base image, nginx:alpine-slim (#612, #617, #657). A deployment that adds its own nginx modules to the image needs the full nginx:alpine instead.
  • AWS template: new settings cloudfront_enabled, cloudfront_price_class, cloudfront_origin_read_timeout, waf_allowed_ip_ranges, waf_rate_limit, waf_core_rules_to_count, waf_count_only, db_engine_version, backups_enabled, backup_schedule, backup_retention_days, restore_task, transfer_retention_days, customize_assets_dir and pipeline_files_dir. CloudFront is off by default; with it off the template creates what it did before, plus the sign-in callback setting. Backups are on by default, and teardown.sh deletes their vault with the deployment. An existing database keeps its PostgreSQL version: db_engine_version applies to new databases (#623, #634, #635, #636, #637, #638).
  • Pull requests target main. Branches cut from an rc/ branch should be rebased onto main (#625).