Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
acadd36
polis-api: a typed read route for a Delphi job's log, behind its own …
colinmegill Oct 19, 2026
93f17e2
polis-api: a typed read route for the Delphi visualizations list, beh…
colinmegill Oct 19, 2026
6c7f9b7
polis-api: a typed read route for the Delphi topics list, behind its …
colinmegill Oct 19, 2026
422f50a
polis-api: a typed read route for the Delphi narrative reports list, …
colinmegill Oct 19, 2026
c7b2b8e
cli: a participant's submission is a comment; a statement is a collec…
colinmegill Oct 20, 2026
d987892
cli: comment stats sorts a conversation's comments by agreement, disa…
colinmegill Oct 20, 2026
72bca65
cli: polis questions, the patterns worth looking for and the command …
colinmegill Oct 20, 2026
a19d3b9
cli: one client, many sites: pol.is by default, named sites with --si…
colinmegill Oct 20, 2026
050dd04
cli: raw data out of every read, as JSON and as CSV where tabular (#3…
colinmegill Oct 20, 2026
9faad3e
nginx: switch a Rust route on or off without an outage (#3238)
colinmegill Oct 20, 2026
745762d
votes: a typed contract for POST /api/v3/votes with 140 recorded case…
colinmegill Oct 21, 2026
6899f31
characterization: the recorder and routing replay tolerate a vote pat…
colinmegill Oct 21, 2026
b7a360b
votes: the vote path inserts and returns; vote_count and modified are…
colinmegill Oct 21, 2026
fc0e10e
cli: polis update replaces the binary from a verified release; --vers…
colinmegill Oct 21, 2026
089568b
cdk: the web security group takes port 80 from the load balancer only…
colinmegill Oct 21, 2026
83f7f63
migrations: every harness applies a migration through polis-migrate's…
colinmegill Oct 21, 2026
202866c
migrations: three indexes for the derived conversation activity reads…
colinmegill Oct 21, 2026
4f50b6f
embed: an unknown site id on the implicit route answers 404, not 500 …
colinmegill Oct 21, 2026
30adea7
polis-api: typed read routes for GET /api/v3/votes and /api/v3/votes/…
colinmegill Oct 21, 2026
1b931d1
version: one Polis version, embedded with the commit and the distance…
colinmegill Oct 21, 2026
dd4d86b
version: a tool computes the next Polis version from the last stable …
colinmegill Oct 21, 2026
c476b36
cli: polis update follows the Polis release tag (#3249)
colinmegill Oct 21, 2026
1987380
participation: an unknown conversation id answers 404, not 500 (#3250)
colinmegill Oct 22, 2026
7204521
tls: distrust the eMudhra intermediates in every runtime, bundle and …
colinmegill Oct 23, 2026
1965571
client-admin: a failed seed CSV upload shows its error and re-enables…
colinmegill Oct 23, 2026
1f7a990
next comment: every eligible comment can be routed, not only the olde…
colinmegill Oct 24, 2026
8f2d038
comments: a typed contract for POST /api/v3/comments with 153 recorde…
colinmegill Oct 24, 2026
9758c85
polis-api: twelve more typed read routes, each behind its own switch …
colinmegill Oct 24, 2026
0b26f95
comments: a seed CSV without its header row is refused with a clear m…
colinmegill Oct 24, 2026
1c6e874
participants: the participant-number lock is held to commit, so parti…
colinmegill Oct 24, 2026
6a257a8
Promote edge to stable: eMudhra distrust, every eligible comment rout…
colinmegill Oct 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,16 @@ client-participation/node_modules

client-report/dist
client-report/node_modules

# Private configuration and local review artifacts never enter images.
**/.env
**/*.env
**/.env.*
**/.google_creds_temp
**/.venv
**/node_modules
**/dist
releases/

# Public templates are runtime inputs of the importer source-binding check.
!delphi/example.env
2 changes: 1 addition & 1 deletion .github/workflows/characterization-rerecord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '22'
node-version: "22.23.4"
- name: Fetch the authenticated archive source object
working-directory: target
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/client-participation-alpha-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
node-version: "24.22.1"
cache: "npm"
cache-dependency-path: client-participation-alpha/package-lock.json

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/collective-statement-recordings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
with:
# The recordings were made on this Node; V8's error wording can
# change between releases.
node-version: "22.23.1"
node-version: "22.23.4"
cache: npm
cache-dependency-path: server/package-lock.json

Expand All @@ -75,7 +75,7 @@ jobs:
- name: Install server dependencies and the reset routine's boto3 (delphi's locked versions)
run: |
npm ci --prefix server --no-audit --no-fund
python -m pip install --quiet boto3==1.34.70 botocore==1.34.162 s3transfer==0.10.4
python -m pip install --quiet certifi==2026.10.19 boto3==1.34.70 botocore==1.34.162 s3transfer==0.10.4

- name: The harness's own rules (expected differences, refusal of foreign stores, the schema pin against the real migrations)
working-directory: server
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coordinator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
if: steps.paths.outputs.run == 'true'
with:
node-version: '24'
node-version: "24.22.1"
cache: npm
cache-dependency-path: server/package-lock.json
- name: Provision locked candidate and server modules
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delphi-characterization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "22.23.4"
cache: npm
cache-dependency-path: server/package-lock.json

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delphi-result-reads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '24'
node-version: "24.22.1"
- run: bash scripts/test-delphi-result-reads.sh --ci
4 changes: 2 additions & 2 deletions .github/workflows/dynamo-removal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
python-version: '3.12'
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
node-version: "22.23.4"
- name: Queue toolchain
working-directory: queue-rs
run: rustup show active-toolchain
- name: Install uv
run: python -m pip install uv==0.9.2
run: python -m pip install uv==0.13.4
- name: Queue, Postgres results, importer and report with DynamoDB stopped
run: bash scripts/test-dynamo-removal.sh
- name: Retain proof logs and report screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jest-client-admin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
node-version: "24.22.1"
cache: 'npm'
cache-dependency-path: client-admin/package-lock.json

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jest-client-report-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
node-version: "24.22.1"

- name: Install dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jest-server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: "22.23.4"
cache: 'npm'
cache-dependency-path: server/package-lock.json

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-provenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: {node-version: 22, cache: npm, cache-dependency-path: server/package-lock.json}
with: {node-version: "22.23.4", cache: npm, cache-dependency-path: server/package-lock.json}
- run: npm ci --no-audit --no-fund
working-directory: server
- run: sh server/characterization/jobviews/check-provenance.sh
2 changes: 1 addition & 1 deletion .github/workflows/job-views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: actions/setup-node@v4
with: {node-version: 22}
with: {node-version: "22.23.4"}
- run: npm ci --no-audit --no-fund
working-directory: server
- run: npm ci --no-audit --no-fund
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 24
node-version: "24.22.1"

- name: Get npm cache directory
id: npm-cache
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/polis-cli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:
pull_request:
paths:
- 'polis-cli/**'
- 'ci/tls/**'
- 'queue-rs/polis-contracts/**'
- 'server/characterization/post-comments/contract-cases.json'
- 'server/__tests__/fixtures/vote-declaration/**'
- 'scripts/test-polis-cli.sh'
- 'scripts/build-polis-cli-release.py'
Expand All @@ -18,7 +20,9 @@ on:
branches: [edge, stable]
paths:
- 'polis-cli/**'
- 'ci/tls/**'
- 'queue-rs/polis-contracts/**'
- 'server/characterization/post-comments/contract-cases.json'
- 'server/__tests__/fixtures/vote-declaration/**'
- 'scripts/test-polis-cli.sh'
- 'scripts/build-polis-cli-release.py'
Expand Down
43 changes: 41 additions & 2 deletions .github/workflows/polis-cli-release-build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: polis-cli release build (no publishing)
name: polis-cli release

# Select the reviewed ref when dispatching. Artifacts are review inputs only.
# Manual dispatch builds review artifacts; only an existing CLI tag publishes.
on:
workflow_dispatch:
push:
tags: ['cli-v*']

permissions:
contents: read

concurrency:
group: polis-cli-release-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
strategy:
Expand All @@ -30,6 +36,11 @@ jobs:
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- name: Verify release tag matches the workspace version
if: github.event_name == 'push'
env:
RELEASE_TAG: ${{ github.ref_name }}
run: python3 scripts/build-polis-cli-release.py --check-tag "$RELEASE_TAG"
- name: Format, clippy and tests
run: bash scripts/test-polis-cli.sh
- name: Build, smoke-test and package native CLI
Expand All @@ -40,3 +51,31 @@ jobs:
path: ${{ runner.temp }}/polis-cli-release/*
if-no-files-found: error
retention-days: 14

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/cli-v')
needs: build
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
pattern: polis-cli-*-${{ github.sha }}
path: ${{ runner.temp }}/polis-cli-release
merge-multiple: true
- name: Validate all targets and publish the existing tag
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_COMMIT: ${{ github.sha }}
RELEASE_DIRECTORY: ${{ runner.temp }}/polis-cli-release
run: python3 scripts/publish-polis-cli-release.py --directory "$RELEASE_DIRECTORY" --tag "$RELEASE_TAG" --commit "$RELEASE_COMMIT" --repository "$GH_REPO"
53 changes: 53 additions & 0 deletions .github/workflows/post-comments-recordings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: POST comments recordings
on:
pull_request:
branches: [edge, stable]
paths: ['server/**', 'queue-rs/polis-contracts/**', 'ci/post_comments_golden_guard.sh', '.github/workflows/post-comments-recordings.yml']
push:
branches: [edge]
paths: ['server/**', 'queue-rs/polis-contracts/**', 'ci/post_comments_golden_guard.sh', '.github/workflows/post-comments-recordings.yml']
workflow_dispatch:
permissions:
contents: read
concurrency:
group: post-comments-${{ github.ref }}
cancel-in-progress: true
jobs:
recordings:
runs-on: ubuntu-24.04
timeout-minutes: 30
env:
COMPOSE_PROJECT_NAME: post-comments-ci
POLIS_RECOVERY_PG_PORT: '56441'
P027_HTTP_PORT: '56442'
P027_CONTROL_PORT: '56443'
P027_SERVER_IMAGE: post-comments-server
P027_POSTGRES_IMAGE: post-comments-postgres
P027_OIDC_IMAGE: post-comments-oidc
P027_FILE_SERVER_IMAGE: post-comments-files
P027_SOURCE_COMMIT: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Protect the recorded behavior and its comparison rules
if: github.event_name == 'pull_request'
run: sh ci/post_comments_golden_guard.sh "origin/${{ github.base_ref }}"
- name: Build dependencies before starting the sealed network
run: |
docker build --target prod --build-arg NODE_ENV=production -t "$P027_SERVER_IMAGE" -f server/Dockerfile .
docker build --build-context queue-rs=queue-rs -t "$P027_POSTGRES_IMAGE" -f server/Dockerfile-db server
docker build -t "$P027_OIDC_IMAGE" oidc-simulator
docker build -t "$P027_FILE_SERVER_IMAGE" --build-arg NODE_ENV=production --build-arg AUTH_AUDIENCE=users --build-arg AUTH_CLIENT_ID=dev-client-id --build-arg AUTH_ISSUER=https://localhost:3000/ --build-arg AUTH_NAMESPACE=https://pol.is/ --build-arg EMBED_SERVICE_HOSTNAME=localhost --build-arg GIT_HASH=characterization -f file-server/Dockerfile .
- name: Replay comments and concurrent writers
run: bash server/characterization/post-comments/check.sh
- name: Preserve all outcomes, including failed oracles
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: post-comments-recordings
path: server/characterization/artifacts/comments-ci*
- name: Remove the owned stack
if: always()
run: docker compose -f server/characterization/compose.yml -f server/characterization/post-comments/compose.yml down -v --remove-orphans
4 changes: 2 additions & 2 deletions .github/workflows/queue-rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '22.23.3'
node-version: "22.23.4"
- name: Build and lint the runner
working-directory: queue-rs
run: |
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 22
node-version: "22.23.4"
- name: Install Node adapter test dependencies
working-directory: server
run: npm ci --no-audit --no-fund
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/routing-recordings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: actions/setup-node@v4
with: {node-version: 22, cache: npm, cache-dependency-path: server/package-lock.json}
with: {node-version: "22.23.4", cache: npm, cache-dependency-path: server/package-lock.json}
- run: npm ci --no-audit --no-fund
working-directory: server
- if: github.event_name == 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sensemaker-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-node@v3
with:
cache-dependency-path: sensemaking-tools/package-lock.json
node-version: "18"
node-version: "22.23.4"
cache: "npm"

- name: Install dependencies
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/tls-trust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: TLS trust stores
on:
pull_request:
paths:
- '**/*Dockerfile*'
- '**/*requirements*'
- '**/pyproject.toml'
- '**/uv.lock'
- 'polis-cli/Cargo.lock'
- 'ci/tls/**'
- 'cdk/lambda/**'
- 'cdk/test/dbBackupLambda.test.ts'
- 'cdk/package*.json'
- 'ci/probe_box/local/**'
- 'ci/probe_box/ami/**'
- 'math/distrust-ca.sh'
- 'server/mise.toml'
- '.github/workflows/tls-trust.yml'
push:
branches: [edge, stable]
paths:
- '**/*Dockerfile*'
- '**/*requirements*'
- '**/pyproject.toml'
- '**/uv.lock'
- 'polis-cli/Cargo.lock'
- 'ci/tls/**'
- 'cdk/lambda/**'
- 'cdk/test/dbBackupLambda.test.ts'
- 'cdk/package*.json'
- 'ci/probe_box/local/**'
- 'ci/probe_box/ami/**'
- 'math/distrust-ca.sh'
- 'server/mise.toml'
- '.github/workflows/tls-trust.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
trust:
strategy:
fail-fast: false
matrix:
image: [server, python, nginx, postgres, java, api, migrate, oidc, coordinator, file-server, clients, probe]
env:
TLS_IMAGE_SELECTION: ${{ matrix.image }}
# Match the arm64 runtime/probe builds without emulation.
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- name: Regression controls and version pins
run: python3 -m unittest discover -s ci/tls -p 'test_*.py'
- name: Build and inspect effective trust stores
run: bash ci/tls/check-images.sh
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
if: matrix.image == 'server'
with:
node-version: '22.23.4'
- name: Hash-checked backup Lambda package
if: matrix.image == 'server'
working-directory: cdk
run: |
npm ci
npm test -- --runInBand dbBackupLambda
2 changes: 1 addition & 1 deletion .github/workflows/vote-convention-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
python-version: '3.12'
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
node-version: "22.23.4"
cache: npm
cache-dependency-path: server/package-lock.json
- name: Install the locked engine requirements and the server modules
Expand Down
Loading
Loading