From 35af97cdda36a23b36a1ce559993b8e3d534ed72 Mon Sep 17 00:00:00 2001 From: TheMeinerLP Date: Fri, 20 Nov 2026 13:23:21 +0100 Subject: [PATCH] docs(openspec): tick the finished tasks of the platform changes Tick the tasks of nine platform changes whose result is on main or was delivered by a merged pull request. Only checkboxes change; no task text and no other file is touched. - add-load-tests: 34 ticked - add-console-cli: 5 ticked - add-chart-upgrade-rehearsal: 2 ticked - run-changed-tests-and-manual-heavy-ci: 3 ticked - define-governance-and-community: 9 ticked - add-login-challenge-extension: 3 ticked - add-login-protection: 3 ticked - add-release-branches-and-backports: 12 ticked - recommend-postgresql: 1 ticked Manual steps, work in open pull requests and work not built yet stay unchecked. Signed-off-by: TheMeinerLP --- .../add-chart-upgrade-rehearsal/tasks.md | 4 +- openspec/changes/add-console-cli/tasks.md | 10 +-- openspec/changes/add-load-tests/tasks.md | 68 +++++++++---------- .../add-login-challenge-extension/tasks.md | 6 +- .../changes/add-login-protection/tasks.md | 6 +- .../tasks.md | 24 +++---- .../define-governance-and-community/tasks.md | 18 ++--- .../changes/recommend-postgresql/tasks.md | 2 +- .../tasks.md | 6 +- 9 files changed, 72 insertions(+), 72 deletions(-) diff --git a/openspec/changes/add-chart-upgrade-rehearsal/tasks.md b/openspec/changes/add-chart-upgrade-rehearsal/tasks.md index 6536f0fa42..99351d5119 100644 --- a/openspec/changes/add-chart-upgrade-rehearsal/tasks.md +++ b/openspec/changes/add-chart-upgrade-rehearsal/tasks.md @@ -8,7 +8,7 @@ Gradle `--no-daemon --max-workers=2` where Gradle is involved, and kind or Testc ## 1. Proposal -- [ ] 1.1 `docs(openspec): propose add-chart-upgrade-rehearsal`: this change and nothing else. Verify: +- [x] 1.1 `docs(openspec): propose add-chart-upgrade-rehearsal`: this change and nothing else. Verify: `openspec validate add-chart-upgrade-rehearsal --strict` passes and the dash grep from the proposal prints nothing. ## 2. Spike: does the upgrade keep the data without the overrides @@ -31,7 +31,7 @@ Gradle `--no-daemon --max-workers=2` where Gradle is involved, and kind or Testc on kind. - [ ] 3.2 `ci(chart)`: add the rehearsal to the `chart` job of `.github/workflows/ci.yml` after `ct install`, and set `upgrade: true` in `ct.yaml`. Verify: the workflow lints, and the job runs green on the pull request. -- [ ] 3.3 `test(chart)`: write failing tests for the render of the test hook, one for the default render (no test pod) +- [x] 3.3 `test(chart)`: write failing tests for the render of the test hook, one for the default render (no test pod) and one for `tests.enabled=true` (one pod with `helm.sh/hook: test`), in `charts/ingot/tests/test_chart.py`. Verify: they fail before 3.4. - [ ] 3.4 `ci(chart)`: add `charts/ingot/templates/tests/` with the test pod that calls the API with a token, and the value diff --git a/openspec/changes/add-console-cli/tasks.md b/openspec/changes/add-console-cli/tasks.md index 3bdbba2d2c..d7d189fcdd 100644 --- a/openspec/changes/add-console-cli/tasks.md +++ b/openspec/changes/add-console-cli/tasks.md @@ -16,7 +16,7 @@ Groups 2 and 3 are merged on `main` (#412, #427, #434). Their tasks stay as the ## 1. Proposal -- [ ] 1.1 `docs(openspec): run the console repl over a shared websocket`: this revision and nothing else, under +- [x] 1.1 `docs(openspec): run the console repl over a shared websocket`: this revision and nothing else, under `openspec/changes/add-console-cli/`. Verify: `openspec validate add-console-cli --strict` passes, and a grep for em and en dashes over the change prints nothing. @@ -37,7 +37,7 @@ Groups 2 and 3 are merged on `main` (#412, #427, #434). Their tasks stay as the ## 4. Server protocol (`feat(console)`, `test(console)`) -- [ ] 4.1 `test(console)`: golden tests of the legacy text protocol on `/api/console/sock`. A first frame `Authorization:...` gets raw log +- [x] 4.1 `test(console)`: golden tests of the legacy text protocol on `/api/console/sock`. A first frame `Authorization:...` gets raw log lines, a `keep-alive` is answered, a command gets no answer frame, failed authentication gets the error and a disconnect, the audit event has `confirmed` false and no `client`. Verify: green on `main` before any production change, and still green after 4.8. - [ ] 4.2 `test(console)`: failing tests for the handshake: a hello negotiates protocol 1, a list without 1 closes with 1002 and @@ -48,11 +48,11 @@ Groups 2 and 3 are merged on `main` (#412, #427, #434). Their tasks stay as the plus `confirmed`; a second `execute` gets `busy`; `complete` is answered while an `execute` runs; a dangerous command waits for an accepted `confirm`; a declined or unanswered one (120 seconds, fake scheduler) runs nothing and answers exit code `3`; the `confirm` frame of `token-regenerate ci s3cr3t` does not contain the secret. Verify: red before 4.8. -- [ ] 4.4 `test(console)`: failing tests for the log frames: `seq` is unique within a boot, the cached lines keep the `seq` they were +- [x] 4.4 `test(console)`: failing tests for the log frames: `seq` is unique within a boot, the cached lines keep the `seq` they were stamped with, `logLevel` can be raised and not lowered below the visible threshold, a line from another replica carries its `node`, a `resume` for the same boot replays after its `seq` and says `resumed`, a `resume` for another boot replays the cache and says `full`. Verify: red before 4.8. -- [ ] 4.5 `test(console)`: failing tests for backpressure: a writer that never reads does not block the thread that logs; a full queue of +- [x] 4.5 `test(console)`: failing tests for backpressure: a writer that never reads does not block the thread that logs; a full queue of log frames drops and counts them, and the next delivered frame states `dropped`; a `result` is never dropped; a queue full of results closes with 1013 and `slow_consumer`; 1000 lines in the same instant deliver at most 500. Verify: red before 4.8, and each test waits on a latch, never on time. @@ -146,7 +146,7 @@ Groups 2 and 3 are merged on `main` (#412, #427, #434). Their tasks stay as the The reference pages exist on `main` (#454) under `docs/gitbook/references/` and `docs/gitbook/manage/operate/`, not under `docs/gitbook/reference/` as first planned. -- [ ] 9.1 `test(docs)`: failing check that every `INGOT_` name in the CLI source appears in `docs/gitbook/references/environment-variables.md` +- [x] 9.1 `test(docs)`: failing check that every `INGOT_` name in the CLI source appears in `docs/gitbook/references/environment-variables.md` or in the CLI reference, and that every link in the changed pages resolves. Verify: red on the names that are not documented yet. - [ ] 9.2 `docs(console)`: update `docs/gitbook/references/console-commands.md` with the version 1 protocol (frames, authentication, limits, close codes, reconnect), correct its authorization wording to what the code checks (open question 16), and update the row of diff --git a/openspec/changes/add-load-tests/tasks.md b/openspec/changes/add-load-tests/tasks.md index f047308365..bc106ca3f1 100644 --- a/openspec/changes/add-load-tests/tasks.md +++ b/openspec/changes/add-load-tests/tasks.md @@ -12,12 +12,12 @@ under its title. The last task of the last group opens the last pull request. Pull request: `test(load): add the typescript scaffolding for k6 load tests` -- [ ] 1.1 Test: `loadtest/lib/config.test.ts` (Node test runner through `tsx`, no network, no clock) for the option parsing of +- [x] 1.1 Test: `loadtest/lib/config.test.ts` (Node test runner through `tsx`, no network, no clock) for the option parsing of `--topology`, `--profile` and `--scenario`, the default profile values and the rejection of a plateau step shorter than 10 minutes. Then add `loadtest/package.json` with the devDependencies `typescript`, `@types/k6` and `tsx`, each pinned, and `loadtest/tsconfig.json` with `strict` set. Add the scripts `typecheck` (`tsc --noEmit`) and `load` (`tsx runner/main.ts`). Verify: `npm run typecheck` passes and `find loadtest \( -name '*.js' -o -name '*.mjs' \)` prints nothing. -- [ ] 1.2 Add `loadtest/lib/config.ts` with the k6 image tag as the single pinned constant, the namespace `ingot-loadtest` and the +- [x] 1.2 Add `loadtest/lib/config.ts` with the k6 image tag as the single pinned constant, the namespace `ingot-loadtest` and the refusal of any other namespace. Verify: the test of 1.1 passes unchanged, and a unit test asserts that the refusal names the rejected namespace. - [ ] 1.3 Test: `loadtest/lib/artifacts.test.ts` asserts that the same seed yields identical artifact bytes and SHA-1 values on two @@ -25,66 +25,66 @@ Pull request: `test(load): add the typescript scaffolding for k6 load tests` `loadtest/lib/artifacts.ts` with the seeded generator for the sizes 1 KB, 1 MB, 50 MB and 200 MB, `loadtest/lib/auth.ts` and `loadtest/lib/checks.ts` for Basic and token headers and the shared checks, and `loadtest/lib/setup.ts`, which creates the fixtures in `setup()` through the admin API only (a unit test with a fake admin client asserts that no other client is called). -- [ ] 1.4 Test: `loadtest/lib/sizes.test.ts` asserts the five reference sizes N, T, S, M and L with their CPU and memory values, and +- [x] 1.4 Test: `loadtest/lib/sizes.test.ts` asserts the five reference sizes N, T, S, M and L with their CPU and memory values, and that the requests of every size equal its limits. Then add `loadtest/lib/sizes.ts`, the one file that defines them. -- [ ] 1.5 Add `loadtest/lib/thresholds.ts`, the one file that declares the thresholds of every scenario, and a unit test that +- [x] 1.5 Add `loadtest/lib/thresholds.ts`, the one file that declares the thresholds of every scenario, and a unit test that reads it and asserts that every scenario name of the design has a threshold entry. Every entry starts as `provisional` and is set from the first measured run (design.md D3). -- [ ] 1.6 Open the pull request `test(load): add the typescript scaffolding for k6 load tests` on main, with the template filled as the +- [x] 1.6 Open the pull request `test(load): add the typescript scaffolding for k6 load tests` on main, with the template filled as the maintainer's story. Verify with `gh pr view --json title,body,files`. ## 2. Resolve, deploy and mix scenarios (test(load)) Pull request: `test(load): add the resolve, deploy and mix scenarios` -- [ ] 2.1 Test: `loadtest/scenarios/resolve.test.ts` for the request list of a Maven and a Gradle client (pom, jar, `.sha1`, `.module`) +- [x] 2.1 Test: `loadtest/scenarios/resolve.test.ts` for the request list of a Maven and a Gradle client (pom, jar, `.sha1`, `.module`) against a fixture. Then add `loadtest/scenarios/resolve.ts` with the executor, the tag `scenario:resolve` and the expected status set. -- [ ] 2.2 Add `loadtest/scenarios/deploy.ts` (PUT of 1 KB, 1 MB, 50 MB and 200 MB artifacts, several versions concurrently, the 200 MB +- [x] 2.2 Add `loadtest/scenarios/deploy.ts` (PUT of 1 KB, 1 MB, 50 MB and 200 MB artifacts, several versions concurrently, the 200 MB body streamed from the generator of 1.3 and not held per virtual user). Verify the executor and the sizes against the artifacts of 1.3. -- [ ] 2.3 Add `loadtest/scenarios/mix.ts`, which combines `resolve` and `deploy` with weights set in one file. Test: the weights sum to 1 +- [x] 2.3 Add `loadtest/scenarios/mix.ts`, which combines `resolve` and `deploy` with weights set in one file. Test: the weights sum to 1 and every scenario present is in the mix. Later scenarios join the weights in group 3. - [ ] 2.4 Verify: each scenario runs with `k6 run --iterations 1` against an Ingot started locally with the default settings, and passes its checks. -- [ ] 2.5 Open the pull request `test(load): add the resolve, deploy and mix scenarios` on the branch of 1.6, with the template filled. +- [x] 2.5 Open the pull request `test(load): add the resolve, deploy and mix scenarios` on the branch of 1.6, with the template filled. Verify with `gh pr view --json title,body,files`. ## 3. Remaining function scenarios (test(load)) Pull request: `test(load): add the remaining function scenarios` -- [ ] 3.1 Add `loadtest/scenarios/resolve-miss.ts`: 404 answers on group repositories counted as expected through +- [x] 3.1 Add `loadtest/scenarios/resolve-miss.ts`: 404 answers on group repositories counted as expected through `http.expectedStatuses(200, 404)`. Verify with a unit test of the request list and the expected status set. -- [ ] 3.2 Add `loadtest/scenarios/metadata.ts` (snapshot `maven-metadata.xml`). -- [ ] 3.3 Add `loadtest/scenarios/mirror.ts`: a proxy repository against the in-cluster upstream mock of 5.3 only. A unit test asserts +- [x] 3.2 Add `loadtest/scenarios/metadata.ts` (snapshot `maven-metadata.xml`). +- [x] 3.3 Add `loadtest/scenarios/mirror.ts`: a proxy repository against the in-cluster upstream mock of 5.3 only. A unit test asserts that no URL in the scenario points outside the cluster. The live check runs in group 5 (task 5.3), and the scenario joins the mix only after that check passes. -- [ ] 3.4 Add `loadtest/scenarios/auth.ts` for Basic and token access to private repositories, and tag the requests so that the +- [x] 3.4 Add `loadtest/scenarios/auth.ts` for Basic and token access to private repositories, and tag the requests so that the credential cache can be read per scheme. -- [ ] 3.5 Add `loadtest/scenarios/search-browse.ts` (search API and directory listings) and `loadtest/scenarios/dashboard.ts` (login and +- [x] 3.5 Add `loadtest/scenarios/search-browse.ts` (search API and directory listings) and `loadtest/scenarios/dashboard.ts` (login and repository list). - [ ] 3.6 Extend `loadtest/scenarios/mix.ts` to all eight function scenarios with the weights of group 2. Test: the weights sum to 1 and every scenario is in the mix. -- [ ] 3.7 Open the pull request `test(load): add the remaining function scenarios` on the branch of 2.5, with the template filled. +- [x] 3.7 Open the pull request `test(load): add the remaining function scenarios` on the branch of 2.5, with the template filled. Verify with `gh pr view --json title,body,files`. ## 4. Capacity search profiles (test(load)) Pull request: `test(load): add the capacity search profiles` -- [ ] 4.1 Test: `loadtest/profiles/plateau.test.ts` for the step list of 60, 70, 80, 90 and 100 percent of a breakpoint, the default +- [x] 4.1 Test: `loadtest/profiles/plateau.test.ts` for the step list of 60, 70, 80, 90 and 100 percent of a breakpoint, the default hold of 15 minutes and the rejection of a hold under 10 minutes. Then add `loadtest/profiles/plateau.ts` as a pure function that returns the step list. No clock and no k6 runtime are read. -- [ ] 4.2 Test: `loadtest/lib/pass-rule.test.ts` for the pass rule of design.md D3 with a table: p95 under the threshold, error rate +- [x] 4.2 Test: `loadtest/lib/pass-rule.test.ts` for the pass rule of design.md D3 with a table: p95 under the threshold, error rate under 1 percent, zero dropped iterations, and a step that breaks in its last minute does not pass. Then add `loadtest/lib/pass-rule.ts`. -- [ ] 4.3 Test: `loadtest/lib/maximum.test.ts` for the maximum sustainable rate: the highest passing step, no maximum when no step +- [x] 4.3 Test: `loadtest/lib/maximum.test.ts` for the maximum sustainable rate: the highest passing step, no maximum when no step passes, and no maximum when the breakpoint was not reached. Then add `loadtest/lib/maximum.ts`. - [ ] 4.4 Add `loadtest/profiles/breakpoint.ts` (ramping arrival rate with `abortOnFail` and `delayAbortEval`, configurable ceiling), wire `loadtest/profiles/plateau.ts` to the `constant-arrival-rate` executors, and add `loadtest/profiles/soak.ts` (the maximum for 2 hours by default, configurable). Verify: the breakpoint profile reports a breakpoint against the local Ingot of 2.4 with a low ceiling. -- [ ] 4.5 Emit `ingot_load_step_passed` at the end of every plateau step, with the step rate as value and the `result` tag. Test: the +- [x] 4.5 Emit `ingot_load_step_passed` at the end of every plateau step, with the step rate as value and the `result` tag. Test: the metric name and the tag values are asserted by a unit test of the emitter with a fake sink. -- [ ] 4.6 Open the pull request `test(load): add the capacity search profiles` on the branch of 3.7, with the template filled. +- [x] 4.6 Open the pull request `test(load): add the capacity search profiles` on the branch of 3.7, with the template filled. Verify with `gh pr view --json title,body,files`. ## 5. Topology overlays and upstream mock (test(load)) @@ -93,52 +93,52 @@ Pull request: `test(load): add the topology overlays and the upstream mock` - [ ] 5.1 Add the overlays `loadtest/topologies/monolith.yaml`, `ha.yaml` and `split.yaml`. Verify: `helm template` with each overlay renders and the requests of every Ingot container equal its limits for each size of `loadtest/lib/sizes.ts`. -- [ ] 5.2 Add `loadtest/topologies/scalable.yaml` and `scalable-read-1.yaml`, `scalable-read-2.yaml`, `scalable-read-4.yaml` for the +- [x] 5.2 Add `loadtest/topologies/scalable.yaml` and `scalable-read-1.yaml`, `scalable-read-2.yaml`, `scalable-read-4.yaml` for the scaling series. These files render only after `add-worker-target` is merged, so they are added in this pull request only when that change is on main, and otherwise in a follow-up pull request. Verify: the read replica count of each rendered Deployment matches the file name. - [ ] 5.3 Add `loadtest/k8s/upstream-mock.yaml`: an nginx Deployment and Service in `ingot-loadtest` that serve fixed artifacts, with the latency set by a value. Verify: the mock answers with the bytes of the seeded artifacts of 1.3 at latency 0 and at a set latency, and the live check of the mirror scenario (3.3) passes against it. -- [ ] 5.4 Verify on every overlay that PostgreSQL, bucket and NATS settings are identical across overlays. -- [ ] 5.5 Open the pull request `test(load): add the topology overlays and the upstream mock` on the branch of 4.6, with the template +- [x] 5.4 Verify on every overlay that PostgreSQL, bucket and NATS settings are identical across overlays. +- [x] 5.5 Open the pull request `test(load): add the topology overlays and the upstream mock` on the branch of 4.6, with the template filled. Verify with `gh pr view --json title,body,files`. ## 6. k6-operator runner (test(load)) Pull request: `test(load): add the k6-operator runner` -- [ ] 6.1 Test: `loadtest/runner/testrun.test.ts` for the `TestRun` manifest built from the options: the namespace, the `parallelism`, the +- [x] 6.1 Test: `loadtest/runner/testrun.test.ts` for the `TestRun` manifest built from the options: the namespace, the `parallelism`, the ConfigMap name of the archive, the image tag from `config.ts` and the anti-affinity to the Ingot pods on the node hostname. Then add `loadtest/runner/testrun.ts`. -- [ ] 6.2 Test: `loadtest/runner/steps.test.ts` for the order of the runner steps (install, wait for readiness, archive, apply, wait for +- [x] 6.2 Test: `loadtest/runner/steps.test.ts` for the order of the runner steps (install, wait for readiness, archive, apply, wait for completion, record, uninstall) and for the uninstall running after a failed step. The record step is an injected writer that group 8 implements. Then add `loadtest/runner/main.ts` and `loadtest/runner/steps.ts`. No `sleep`: waits use deadlines from an injected clock. - [ ] 6.3 Add the `k6 archive` step that packs the scenario and the libraries into the ConfigMap. Verify: `npm run load -- --topology monolith --profile breakpoint --scenario resolve` runs end to end on the cluster and uninstalls its release. This first cluster run sets the provisional thresholds (design.md D3), with abort on fail disabled. -- [ ] 6.4 Verify: a `TestRun` with a target namespace other than `ingot-loadtest` is refused by the runner before any `kubectl` call. -- [ ] 6.5 Test: `loadtest/runner/nodes.test.ts` for the reference node check: a reference run with fewer labelled nodes than the topology +- [x] 6.4 Verify: a `TestRun` with a target namespace other than `ingot-loadtest` is refused by the runner before any `kubectl` call. +- [x] 6.5 Test: `loadtest/runner/nodes.test.ts` for the reference node check: a reference run with fewer labelled nodes than the topology needs is refused before the install, with the found and the needed count; a non-reference run skips the check and is marked `reference: false`. Then add `loadtest/runner/nodes.ts` with the label name read from `config.ts`. -- [ ] 6.6 Test: `loadtest/runner/environment.test.ts` asserts that the environment built by the runner sets +- [x] 6.6 Test: `loadtest/runner/environment.test.ts` asserts that the environment built by the runner sets `K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true`, the `experimental-prometheus-rw` output and the tags `testid`, `topology`, `scenario`, `profile` and `ingot_version` on every sample. Then add `loadtest/runner/environment.ts`. -- [ ] 6.7 Open the pull request `test(load): add the k6-operator runner` on the branch of 5.5, with the template filled. Verify with +- [x] 6.7 Open the pull request `test(load): add the k6-operator runner` on the branch of 5.5, with the template filled. Verify with `gh pr view --json title,body,files`. ## 7. Grafana dashboard (test(load)) Pull request: `test(load): add the load test grafana dashboard` -- [ ] 7.1 Test: `loadtest/grafana/dashboard.test.ts` reads `loadtest/grafana/ingot-load-tests.json` and asserts that the variables +- [x] 7.1 Test: `loadtest/grafana/dashboard.test.ts` reads `loadtest/grafana/ingot-load-tests.json` and asserts that the variables `testid`, `topology`, `scenario` and `size` exist, with `size` offering the five values of `loadtest/lib/sizes.ts`, and that the panels named in the design exist (target versus achieved rate, p50, p95 and p99 per scenario, error rate, dropped iterations, active VUs, bytes per second, server CPU, heap and GC, database pool active and pending, storage latency per pod, the maximum table and the topology bar chart). - [ ] 7.2 Add `loadtest/grafana/ingot-load-tests.json` with the panels, the annotations at step changes and the maximum table grouped by `topology` and `size`. Verify: the dashboard loads in Grafana against the Mimir datasource and the panels show data for one test run. -- [ ] 7.3 Open the pull request `test(load): add the load test grafana dashboard` on the branch of 6.7, with the template filled. Verify +- [x] 7.3 Open the pull request `test(load): add the load test grafana dashboard` on the branch of 6.7, with the template filled. Verify with `gh pr view --json title,body,files`. ## 8. Result records and the reference capacities page (test(load)) @@ -148,15 +148,15 @@ Pull request: `test(load): add result records and the reference capacities page` - [ ] 8.1 Test: `loadtest/runner/record.test.ts` for the result record: the fields of design.md D13, an outcome of `not-ready` or `oom-killed` with its step instead of a rate when a pod never became ready or was OOM-killed, and one file per topology, size and scenario. Then add `loadtest/runner/record.ts` and wire it as the record step of `loadtest/runner/steps.ts`. -- [ ] 8.2 Test: `loadtest/runner/capacities.test.ts` for the generator: only the core scenarios `mix`, `resolve` and `deploy` are +- [x] 8.2 Test: `loadtest/runner/capacities.test.ts` for the generator: only the core scenarios `mix`, `resolve` and `deploy` are published, a non-reference record contributes no value, every topology, size and core scenario has a cell (90 cells), and an `oom-killed` record reads "not supported at this size". Then add `loadtest/runner/capacities.ts`. - [ ] 8.3 Run `loadtest/runner/capacities.ts` to write `docs/gitbook/references/reference-capacities.md` with the method, the hardware and the note that the values are measured reference values, not guarantees. Add the page under "References" in `docs/gitbook/SUMMARY.md`. -- [ ] 8.4 Add `docs/gitbook/contributing/run-the-load-tests.md`: a how-to with the prerequisites, the runner command, the profiles, how +- [x] 8.4 Add `docs/gitbook/contributing/run-the-load-tests.md`: a how-to with the prerequisites, the runner command, the profiles, how to read the maximum table, the node pool and time-of-day note, the run budget, and the on-demand scenarios that are not published. Add the page under "Contributing" in `docs/gitbook/SUMMARY.md`. - [ ] 8.5 Verify: every link on the two pages resolves inside `docs/gitbook`, and the pages name no cluster host, credential or Mimir endpoint. -- [ ] 8.6 Open the pull request `test(load): add result records and the reference capacities page` on the branch of 7.3, with the +- [x] 8.6 Open the pull request `test(load): add result records and the reference capacities page` on the branch of 7.3, with the template filled, as the last pull request of the stack. Verify with `gh pr view --json title,body,files`. diff --git a/openspec/changes/add-login-challenge-extension/tasks.md b/openspec/changes/add-login-challenge-extension/tasks.md index 20cbc25e7f..05b82b9144 100644 --- a/openspec/changes/add-login-challenge-extension/tasks.md +++ b/openspec/changes/add-login-challenge-extension/tasks.md @@ -12,7 +12,7 @@ is an injected `java.time.Clock`, a temporary directory per test, and no shared Depends on pull request 1 of `add-login-protection` (per-account throttle), merged into the remote main branch. -- [ ] 1.1 `test(identity)`: failing tests: with no provider registered, a delayed dashboard login is answered `429` with no +- [x] 1.1 `test(identity)`: failing tests: with no provider registered, a delayed dashboard login is answered `429` with no challenge; with a provider registered, it is asked only for a delayed dashboard login and never for Basic or Bearer; a verified challenge lets one password check through, and a wrong password continues the delay; a plugin compiled against the previous plugin API still loads (the default methods); a login request without `challenge` is answered as before; a @@ -20,7 +20,7 @@ Depends on pull request 1 of `add-login-protection` (per-account throttle), merg `challenge` sent for a name that is not delayed is ignored; a failing provider falls back to the plain `429`; a verified challenge with the right password of a user with a second factor gets `SecondFactorRequiredResponse`. Verify: the tests fail before 1.2. -- [ ] 1.2 `feat(identity)`: add `LoginChallengeProvider` to the plugin API with default methods, the selection in `PluginLoader` +- [x] 1.2 `feat(identity)`: add `LoginChallengeProvider` to the plugin API with default methods, the selection in `PluginLoader` (at most one, the first by load order, with a warning when several are registered), the branch in `LoginService.login`, the optional `challenge` member (`ChallengeResponse`) of `LoginRequest`, and the `ChallengeRequest` answer of the login `429`. Verify: 1.1 passes, `gate-plugin-abi` reports only additive changes, and the OpenAPI snapshot changes only by the optional @@ -30,6 +30,6 @@ Depends on pull request 1 of `add-login-protection` (per-account throttle), merg ## 2. Open the pull request -- [ ] 2.1 Open the code pull request against `main` with the title `feat(identity): add a login challenge extension point for plugins`, +- [x] 2.1 Open the code pull request against `main` with the title `feat(identity): add a login challenge extension point for plugins`, after pull request 1 of `add-login-protection` is merged, with the sections of `.github/PULL_REQUEST_TEMPLATE.md` filled in. Verify: `gh pr view` shows the title and the base is `main`. diff --git a/openspec/changes/add-login-protection/tasks.md b/openspec/changes/add-login-protection/tasks.md index 9c97a77fb2..fefd761097 100644 --- a/openspec/changes/add-login-protection/tasks.md +++ b/openspec/changes/add-login-protection/tasks.md @@ -13,7 +13,7 @@ that contains the merged proposal, and contains no file under `openspec/`. - [x] 1.1 `docs(openspec): propose add-login-protection`: this change only, in its own proposal pull request from the remote main branch. Verify: `openspec validate add-login-protection --strict` passes and the dash grep prints nothing. -- [ ] 1.2 Record the behaviour of Maven 3.9 and Gradle 9 on a `429` with `Retry-After` from a remote repository, with a Basic +- [x] 1.2 Record the behaviour of Maven 3.9 and Gradle 9 on a `429` with `Retry-After` from a remote repository, with a Basic credential, and record the result in the description of pull request 1 (design open question 2). Verify: both clients are run against a local stub server in a temporary directory, and the exit code and the retry count are recorded. - [ ] 1.3 Confirm with the maintainer the default of design open questions 1 to 8 before pull request 1 is opened. Open question 9 @@ -49,7 +49,7 @@ Title: `feat(identity): throttle sign-in attempts per account across every crede `INGOT_LOGIN_ACCOUNT_THROTTLE` (fallback `REPOSILITE_LOGIN_ACCOUNT_THROTTLE`), default off. The eager dummy hash is not behind it (design open question 9). Verify: 2.1 to 2.5 pass, the default tests of 2.4 pass, and `:reposilite-backend:test --tests 'net.onelitefeather.ingot.identity.*'` stays green. -- [ ] 2.7 `feat(identity)`: move the per-address counter of `authentication.bruteForceProtection` from the Guava cache of +- [x] 2.7 `feat(identity)`: move the per-address counter of `authentication.bruteForceProtection` from the Guava cache of `AuthenticationFacade` into `login_attempt` under `basic-address|` (not `address|`, which the dashboard uses), keep its default off, use the injected clock, and add the atomic increment after the fifth conflicting write of `LoginAttemptLimiter.recordFailure`. Verify: a test for a counter that @@ -122,7 +122,7 @@ Title: `feat(identity): add an optional idle timeout for browser sessions` ## 6. Open the pull requests -- [ ] 6.1 Open the pull request for section 2 against `main` with the title `feat(identity): throttle sign-in attempts per account +- [x] 6.1 Open the pull request for section 2 against `main` with the title `feat(identity): throttle sign-in attempts per account across every credential path`, with the sections of `.github/PULL_REQUEST_TEMPLATE.md` filled in. Verify: `gh pr view` shows the title and the template sections, and the `Container images` check runs. - [x] 6.2 Open the pull request for section 3 against `main` with the title `feat(identity): check new passwords against breached diff --git a/openspec/changes/add-release-branches-and-backports/tasks.md b/openspec/changes/add-release-branches-and-backports/tasks.md index 6c6f7b2061..9c3fb532f8 100644 --- a/openspec/changes/add-release-branches-and-backports/tasks.md +++ b/openspec/changes/add-release-branches-and-backports/tasks.md @@ -8,7 +8,7 @@ builds and passes on its own. ## 1. Proposal -- [ ] 1.1 `docs(openspec): propose add-release-branches-and-backports`: this change and nothing else, branched from the remote +- [x] 1.1 `docs(openspec): propose add-release-branches-and-backports`: this change and nothing else, branched from the remote main. Verify: `openspec validate add-release-branches-and-backports --strict --no-interactive` passes and the dash grep from the proposal prints nothing. The proposal pull request is merged before the first code pull request is opened. @@ -19,7 +19,7 @@ builds and passes on its own. `versioning` key in the config file or not, and the release pull request title pattern for a branch. Record the answers in the first code pull request description. Verify: each claim in the design, section "Facts checked", is either confirmed or corrected in the design before group 6 starts. -- [ ] 2.2 The maintainer confirmed the open questions of the design (1 to 9) on 2026-11-17, in particular the window, cutting on a +- [x] 2.2 The maintainer confirmed the open questions of the design (1 to 9) on 2026-11-17, in particular the window, cutting on a major, the meaning of tag `X`, the label name and the archive method. Verify: the answers are recorded in design.md, section "Open questions, settled 2026-11-17". - [ ] 2.3 Sequencing: the maintainer decided on 2026-11-17 that pull request #22 (release 2.0.0) waits until groups 3 to 9 and @@ -27,27 +27,27 @@ builds and passes on its own. ## 3. Support lines -- [ ] 3.1 `ci(release)`: add `.github/scripts/render_support_tables.py` and its tests. The script reads `support-lines.json` and +- [x] 3.1 `ci(release)`: add `.github/scripts/render_support_tables.py` and its tests. The script reads `support-lines.json` and renders the support table and the label set; the tests cover a regular line, an LTS line with a later end of life date, and a regular line whose end of life date is wrong. Add `support-lines.json` with the lines as they are today. Verify: the tests pass and the script output is deterministic. -- [ ] 3.2 `docs(support)`: render the support table of `SUPPORT.md` and the `Supported Versions` table of `.github/SECURITY.md` +- [x] 3.2 `docs(support)`: render the support table of `SUPPORT.md` and the `Supported Versions` table of `.github/SECURITY.md` from the script, between marker comments, and state the window in `SUPPORT.md` as confirmed in 2.2. Do not touch the contact section of `.github/SECURITY.md`. Verify: running the script changes nothing in the two files. -- [ ] 3.3 `ci(release)`: add a `support-lines` job to `ci.yml` that runs the renderer in check mode, verifies the `backport:` +- [x] 3.3 `ci(release)`: add a `support-lines` job to `ci.yml` that runs the renderer in check mode, verifies the `backport:` labels and the existence of `release/.x` for each open non-latest line. Verify: the job fails on a deliberately wrong date in a test fixture and passes on the repository. ## 4. Release tags -- [ ] 4.1 `ci(release)`: add `.github/scripts/release_tags.py` and its tests. Pure functions: the newest tag across lines, the +- [x] 4.1 `ci(release)`: add `.github/scripts/release_tags.py` and its tests. Pure functions: the newest tag across lines, the highest version with a given major, the tag set for a release (`X.Y.Z`, `X.Y`, `X` and `latest` as decided in the design), and the refusal of a version outside the branch's line. Verify: the tests cover `1.1.2` on `release/1.1.x` with `2.0.0` present, and `2.0.0` on `main`, and pass without a network. ## 5. Workflow triggers on release branches -- [ ] 5.1 `ci(release)`: add `release/**` to the base or push branches of `ci.yml`, `heavy.yml`, `dco.yml`, `openapi-diff.yml` +- [x] 5.1 `ci(release)`: add `release/**` to the base or push branches of `ci.yml`, `heavy.yml`, `dco.yml`, `openapi-diff.yml` and `codeql.yml`. Verify: the workflows parse, and a pull request into a test release branch runs the checks of `main`. ## 6. Release Please on release branches @@ -59,10 +59,10 @@ builds and passes on its own. ## 7. Container images and jars -- [ ] 7.1 `ci(release)`: the image job takes its tags from `release_tags.py`, builds `nightly` only on `main`, and keeps SBOM and +- [x] 7.1 `ci(release)`: the image job takes its tags from `release_tags.py`, builds `nightly` only on `main`, and keeps SBOM and provenance for every release. Verify: the tags for a `1.1.2` release on a branch are `1.1.2`, `1.1` and `1` while no higher major exists, and no `latest`. -- [ ] 7.2 `ci(release)`: the `jar` job verifies its attestations with `--source-ref` set to the ref that built the jar, and +- [x] 7.2 `ci(release)`: the `jar` job verifies its attestations with `--source-ref` set to the ref that built the jar, and `heavy.yml` resolves the previous release of the same line on a branch. `.github/RELEASE.md` is updated in group 13, not here. Verify: the workflow parses and the heavy previous-release rule has a test in `release_tags.py`. @@ -80,7 +80,7 @@ builds and passes on its own. ## 10. Backport decisions -- [ ] 10.1 `ci(release)`: add `.github/scripts/backport_decision.py` and its tests: label parsing, the security-only rule (`fix(security)` +- [x] 10.1 `ci(release)`: add `.github/scripts/backport_decision.py` and its tests: label parsing, the security-only rule (`fix(security)` accepted, every other type refused, the breaking marker), and the refusal of a label for a line without a branch. Verify: each rule in the backports spec has a failing test first. @@ -100,14 +100,14 @@ builds and passes on its own. ## 13. Maintainer runbook -- [ ] 13.1 `docs(release)`: add a section "Release branches and backports" to `.github/RELEASE.md`, covering the cut, the manual cut +- [x] 13.1 `docs(release)`: add a section "Release branches and backports" to `.github/RELEASE.md`, covering the cut, the manual cut from the last tag, the backport label and the conflict steps, the window end, the branch protection and the rule that no release branch merges into `main`. Replace `--source-ref refs/heads/main` in `.github/RELEASE.md` with the ref that built the jar. Link the section from `.github/MAINTAINING.md` under "Versions". Verify: every command in the section runs on the throwaway repository. ## 14. Public documentation -- [ ] 14.1 `docs(support)`: update `docs/gitbook/release-notes/upgrade-changes.md` (supported upgrade paths for the lines), +- [x] 14.1 `docs(support)`: update `docs/gitbook/release-notes/upgrade-changes.md` (supported upgrade paths for the lines), `docs/gitbook/release-notes/release-notes.md` (how a release line and a backport appear in the changelog) and `VERSIONING.md` (the lines and the tags). The table in `SUPPORT.md` already comes from group 3. Verify: every link resolves and the pages agree with `support-lines.json`. diff --git a/openspec/changes/define-governance-and-community/tasks.md b/openspec/changes/define-governance-and-community/tasks.md index b2ffd908e0..c91bb7beb6 100644 --- a/openspec/changes/define-governance-and-community/tasks.md +++ b/openspec/changes/define-governance-and-community/tasks.md @@ -8,32 +8,32 @@ adds one sentence to that file (decision 1 of `design.md`). ## 1. Proposal -- [ ] 1.1 `docs(openspec): propose define-governance-and-community`: this change only, branched from the remote main. Verify: +- [x] 1.1 `docs(openspec): propose define-governance-and-community`: this change only, branched from the remote main. Verify: `openspec validate define-governance-and-community --strict` passes and the dash grep from the proposal prints nothing. The proposal PR is merged before the code PR is opened. ## 2. Maintainer input -- [ ] 2.1 Decided 2026-11-18: the rules of `GOVERNANCE.md` on main apply, as decision 1 of `design.md` records. The lead maintainer +- [x] 2.1 Decided 2026-11-18: the rules of `GOVERNANCE.md` on main apply, as decision 1 of `design.md` records. The lead maintainer decides a tie. Verify: the answer is recorded in the code pull request description, and `GOVERNANCE.md` keeps its roles and decision sections unchanged apart from the one added sentence. - [ ] 2.2 Open: the origin of the code of conduct wording. The text is kept (decision 3 of `design.md`), and it does not name the Contributor Covenant. The maintainer names a source. If the source is the Contributor Covenant or another licensed text, the maintainer decides on an attribution line under that licence, and the attribution is added in the same pull request. Verify: the decision is recorded in the pull request description. -- [ ] 2.3 Done on 2026-11-18: GitHub Discussions is enabled (`has_discussions` is `true`). Verify: the value is read again before the +- [x] 2.3 Done on 2026-11-18: GitHub Discussions is enabled (`has_discussions` is `true`). Verify: the value is read again before the code pull request is opened. ## 3. Governance and community links -- [ ] 3.1 `docs(community)`: in `GOVERNANCE.md`, add one sentence under "How decisions are taken": security reports follow +- [x] 3.1 `docs(community)`: in `GOVERNANCE.md`, add one sentence under "How decisions are taken": security reports follow `.github/SECURITY.md` and are not decided in public. Nothing else in the file changes, so the roles and the decision rules stay as they are on main. Verify: `git diff origin/main -- GOVERNANCE.md` shows one added line, the file has no `TODO(onelitefeather)` marker, and the sentence is present once. -- [ ] 3.2 Already on main: `.github/CONTRIBUTING.md` and `.github/README.md` link GitHub Discussions, and no community placeholder is +- [x] 3.2 Already on main: `.github/CONTRIBUTING.md` and `.github/README.md` link GitHub Discussions, and no community placeholder is left. No edit. Verify: `git grep -n 'TODO(onelitefeather)' -- .github GOVERNANCE.md` prints nothing, and the Discussions link answers HTTP 200. -- [ ] 3.3 `docs(community)`: in `.github/ISSUE_TEMPLATE/config.yml`, change the documentation contact link to +- [x] 3.3 `docs(community)`: in `.github/ISSUE_TEMPLATE/config.yml`, change the documentation contact link to `https://github.com/OneLiteFeatherNET/ingot/tree/main/docs/gitbook` (decision 4 of `design.md`), and change the header comment's sentence about the documentation site to say that documentation is in the `docs/gitbook` folder of this repository. The three TODO comments are already gone on main. The security entry and the commented upstream entry stay as they are. Verify: the file parses as @@ -41,9 +41,9 @@ adds one sentence to that file (decision 1 of `design.md`). ## 4. Verification -- [ ] 4.1 Relative links and the two external links in the changed files resolve (a markdown link check). Verify: the check +- [x] 4.1 Relative links and the two external links in the changed files resolve (a markdown link check). Verify: the check prints no broken link. -- [ ] 4.2 Decisions recorded: the code pull request description lists the answers of tasks 2.1 and 2.3, the open origin of task 2.2, +- [x] 4.2 Decisions recorded: the code pull request description lists the answers of tasks 2.1 and 2.3, the open origin of task 2.2, and the documentation link of decision 4 as decided on 2026-11-18. Verify: the description contains these answers and no contact address that the maintainer has not supplied. - [ ] 4.3 After merge on main: CLOMonitor passes `contributing` and `code_of_conduct`, and `github_discussions` passes once the @@ -51,7 +51,7 @@ adds one sentence to that file (decision 1 of `design.md`). ## 5. Pull request -- [ ] 5.1 Open the code pull request with the title `docs(community): define governance decisions and community links`. Read +- [x] 5.1 Open the code pull request with the title `docs(community): define governance decisions and community links`. Read `.github/PULL_REQUEST_TEMPLATE.md` and fill its sections. The description tells a new contributor what they find now when they look for help, and how a decision is reached, without file names. It carries no session link and no attribution line. Verify: `gh pr view --json title` shows the exact title, the commit-style hook accepts the title and every commit, and the body diff --git a/openspec/changes/recommend-postgresql/tasks.md b/openspec/changes/recommend-postgresql/tasks.md index 849a0d5520..0d5b103cd2 100644 --- a/openspec/changes/recommend-postgresql/tasks.md +++ b/openspec/changes/recommend-postgresql/tasks.md @@ -18,7 +18,7 @@ Heavy jobs go through `HEAVY_SLOTS=1 heavy`, one at a time, and Gradle runs with Type and scope: `fix(database)`. Prerequisite: `test-server-database-matrix` is on main (#121). Its proposal orders the label removal after the pool change, so the pull request description of 2.4 names that deviation for the maintainer to confirm. -- [ ] 2.1 `fix(database)`: search the documentation, the chart comments and the code comments for the stale sentences and +- [x] 2.1 `fix(database)`: search the documentation, the chart comments and the code comments for the stale sentences and record the lines. Verify: the search finds `DatabaseConnection.kt` (the comment above the `postgresql` branch), `LocalConfiguration.kt` (the "Experimental providers" comment that lists `postgresql`), `high-availability-support.md` (the row "PostgreSQL with several replicas" and the Coverage sentence), `run-on-kubernetes.md` (the lock hint and the diff --git a/openspec/changes/run-changed-tests-and-manual-heavy-ci/tasks.md b/openspec/changes/run-changed-tests-and-manual-heavy-ci/tasks.md index e13815e829..83d20a6478 100644 --- a/openspec/changes/run-changed-tests-and-manual-heavy-ci/tasks.md +++ b/openspec/changes/run-changed-tests-and-manual-heavy-ci/tasks.md @@ -84,12 +84,12 @@ Each is opened against `main` after its predecessors merge, with the sections of - [x] 8.7 Open `ci(heavy): decide which heavy jobs a pull request asks for` (4.1). - [x] 8.8 Open `ci(heavy): add the heavy workflow and its aggregate` (4.2). - [x] 8.9 Open `ci(heavy): start the container images job from a label` (4.3). -- [ ] 8.10 Open `ci(heavy): start the ha smoke test from a label` (4.4). +- [x] 8.10 Open `ci(heavy): start the ha smoke test from a label` (4.4). - [x] 8.11 Open `ci(heavy): start the dashboard end-to-end tests from a label` (4.5). -- [ ] 8.12 Open `ci(heavy): start the helm chart job from a label` (4.6). +- [x] 8.12 Open `ci(heavy): start the helm chart job from a label` (4.6). - [x] 8.13 Open `ci(heavy): run the integration suite from a label` (4.7). - [x] 8.14 Open `ci(heavy): start the search backends and codeql jobs from a label` (4.8). -- [ ] 8.15 Open `ci(heavy): require a full heavy run on the release pull request` (4.9). +- [x] 8.15 Open `ci(heavy): require a full heavy run on the release pull request` (4.9). - [x] 8.16 Open `ci(heavy): allow an on-demand heavy run on main` (4.10). - [ ] 8.17 Open `ci(heavy): smoke start the image and lint the chart` (5.1), if built. - [x] 8.18 Open `docs(contributing): explain how to run the heavy tests` (6.1).