Skip to content

DPOLens 0.1.0-rc.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Oct 03:10
· 15 commits to main since this release
Immutable release. Only release title and notes can be modified.
554c282

The second release candidate for 0.1.0. A search now keeps to the laws the organisation
selected, questions are kept unless a retention is set, the command line asks for what it
needs, and an instance can run as a community version that answers anyone's assistant. The
interfaces can still change before 1.0, and only the newest release gets fixes.

Before upgrading from 0.1.0-rc.1:

  • Questions are no longer deleted after 365 days. The query log keeps every question unless
    DPOLENS_QUERY_LOG_RETENTION_DAYS is set. To keep 0.1.0-rc.1's rule, set it to 365: it
    counts from the day each question was asked, so it covers the questions already kept.
  • A search needs selected laws. An instance with none selected, including one that searched
    every law, refuses every search until somebody chooses. The dashboard asks the next
    administrator who signs in, and docker compose exec api dpolens laws select chooses from
    the command line. An instance whose laws were chosen keeps them.
  • Searching every law is gone, with DELETE /v1/laws/selection and dpolens laws clear,
    and a search result no longer carries in_selected_laws.
    docs/api-changelog.md
    lists every change to the HTTP API.

What changed:

  • Only the selected laws, everywhere. Search, the library, the MCP server and the command
    line keep to the laws the organisation selected. A token asking for another law is refused
    with 403 and /problems/law-not-selected. The dashboard still opens it, marked, so a
    citation stays checkable after its law is unselected. A law an upgrade brings is marked new
    in Selected laws for 30 days. (#42)
  • Questions are kept unless a retention is set, and a retention applies to every question
    kept, counted from the day it was asked. Settings shows the rule.
    (#45)
  • dpolens init sets up an instance: the first administrator, their password for the
    dashboard, and the laws that apply. It does only what is missing, so it is safe to run again.
    Every other command asks in a terminal for what it needs, with a checklist for laws, roles
    and permissions, and with no terminal it fails naming the flag, as before.
    (#46)
  • Most cited counts citations: a search's first result, or a clause read by key from an
    assistant or the API, once per person per clause a day. Reading a clause in the dashboard
    never counts. (#43)
  • One language at a time in the dashboard. A law in two languages has a switch between
    them, remembered for each law, and the chip saying which text prevails stays. The API and the
    MCP server still give the prevailing text beside a translation.
    (#44)
  • A community version. An instance can answer anyone's assistant with no token, from the
    law alone, as one Community account that may only read, within limits for each address, each
    shared range and everybody together.
    docs/mcp.md
    has every setting, including DPOLENS_MCP_PATH, which lets the MCP server answer at /.
    (#47)
  • SECURITY.md says
    how to report a vulnerability privately.
    (#48)

Images

Each is built for amd64 and arm64, and docker compose up in a checkout of this release pulls them.

ghcr.io/alkhatibdev/dpolens:0.1.0-rc.2
ghcr.io/alkhatibdev/dpolens-mcp:0.1.0-rc.2
ghcr.io/alkhatibdev/dpolens-dashboard:0.1.0-rc.2
ghcr.io/alkhatibdev/dpolens-postgres:0.1.0-rc.2

To check that an image was built here, from this tag: gh attestation verify oci://ghcr.io/alkhatibdev/dpolens:0.1.0-rc.2 --repo alkhatibdev/dpolens.