Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
ae96dc6
fix(hooks): check only the plans a session wrote itself
ancongui Nov 10, 2026
d4aa673
fix(delivery): keep local evidence when only CI host settings change
ancongui Nov 10, 2026
39dd43a
fix(release): stop waiting for main to repeat a passed PR run
ancongui Nov 10, 2026
b4f2f91
fix(test): report test cases by id, prove node tests, hold wide runs
ancongui Nov 10, 2026
c5c9429
chore(release): 26.11.10
ancongui Nov 10, 2026
5b80dd5
docs(delivery): describe host-only CI evidence and the release shortcut
ancongui Nov 10, 2026
c189073
fix(test): read node test scripts word by word, hold only plain dev test
ancongui Nov 10, 2026
c90d437
fix(delivery): carry host-only evidence only when GitHub reads it alike
ancongui Nov 10, 2026
64797a6
fix(release): wait for main's jobs that the PR run did not pass
ancongui Nov 10, 2026
8f29edf
docs(delivery): describe job-by-job release and the stricter CI rule
ancongui Nov 10, 2026
c4cc0ea
fix(test): refuse entity reports, outside paths and piped node tests
ancongui Nov 10, 2026
530e308
fix(release): let only a matching own-repo PR run stand in for main
ancongui Nov 10, 2026
a7f4a0c
fix(test): write the JUnit prolog's byte order mark as an escape
ancongui Nov 10, 2026
800b846
fix(delivery): keep host-only evidence off while check configs are dirty
ancongui Nov 10, 2026
0389575
docs(delivery): match the release check's fork and job rules
ancongui Nov 10, 2026
d46ef52
test(test): use a node option every runner's Node has
ancongui Nov 10, 2026
34c595c
fix(test): run node once per test file so Node 22 cases keep their file
ancongui Nov 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,65 @@
All notable changes to devkit. Versions follow CalVer `YY.MM.PATCH` (PATCH restarts at 0 each month); tags are
`vYY.MM.PATCH`. Sections follow [Keep a Changelog](https://keepachangelog.com/).

## [26.11.10] - 2026-11-10

This release fixes what agents hit while shipping 26.11.9. `dev test prove` reports each case of a parametrized test
and proves `node --test` files instead of stopping at them, and plain `dev test` no longer starts hours of tests on a
long-lived branch. A release no longer waits for main to repeat a pull request run that already passed on the same
tree, and a change of CI host settings alone keeps its local CI evidence. The Stop hook asks a session only about the
plans it wrote itself.

### Fixed

- **`dev test prove` reported a parametrized test by its bare name.** A pytest test with `@pytest.mark.parametrize`
showed its function name under "fail with your change present" with another test's error, although every case
passed. Each case is now reported by its id (`test_label[None]`, `test_label[a]`) with its own result.
- **`dev test prove` stopped at the first test it could not run.** On a branch that also changed `node --test` files
(`test/*.mjs`), it answered "not a test file here" or "no test runner" and proved nothing. It now lists those files
under "not proven" with the reason and proves the rest. A package whose `package.json` test script runs
`node --test`, or runs its test scripts with `node`, gets a `node` runner: `dev test`, `dev test run`, and
`dev test prove` run its files with Node, a `node:test` case by its title and a plain test script as one test. A
script that builds before its tests (a `pretest` script, `tsc && node --test dist/test/`), passes a Node option
devkit does not know without `=`, or pipes or redirects its tests (`node --test | tee out.txt`), gets none: its
tests are listed as not proven instead of run on stale output or with a broken command line. Node before 24 (such
as Node 22) names no file in its JUnit report, so devkit runs node once per test file and each case belongs to its
file; it works on Node 20, 22, 24 and 26.
- **Plain `dev test` started hours of tests on a long-lived branch.** A branch 1,388 files from `main` selected 205 test
files, about 111 minutes. When a branch differs from its base in 100 or more files that reach 50 or more test files,
`dev test` now starts none of them, names the tests of the files you touched now as `dev test run <files>`, and
exits `2`; `dev test --affected` runs the whole selection. `dev test run`, with or without paths, starts what it
selects.
- **A change of CI host settings alone asked for a new local run.** A commit that changed only `timeout-minutes` in
`ci.yml` made `dev push` refuse for lack of local CI evidence, and `dev ci --run --resume` re-ran the whole test
step, though a local run cannot exercise a job timeout, a runner, or a concurrency group. When every file changed
since a tree with local evidence is a GitHub workflow that differs only in `timeout-minutes`, `concurrency`
(`group`, `cancel-in-progress`), or comments, that evidence now carries over once actionlint and `dev ci audit`
pass, and devkit says what it checked. An uncommitted change under `.github`, or to a `zizmor.yml` at the root,
keeps it off, since the checks read the files on disk. A change to a run command, a step, a trigger, the
permissions, the runner
(`runs-on`), or any other file still needs a local run, and so does a workflow that uses YAML anchors, aliases, merge
keys, tags, or directives.
- **`dev release` waited for main to repeat a passed pull request run.** It refused with "CI is still running" while
main's CI ran again on a merge commit whose tree the pull request run had already tested; the 26.11.9 release
waited about 35 minutes, twice. When HEAD's tree is the tree of a commit whose pull request run, from this
repository and not a fork, passed every job still running on HEAD in the same workflow file, it now releases
without waiting and names that commit. A job the pull request run did not pass, skipped ones included, holds the
release until it passes on HEAD, even before main lists it, and so does a job that already failed on HEAD.
- **The Stop hook asked a session to revise another session's plans.** It counts only the plans this session's own
tool calls wrote: an Edit or Write of the plan, or a shell command that names the plan and ran while it changed. A
session that moved its working folder to another checkout is again reminded about the plans it wrote; each plan is
judged by the project folder it is in.

### Security

- **A JUnit report could declare entities after a long comment.** `dev test` looked for a document type declaration
only in a report's first 4,096 characters, so a 5,333-character report expanded to a 1,000,000-character test name.
A declaration anywhere before the root element now refuses the report, and a failure that quotes an HTML page is
read again.
- **`dev test run` accepted a test file outside the repository.** `dev test run ../outside.test.js` ran it with the
repository's runner. A path whose real path is outside the repository, relative, absolute, or through a symlink, is
now refused with `no test runner for:` before anything runs.

## [26.11.9] - 2026-11-09

This release makes the first install work for someone who has never used a terminal, and gives Codex sessions the
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26.11.9
26.11.10
2 changes: 1 addition & 1 deletion desktop/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": "0.4",
"name": "devkit",
"display_name": "devkit",
"version": "26.11.9",
"version": "26.11.10",
"description": "Every repo in its place. Every agent on the same page. Your devkit portfolio, project status, tasks, CI and team, in Claude Desktop chat and Cowork.",
"long_description": "devkit connects Claude Desktop to **devkit** from Firefly Software Solutions Inc.: every repository in its place under ~/Development, one handoff repository that keeps each project's status, tasks, plans, lessons and session log, and the same rules for Claude Code, Codex and the team. Claude Code already uses devkit through its plugin; this extension brings it to Desktop chat and Cowork.\n\n**What you can ask**\n\n- **Where things stand:** the portfolio overview, one project's status, its tasks, a standup of the last days, and a status report for the team or management.\n- **Delivery:** live CI/CD runs with job progress and an ETA, and a project's delivery policy (versioning, test gate, release flow) with its gaps.\n- **Team and history:** who is working on what, devkit's crew of specialist agents and the decisions waiting for you, lessons learned, devkit's audit trail, its scheduled jobs, and a health check of the whole setup.\n- **Tasks:** add a task, or start, finish, block, unblock or release one. Changes go through the `dev` command, so devkit's guard and audit trail apply exactly as they do in the terminal.\n\nWhen Claude reports a project's status, it starts with the devkit status block (**[Firefly> DevKit]**), the same one Claude Code and Codex use.\n\n**Setting it up.** devkit must be installed on this Mac: run `./install.sh` in the devkit repository, which runs `dev setup`. The extension finds devkit on its own; set the devkit folder only if devkit is not where `dev setup` put it. The tools come from your devkit checkout, so `dev update` updates them without reinstalling the extension. It needs Python 3.9 or later, which comes with the macOS Command Line Tools.\n\n**Privacy.** Everything runs on your Mac through the `dev` command and reads your workspace and handoff repository. The project status, CI status and doctor tools ask GitHub or your CI provider through your existing sign-in (for example `gh auth login`); task changes are pushed to your own handoff repository. No token is stored by the extension.",
"author": {
Expand Down
13 changes: 13 additions & 0 deletions docs/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ dev delivery apply --set job_timeout_minutes=45 --why "integration tests take 35
job keeps its own limit (15 minutes for lint, 20 for builds, 30 for tests and integration tests); the security and
release jobs keep 20 and 30.

Changing a timeout needs no new local run. When every file changed since the last local run is a GitHub workflow that
differs only in `timeout-minutes`, `concurrency` (`group`, `cancel-in-progress`), or comments, `dev push`,
`dev pr create`, `dev pr ready`, and `dev release` keep that run's evidence once `actionlint` and `dev ci audit` pass
on the workflows, and say what they checked. A changed runner (`runs-on`), changed `permissions`, or a newly pinned
action changes what a local run exercises, so it needs one. The full rule is in
[Delivery › When only a CI host setting changed](delivery.md#when-only-a-ci-host-setting-changed).

## Set up a pipeline

`dev ci init` writes a pipeline for the detected stack and host. It reads the host from the `origin` remote (GitHub
Expand Down Expand Up @@ -389,6 +396,12 @@ counts as none, so nothing that stopped early is ever reported as passed:
| `timeout` | `3` | still `queued` or `running` | The watch ended first, after `--timeout` minutes (default 90); follow it with `dev ci status --watch`, or re-arm a wait |
| `none` | `4` | no run, or only `skipped`, `neutral`, or `stale` | Nothing verified the commit: the branch has no CI, its workflows skipped it, or origin is no CI host devkit reads |

`dev release` reads the runs of the commit it tags. It refuses when a run failed. While a run is still going, it
refuses too, unless a commit with the same tree passed, in its pull request run from this repository, every job
still running in the same workflow file: then it names that commit and releases without waiting for `main` to repeat
the run; a job the pull request run did not pass still holds it, even before `main` lists it (see
[Delivery › Release](delivery.md#6-release)).

For each failed run, devkit finds the failed jobs and steps and reads the failed log from its **first** error, because
the errors after it follow from it (`gh run view --log-failed` on GitHub, `glab ci trace` on GitLab; Bitbucket and
Azure give the job, the step, and the link). It sorts the error into one class and gives one next action:
Expand Down
19 changes: 10 additions & 9 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1104,22 +1104,22 @@ Tests and unfinished work. See [Testing](testing.md).
### `dev test [run | plan | prove | audit] [-p PROJECT]`

Runs only what a change can break: the tests that failed last time first, and when they pass, the tests that the
changed files can affect (the blast radius). It finds the project's runner (pytest, unittest, Jest, Vitest, Maven,
Gradle, Go, PHPUnit, or Pest) and prints a compact result: each failure with `file:line` and its first error line, and
the path to the full log.
changed files can affect (the blast radius). It finds the project's runner (pytest, unittest, Jest, Vitest, Node's
`node --test`, Maven, Gradle, Go, PHPUnit, or Pest) and prints a compact result: each failure with `file:line` and its
first error line, and the path to the full log.

| Command | Effect |
| --- | --- |
| `dev test` | Last failures first; if they pass, the affected tests |
| `dev test run [<paths>…] [--failed \| --affected \| --all]` | These test files, directories, or runner ids; or only the last failures, only the affected tests, or the full suite |
| `dev test` | Last failures first; if they pass, the affected tests. On a branch 100 or more files from its base whose changes reach 50 or more test files, it starts none of them and names the tests of the files you touched now (`dev test --affected` runs them all) |
| `dev test run [<paths>…] [--failed \| --affected \| --all]` | These test files, directories, or runner ids; or only the last failures, only the affected tests, or the full suite. With none of them, what `dev test` runs, and it starts a wide branch's selection too |
| `dev test plan [--all]` | What would run and why (changed file → tests), with the time estimate; runs nothing. `--all`: the whole suite, its full-run time, and the slowest files |
| `dev test prove [<tests>…] [--runs N]` | For each new or changed test, in a temporary copy: it passes `N` times with your change (default 5) and fails with the production files, and the changed test helpers and fixtures, restored from the base. Verdicts: proves the change, does not test the change, flaky, fails with the change, did not run without the change |
| `dev test prove [<tests>…] [--runs N]` | For each new or changed test, in a temporary copy: it passes `N` times with your change (default 5) and fails with the production files, and the changed test helpers and fixtures, restored from the base. Each case of a parametrized test has its own row. Verdicts: proves the change, does not test the change, flaky, fails with the change, did not run without the change. A test no runner here can run, or a named file that is no test, is listed as not proven with the reason |
| `dev test audit [<paths>…] [--changed] [--min-severity low\|medium\|high] [--rule RULE]` | Tests that cannot fail: no or trivial assertions, empty bodies, swallowed failures, skips without a reason, sleeps, and more. `--changed`: only test files changed on this branch, staged, unstaged, or untracked. Default severity shown: medium and up. `--rule` repeats |

| Option | Effect |
| --- | --- |
| `--since REF` | Compare with `REF` instead of the merge-base with `origin/<default>` (`run`, `plan`, `prove`, `audit`) |
| `--runner NAME` | Only this runner: `pytest`, `unittest`, `jest`, `vitest`, `maven`, `gradle`, `go`, `phpunit`, `pest` |
| `--runner NAME` | Only this runner: `pytest`, `unittest`, `jest`, `vitest`, `node`, `maven`, `gradle`, `go`, `phpunit`, `pest` |
| `-v`, `--verbose` | Stream the runner's full output (it streams to a terminal anyway) |
| `--json` | The result as JSON |
| `-p PROJECT` | Another project; put it before the subcommand: `dev test -p acme/billing plan` |
Expand All @@ -1135,8 +1135,9 @@ the path to the full log.
```

Exit codes: `0` when the tests pass or nothing needs to run, `1` when a test fails, and `2` when a selection ran no
test at all (a mistyped path, a filter that matches nothing) or no runner fits. `dev test prove` exits `1` unless every
test proves the change; `dev test audit` exits `1` on a high finding.
test at all (a mistyped path, a filter that matches nothing), no runner fits, or plain `dev test` did not start a wide
branch's selection. `dev test prove` exits `1` unless every test it ran proves the change, and `2` when no test is left
that a runner here can run; `dev test audit` exits `1` on a high finding.

### `dev stubs [<paths>…] [--staged | --since REF | --all] [--json] [-p PROJECT]`

Expand Down
39 changes: 39 additions & 0 deletions docs/delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,35 @@ description](templates.md#pull-request-description): what and why, changes, how
risk and rollback, links. `dev pr create` fills the changes, the local CI result, and the links, and refuses a PR
whose "What and why" or "How to verify" is still empty. The title is a Conventional Commit.

### When only a CI host setting changed

A local run cannot test how long a job may run or which runs cancel each other. When a commit changes only those
settings after a local run, such as a longer `timeout-minutes` for a slow test job, devkit keeps that run's evidence
instead of asking for a new one. The evidence carries over to HEAD when all of these hold:

- Every file changed since the tree with evidence is a GitHub workflow (`.github/workflows/*.yml`) that was edited,
not added or deleted.
- Each one differs only in `timeout-minutes`, `concurrency` (its `group` and `cancel-in-progress`), or comments. Two
checks must agree: devkit's reading of the workflow is the same once those settings are left out, and every added
or removed line is blank, a comment, or one of those settings.
- No changed workflow uses YAML anchors, aliases, merge keys, tags, or directives.
- Nothing under `.github`, and no `zizmor.yml` or `zizmor.yaml` at the root, has uncommitted changes, and
`actionlint` (`brew install actionlint`) and `dev ci audit` (no high or critical finding) pass on the workflows.

`dev push`, `dev pr create`, `dev pr ready`, `dev release`, and `dev ci --evidence` then record a host-only marker for
HEAD that names the run it rests on and what was checked, and say so:

```text
local CI evidence carried over: only CI host settings changed since the local run on c6fedeb (.github/workflows/ci.yml: jobs.test.timeout-minutes), which a local run cannot exercise · actionlint: no findings · dev ci audit: no high or critical finding
✓ local CI evidence for 23899fb: dev ci --mark-passed on c6fedeb, then CI host settings only (.github/workflows/ci.yml: jobs.test.timeout-minutes), just now
```

Any other change needs a local run: a run command, a step, a trigger, the permissions, the matrix, the runner
(`runs-on`), or another file. The refusal names the first difference, such as
`.github/workflows/ci.yml changed jobs.test.steps[1].run, which a local run exercises`. `dev ci --run --resume` keeps a
passed step after a host-only change, except a scanner that reads every file (such as gitleaks, semgrep, trivy, Vale,
or `dev sec scan`), which runs again because it reads the workflow too.

### Back up early, CI once

"Push once" protects CI time, not your work: a commit that exists only on this Mac is lost with the disk. Back up
Expand Down Expand Up @@ -271,6 +300,16 @@ Release by the recorded policy (see [The delivery policy](#the-delivery-policy))
CI evidence, and the CI of the commit. It also refuses while work items linked to branches merged since the
previous tag are still open: close the shipped ones (`dev task reconcile --apply`), or give `--why "<reason>"`.
`dev calver` gives the next CalVer version.

A failed run on the commit refuses the release. A run still in progress does not hold it when a pull request run
already passed the same tree: `dev release` looks for a commit with HEAD's tree whose pull request run, from this
repository and not a fork, passed every job still running or queued on HEAD (a job with the same name, in the
same workflow file, that succeeded, not skipped), first among HEAD's parents (a merge commit's second parent is the
PR's head), then among the PR heads GitHub links to HEAD (a squash or rebase merge). It names that commit (and the
PR, when GitHub linked it) and releases without waiting. A skipped, still running, or push-only run does not count,
and a job the PR run did not pass holds the release until it passes on HEAD, even before HEAD lists it. When
`main` moved on before the merge, `dev release` still refuses until the run on HEAD ends
(`dev ci status --watch`).
4. Download or install the published artifact and smoke-test it.
5. Update the handoff note (version, what shipped, follow-ups), and mark done with `dev task done <id>` any task that
shipped without a branch of its own.
Expand Down
Loading
Loading