diff --git a/CHANGELOG.md b/CHANGELOG.md index cdedccc7..33a1dc2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ ## Unreleased +## [0.2.1] - 2026-11-19 + +- Upgrading from 0.2.0: upgrade forward only. Logs created or written by 0.2.1 use log format 25 and cannot be opened by 0.2.0. A new work log starts at format 25; a log that already has records stays at its format until a person posts `format_raised` (see [upgrades](docs/upgrades.md)), and the raise cannot be undone, so back it up first. To start fresh with this release, check out `v0.2.1` and run `KBL_IMAGE_TAG=v0.2.1 dev/quickstart.sh`. +- Added: A triage policy accepts routine triage without a person. Set `KBL_TRIAGE_POLICY_FILE` to a JSON file of rules over what triage recorded (`tiers`, `areas`, `deny_areas`, `types`, `sizes`, `deny_needs`); when a finished, plain triage matches a rule the tracker writes `accepted` as itself with the rule's name in `admitted_by`, and everything else stays in Needs you. A person can take a policy acceptance back from the dashboard (`undo_admission`, `POST /v1/work/proposals/undo-admission`), which returns the root to Triage and keeps the policy off it. The dashboard shows "Admitted by policy " on the item and in its history. This is log format 25, so raise the format before the policy runs; with no policy file a person accepts each triage. +- Added: A supervise profile can set `git_identity = { name, email }`, which `kbl-mcp` turns into the four `GIT_AUTHOR_*` and `GIT_COMMITTER_*` variables for that worker (`set_env` wins if both name one). The email is checked when the config loads. The profile docs show how to turn off Claude Code's `Co-Authored-By` trailer and PR footer, which fail CLA checks. +- Changed: Dashboard: the board keeps its column widths when the item panel is open (the panel floats over the right edge), phone filters fold behind one Filters button, Save view is a bordered button, a stopped dashboard says "Your session ended." with the code in a details line, the Stop button lines up in the phone worker block, and a finished or stopped worker shows nothing for an unrecorded vendor or model and "Nothing held" instead of "None" (#465, #466, #467, #468, #469, #470). + The item panel leads with the upstream reference and keeps the item id beside it, a pull request address reads owner/repo#N, child work is one compact row (kind, state, holder) on the board, in the list and in the panel, and the stage no longer shows a stale triage state next to a linked fix. +- Changed: The stored fold results in `wasm/golden` change: `format_25` is new, and `every_record` now shows `policy_held` on the root its `reopened` record returns to Triage, because a reopened root waits for a person and the triage policy leaves it alone. +- Changed: Admitted roots now wait for their triage to be accepted, by a person or by a triage policy, before any agent is handed their fix. Admit mode no longer writes `accepted` for a rule that runs triage, so `work_next` and `work_peek` show triage and augment first. This applies at every log format, so it is a behaviour change on upgrade: to keep the old auto-accept for issues that are already well specified, set `"triage": "skip"` on the rule. The intake rule's tier is kept as the last choice: an accept takes a person's tier, then triage's, then the rule's (`intake_tier`, format 25). +- Changed: From format 25, finishing a fix cancels triage and augment items nobody holds and that have no recorded work instead of refusing with `open_children`. Any other open child still blocks it, and the refusal now names each one and who holds it. +- Fixed: The dev scripts (`dev/ingest.mjs`, `dev/connect.mjs`, `dev/agents.mjs`) find `kbl-ingest` and `kbl-mcp` on `PATH`, after the flag, the environment variable, the build directories, `~/.kbl/bin` and `dev/state/bin`, and the not-found error lists every place. `dev/ingest.mjs` keeps the `agent-ok` label default only when no filter is given: `--milestone` or `--exclude-label` alone no longer AND with it, the rule is named after all its filters, and the effective rule is printed before the check (#474). +- Fixed: The dashboard's sidebar count for All work is the number the list shows, with the sub-tasks beside it (for example 257 and +514, with a hover title) while Child cards is off; with Child cards on every item is a card and the count has no note (#475). +- Fixed: A new work log starts at the current format, so a fresh stack's `supervise_start` launches workers with no `format_raised` by hand. A log that already has records keeps its format until a person raises it. Every refusal for the format now says which record needs which format, the log's format, and that a person raises it with `format_raised`; `supervise_status` shows it as `paused_because`, `GET /v1/me` reports each team's `log_format`, and `dev/quickstart.sh` prints it with the command to raise a log that is behind. +- Documentation: The supervise profile examples pass `USER` (macOS needs it for Claude Code's saved login) and say what to do when workers exit with "Not logged in". + ## [0.2.0] - 2026-11-19 - Upgrading from 0.1.0: 0.2.0 reads every 0.1.0 log as it is. The work log format goes from 13 to 24, and nothing raises it for you. A log stays at 13 until a person posts `format_raised` (`to` up to 24; see [upgrades](docs/upgrades.md)), and a feature that needs a newer format is refused with `format` until then. Upgrade the tracker first, then ingest, `kbl-mcp` and the dashboard, and raise the format last, once no 0.1.0 build is still running: a 0.1.0 reader stops at a record above 13. The raise cannot be undone, so take a backup first. Each format's feature and its raise are in the Formats table of that page. diff --git a/Cargo.lock b/Cargo.lock index 86e2842c..935da888 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1218,7 +1218,7 @@ dependencies = [ [[package]] name = "kbl-core" -version = "0.2.0" +version = "0.2.1" dependencies = [ "base64 0.22.1", "serde", @@ -1228,7 +1228,7 @@ dependencies = [ [[package]] name = "kbl-ingest" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "axum", @@ -1251,7 +1251,7 @@ dependencies = [ [[package]] name = "kbl-mcp" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "base64 0.22.1", @@ -1277,7 +1277,7 @@ dependencies = [ [[package]] name = "kbl-metrics" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "axum", @@ -1289,7 +1289,7 @@ dependencies = [ [[package]] name = "kbl-tool" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "clap", @@ -1305,7 +1305,7 @@ dependencies = [ [[package]] name = "kbl-trace" -version = "0.2.0" +version = "0.2.1" dependencies = [ "http", "opentelemetry", @@ -1321,7 +1321,7 @@ dependencies = [ [[package]] name = "kbl-tracker" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "axum", @@ -1344,7 +1344,7 @@ dependencies = [ [[package]] name = "kbl-wasm" -version = "0.2.0" +version = "0.2.1" dependencies = [ "kbl-core", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index c8c21c74..9d59cdc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["core", "wasm", "tool", "mcp", "tracker", "ingest", "metrics", "trace resolver = "3" [workspace.package] -version = "0.2.0" +version = "0.2.1" edition = "2024" rust-version = "1.97" license = "MIT" diff --git a/README.md b/README.md index 19001247..e59e50ff 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,11 @@ dev/quickstart.sh the stack can pull them instead of building: ```bash -KBL_IMAGE_TAG=v0.1.0 dev/quickstart.sh +KBL_IMAGE_TAG=v0.2.1 dev/quickstart.sh ``` With `KBL_IMAGE_TAG` set, the script never builds. It refuses a checkout whose version differs from the tag -("check out v0.1.0, or unset KBL_IMAGE_TAG to build") and prints at the start whether it is pulling or building. +("check out v0.2.1, or unset KBL_IMAGE_TAG to build") and prints at the start whether it is pulling or building. Download `kbl-mcp`, `kbl-tool` and `kbl-ingest` from the same release ([Getting the binaries](#getting-the-binaries)). The images exist only after the first tag. The tracker, dashboard and every `dev/*.mjs` script need only Node and the @@ -347,7 +347,7 @@ binaries on your `PATH`. Each archive and `SHA256SUMS` carry a signed attestatio them; `gh attestation verify` (GitHub CLI 2.49 or later) checks it, and `SHA256SUMS` catches a corrupt download: ```bash -tag=v0.1.0 # the release you want +tag=v0.2.1 # the release you want target=x86_64-unknown-linux-gnu # or aarch64-unknown-linux-gnu, aarch64-apple-darwin, x86_64-apple-darwin base=https://github.com/GetFelix/KBL/releases/download/$tag curl -fLO "$base/kbl-$tag-$target.tar.gz" -O "$base/SHA256SUMS" diff --git a/changelog.d/465-dashboard-review-followups.changed.md b/changelog.d/465-dashboard-review-followups.changed.md deleted file mode 100644 index 443fdb9e..00000000 --- a/changelog.d/465-dashboard-review-followups.changed.md +++ /dev/null @@ -1,2 +0,0 @@ -Dashboard: the board keeps its column widths when the item panel is open (the panel floats over the right edge), phone filters fold behind one Filters button, Save view is a bordered button, a stopped dashboard says "Your session ended." with the code in a details line, the Stop button lines up in the phone worker block, and a finished or stopped worker shows nothing for an unrecorded vendor or model and "Nothing held" instead of "None" (#465, #466, #467, #468, #469, #470). -The item panel leads with the upstream reference and keeps the item id beside it, a pull request address reads owner/repo#N, child work is one compact row (kind, state, holder) on the board, in the list and in the panel, and the stage no longer shows a stale triage state next to a linked fix. diff --git a/changelog.d/474-dev-scripts-path.fixed.md b/changelog.d/474-dev-scripts-path.fixed.md deleted file mode 100644 index 6c9eba0b..00000000 --- a/changelog.d/474-dev-scripts-path.fixed.md +++ /dev/null @@ -1 +0,0 @@ -The dev scripts (`dev/ingest.mjs`, `dev/connect.mjs`, `dev/agents.mjs`) find `kbl-ingest` and `kbl-mcp` on `PATH`, after the flag, the environment variable, the build directories, `~/.kbl/bin` and `dev/state/bin`, and the not-found error lists every place. `dev/ingest.mjs` keeps the `agent-ok` label default only when no filter is given: `--milestone` or `--exclude-label` alone no longer AND with it, the rule is named after all its filters, and the effective rule is printed before the check (#474). diff --git a/changelog.d/475-all-work-count.fixed.md b/changelog.d/475-all-work-count.fixed.md deleted file mode 100644 index c2e3d2ef..00000000 --- a/changelog.d/475-all-work-count.fixed.md +++ /dev/null @@ -1 +0,0 @@ -The dashboard's sidebar count for All work is the number the list shows, with the sub-tasks beside it (for example 257 and +514, with a hover title) while Child cards is off; with Child cards on every item is a card and the count has no note (#475). diff --git a/changelog.d/476-golden-fold.changed.md b/changelog.d/476-golden-fold.changed.md deleted file mode 100644 index 561c7e45..00000000 --- a/changelog.d/476-golden-fold.changed.md +++ /dev/null @@ -1 +0,0 @@ -The stored fold results in `wasm/golden` change: `format_25` is new, and `every_record` now shows `policy_held` on the root its `reopened` record returns to Triage, because a reopened root waits for a person and the triage policy leaves it alone. diff --git a/changelog.d/476-triage-policy.added.md b/changelog.d/476-triage-policy.added.md deleted file mode 100644 index 4c03b980..00000000 --- a/changelog.d/476-triage-policy.added.md +++ /dev/null @@ -1 +0,0 @@ -A triage policy accepts routine triage without a person. Set `KBL_TRIAGE_POLICY_FILE` to a JSON file of rules over what triage recorded (`tiers`, `areas`, `deny_areas`, `types`, `sizes`, `deny_needs`); when a finished, plain triage matches a rule the tracker writes `accepted` as itself with the rule's name in `admitted_by`, and everything else stays in Needs you. A person can take a policy acceptance back from the dashboard (`undo_admission`, `POST /v1/work/proposals/undo-admission`), which returns the root to Triage and keeps the policy off it. The dashboard shows "Admitted by policy " on the item and in its history. This is log format 25, so raise the format before the policy runs; with no policy file a person accepts each triage. diff --git a/changelog.d/478-fresh-log-format.fixed.md b/changelog.d/478-fresh-log-format.fixed.md deleted file mode 100644 index 5207c238..00000000 --- a/changelog.d/478-fresh-log-format.fixed.md +++ /dev/null @@ -1 +0,0 @@ -A new work log starts at the current format, so a fresh stack's `supervise_start` launches workers with no `format_raised` by hand. A log that already has records keeps its format until a person raises it. Every refusal for the format now says which record needs which format, the log's format, and that a person raises it with `format_raised`; `supervise_status` shows it as `paused_because`, `GET /v1/me` reports each team's `log_format`, and `dev/quickstart.sh` prints it with the command to raise a log that is behind. diff --git a/changelog.d/481-admit-waits-for-triage.changed.md b/changelog.d/481-admit-waits-for-triage.changed.md deleted file mode 100644 index 9eb0fff9..00000000 --- a/changelog.d/481-admit-waits-for-triage.changed.md +++ /dev/null @@ -1 +0,0 @@ -Admitted roots now wait for their triage to be accepted, by a person or by a triage policy, before any agent is handed their fix. Admit mode no longer writes `accepted` for a rule that runs triage, so `work_next` and `work_peek` show triage and augment first. This applies at every log format, so it is a behaviour change on upgrade: to keep the old auto-accept for issues that are already well specified, set `"triage": "skip"` on the rule. The intake rule's tier is kept as the last choice: an accept takes a person's tier, then triage's, then the rule's (`intake_tier`, format 25). diff --git a/changelog.d/481-finish-cancels-moot-triage.changed.md b/changelog.d/481-finish-cancels-moot-triage.changed.md deleted file mode 100644 index a62f378f..00000000 --- a/changelog.d/481-finish-cancels-moot-triage.changed.md +++ /dev/null @@ -1 +0,0 @@ -From format 25, finishing a fix cancels triage and augment items nobody holds and that have no recorded work instead of refusing with `open_children`. Any other open child still blocks it, and the refusal now names each one and who holds it. diff --git a/changelog.d/484-worker-git-identity.added.md b/changelog.d/484-worker-git-identity.added.md deleted file mode 100644 index 949e16f4..00000000 --- a/changelog.d/484-worker-git-identity.added.md +++ /dev/null @@ -1 +0,0 @@ -A supervise profile can set `git_identity = { name, email }`, which `kbl-mcp` turns into the four `GIT_AUTHOR_*` and `GIT_COMMITTER_*` variables for that worker (`set_env` wins if both name one). The email is checked when the config loads. The profile docs show how to turn off Claude Code's `Co-Authored-By` trailer and PR footer, which fail CLA checks. diff --git a/changelog.d/supervise-pass-env-user.documentation.md b/changelog.d/supervise-pass-env-user.documentation.md deleted file mode 100644 index 018d09f6..00000000 --- a/changelog.d/supervise-pass-env-user.documentation.md +++ /dev/null @@ -1 +0,0 @@ -The supervise profile examples pass `USER` (macOS needs it for Claude Code's saved login) and say what to do when workers exit with "Not logged in". diff --git a/deploy/helm/kbl/Chart.yaml b/deploy/helm/kbl/Chart.yaml index 0e5fd0b9..e30db8da 100644 --- a/deploy/helm/kbl/Chart.yaml +++ b/deploy/helm/kbl/Chart.yaml @@ -3,8 +3,8 @@ name: kbl description: The KBL work tracker, its dashboard and optionally the ingest worker. Felix is installed separately. type: application # Both move with the workspace version; scripts/lint.mjs fails when they drift. -version: 0.2.0 -appVersion: 0.2.0 +version: 0.2.1 +appVersion: 0.2.1 kubeVersion: ">=1.27.0-0" home: https://github.com/GetFelix/KBL sources: diff --git a/dev/check-upgrade.mjs b/dev/check-upgrade.mjs index 14ef1237..e0644031 100644 --- a/dev/check-upgrade.mjs +++ b/dev/check-upgrade.mjs @@ -7,10 +7,9 @@ // 3. the previous build takes over again, which is a rollback before the // format is raised: w2 finishes there and w1 takes the last item; // 4. this build comes back and finishes the log's story. -// Every record either build wrote is of the first format, each item was -// claimed and done once, and neither build refused a record of the other. -// Both builds write format 1 only, so this does not show a reader stopping at -// a newer format: the unit tests of core, the tracker and the page do. +// Each item was claimed and done once, and neither build refused a record of the other. +// Both builds write the formats a fresh log starts at, so this does not show +// a reader stopping at a newer format: the unit tests of core, the tracker and the page do. // // KBL_TRACKER_OLD and KBL_MCP_OLD name the previous build's binaries. // cargo build -p kbl-mcp -p kbl-tool -p kbl-tracker && node dev/check-upgrade.mjs @@ -104,7 +103,6 @@ try { await w1.tool("work_complete", { item: c }); const records = mine(); - check(records.every((r) => r.v === undefined), "every record either build wrote is of the first format"); for (const id of [a, b, c]) { const of = records.filter((r) => r.item === id); check( diff --git a/dev/quickstart.sh b/dev/quickstart.sh index 1905c5b6..184c3414 100755 --- a/dev/quickstart.sh +++ b/dev/quickstart.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # The quick start: Felix, felix-gateway, the work tracker and the dashboard, # built and run in containers on this machine (or pulled, with KBL_IMAGE_TAG -# set to a release such as v0.1.0). See "Quick start" in README.md. +# set to a release such as v0.2.1). See "Quick start" in README.md. set -euo pipefail cd "$(dirname "$0")" export KBL_QUICKSTART=1