Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
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.18] - 2026-11-13

### Fixed

- **Diagnostics.** The handoff size check counts authored text rather than complete generated auto and Tasks
blocks; malformed or incomplete blocks still count. Audit publication warnings now explain the existing size
hold and local verification without claiming that a released version provides daily segments.
- **Codex crew.** A child tool hook can recover a missed registration when the parent launch and child metadata
agree. Reopened work keeps its valid owner, while reassignment revokes obsolete write scope and old launches
cannot acquire a new run's assignments. Missing or conflicting evidence grants no ownership; recovery still
requires a genuine child lifecycle or tool hook from Codex.
- **Dashboard.** Keep month and current-day labels inside roadmap timelines at phone widths,
including month boundaries reached in a different timezone.
- **Approvals.** Decisions and typed grants can name another repository with `--repo owner/repository`.
The displayed approval and its verified evidence retain that scope; legacy approvals keep their original
repository. Scope mismatches explain both repositories and leave the approval unused.
- **Browser tools.** Opening a local tab with Claude in Chrome no longer requires an external-message grant.
The exact tool remains subject to write-lane controls; other external operations remain guarded.
- **Initial commits.** An empty GitHub origin no longer makes every current feature branch look like the
protected default. Devkit validates GitHub's declared default; unavailable or invalid metadata remains guarded.
- **Tests.** Continuity fixtures use recent request timestamps when their readers use the real clock, so the
seven-day retention policy no longer makes unrelated provider-isolation and hook tests expire.
- **Releases.** `dev release` excludes verified GitHub Dependabot update automation from release CI, so a failed
dependency update proposal does not block a commit whose CI passed. The API must confirm the exact run,
repositories, commit, event, path, and bot actor; uncertain details and repository workflows still count.
General CI status and watches continue to show the updater.
- **Releases.** `dev release` accepts Python versions with equivalent numeric components despite different zero
padding, such as `pyproject.toml` version `26.11.8` for `--version 26.11.08`. The tag keeps the requested spelling;
`VERSION` and `package.json` still require an exact match.

## [26.11.17] - 2026-11-12

This release lets crew members combine their lane commands with other commands on Claude Code, keeps review lanes
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26.11.17
26.11.18
9 changes: 9 additions & 0 deletions agents/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ step, never the words of the request, so the developer's language does not matte
pre-approved them. Only an open decision needs the developer: one whose asking member ended and that blocks no step
is moot, and ending the run closes the rest. `dev crew withdraw <id> --why "…"` closes a decision that no longer
applies; it is never the developer's answer, so never use it to skip one that still matters.
Approval stays in the session's original repository unless the irreversible decision or typed grant names a
literal `--repo owner/repository`. Changing directories does not move it. Global GitHub API operations still
require their reported repository approval scope. Typed grants belong in ordinary chat, not an asynchronous
question widget; auto mode still checks the action, target, repository, expiration, and remaining uses.

**The crew talks through devkit, never around it.** Every member records each finished step with `dev progress step
"…" --check "…"` (its own lane), posts `dev progress note` while a long step runs, asks with `dev crew ask` (a
Expand Down Expand Up @@ -435,6 +439,11 @@ Follow the devkit `backend` skill for the detailed checklists. Always:
event, armed the right way for each agent).
- **Code intelligence:** use the LSP tools (TypeScript, Python, Java, PHP) to find definitions, references, and type
errors rather than grepping when they are available.
- **Native Codex registration:** a delivered child hook can recover a missed start only with matching native
launch evidence (`using-devkit` has the retry procedure). Missing or conflicting proof grants no step or scope.
If hooks remain absent or identity unresolved, stop and report it; never supply an identity override, edit lane
records, or have the parent stand in for a blocked member's completion or review. Normal shell routing is
unchanged; live recovery still needs verification after the developer installs the fix and restarts sessions.
- **Design and architecture:** `domain-modeling`, `codebase-design`, `architecture`, `system-design`, `likec4-dsl`
(C4 diagrams). `grill-with-docs` and `improve-codebase-architecture` are the developer's own slash commands
(`/grill-with-docs`, `/improve-codebase-architecture`): a model cannot load them, so suggest them and never put
Expand Down
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.17",
"version": "26.11.18",
"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
29 changes: 29 additions & 0 deletions docs/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,35 @@ same checks as a Claude Code member's. Two spawns of one member at once, before
started, take no step, and the tech lead is told. Codex's own helpers, such as a review or a compaction, get no launch
record.

### Codex identity failures

A genuine Codex SubagentStart hook can register a child, and a delivered child PreToolUse hook can recover a missed
start. Both require unique canonical parent and child rollouts: the parent's exact spawn call and started result
must agree with the child's metadata, task, and role. Missing, partial, or conflicting evidence leaves the child
unbound with no step, scope, or write authority; safe reads remain available. The lead receives a notice, and a
later genuine hook retries registration through the normal crew slot and depth checks.

The native `task_name` selects the plan step, not the brief's message text. Recovery can repair an older pending
message-derived label only after the immutable call, parent, role, child, and run agree. It does not rewrite an
existing contradictory registration.

Existing lanes are checked against the current run, role, and owner before admission. A prior run's launch cannot
take a new run's assignment. Reassignment uses recorded prior ownership and revokes the old member's write access
before a replacement starts, including scored or abbreviated labels and lanes without a restricted file scope.
Legacy lanes whose ownership cannot be recovered remain read-only until explicitly assigned. Legitimate same-role
reopenings, ad hoc work, and queued assignments remain supported.

This recovery requires a delivered hook. It does not infer CLI caller identity from command text or change the
normal [routing rules](crew.md#who-is-calling), tool matchers, or shell wrapper syntax. If registration evidence is
still incomplete, wait for the native launch records and retry the child's tool call. If hooks remain absent or
identity remains unresolved, stop the affected operation and report the command, directory, installed devkit
version, and exact error. Do not edit session or lane records, run hooks manually, or have the parent submit a
member's completion or review as its own.

Source checks do not prove that a particular live host delivers these hooks. The developer first installs the
fixed release from a normal terminal and restarts the affected sessions. Then verify child registration and lane
ownership in that host before calling the live issue resolved.

### The session context

At session start (or at the first prompt) the agent receives:
Expand Down
6 changes: 4 additions & 2 deletions docs/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,11 @@ check it cannot run is no evidence of a change.
Records written since the last publish are counted as _not yet published, so not yet anchored_. Every run is itself
recorded as `audit.verify`, with `critical` severity when it fails. The daily job never publishes a local file over a
published copy it no longer extends; it records `audit.publish` as blocked and critical instead. It never publishes a
month file over 45 MB either, because GitHub refuses files over 100 MB and then every handoff push: that month's copy
month file over 45 MiB either, because GitHub refuses files over 100 MB and then every handoff push: that month's copy
stays as it was, the job records `audit.publish` as blocked with `warning` severity, and `dev audit stats` and
`dev doctor` say so until devkit publishes daily segments instead of whole months, which is planned.
`dev doctor` report the publication hold. The size hold does not delete local records: the local trail remains
available under the normal retention policy, and `dev audit verify` checks it. Publication remains paused for the
oversized month. Daily segments are planned, not implemented; no version update is promised to remove this hold.

## Query and export

Expand Down
12 changes: 12 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,13 @@ devkit's specialist agents. See [The crew](crew.md).
| `dev crew mode [guided\|auto] [--approve "push feat/*, release v26.11.4"]` · `dev crew decide <id> "<answer>"` · `dev crew decisions [--pending] [--ask [<id>…] [--json]]` | The mode (`--approve` names each action with its target; publish and deploy never), the developer's answers (recorded by the tech lead (Morpheus) only, in the session whose run holds the decision: `dev crew decide` and `dev crew withdraw` take `D3` or your own run's `D3@<session>`, and refuse another session's), and every decision with who took it. `--ask` prints the pending decisions (or the ones named) as question tool calls, at most 4 per call and an irreversible one alone in its call, the recommended option first, `--json` for the tool's input; the tech lead may reword a reversible one. Only an answer to a question with `D<n> ·` up front (or the header `D<n>`) that picks one of its options by letter or words, or a typed `approve <id>[: <option>]`, makes the decision the developer's; `approve D3@<session>`, as `dev status` and the dashboard list another session's decision, counts only in the session it names. An irreversible one counts only in devkit's exact call: one question, its own header (`D<n>` or empty), labels only (no description, preview, or other field), its question and labels word for word (the performing option's label says what it runs, `A: yes (release v26.11.4)`) |
| `dev crew sync [--check]` | Regenerates the Claude Code agents from `config/crew.json` |

For an irreversible decision in another repository, add `--repo owner/repository` to `dev crew ask --decision`
alongside `--irreversible` and `--target`.
The exact question and performing option include that scope. The developer's typed equivalent is
`grant <action> <target> --repo owner/repository`; without the qualifier, the session's original scope applies.
See [Approving work in another repository](crew.md#approving-work-in-another-repository) for examples and mismatch
behavior.

## Lessons

Learn from mistakes: blameless lessons in the handoff repository, recalled before the work they apply to, measured by
Expand Down Expand Up @@ -1012,6 +1019,11 @@ Commit with a known type, in the imperative mood, without a final period, and at
default branch and on non-conforming branches are refused; AI attribution lines are removed; the guard's secret scan
runs.

For an empty GitHub origin with no remote refs, devkit can use the repository's declared default branch from
authenticated API metadata. It checks the repository identity and validates the branch name before using it; an
unavailable or invalid response does not replace the existing default. The current local branch alone does not
prove which branch GitHub protects.

| Option | Effect |
| --- | --- |
| `-m "…"` | The header; more `-m` options add paragraphs |
Expand Down
7 changes: 6 additions & 1 deletion docs/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ tags: [payments, api]
## Purpose
## Current state
## Tasks
<!-- dev:tasks:start --> generated from the work items <!-- dev:tasks:end -->
<!-- dev:tasks:start -->
generated from the work items
<!-- dev:tasks:end -->
## Decisions and gotchas
## Links
```
Expand All @@ -225,6 +227,9 @@ tags: [payments, api]
- The **auto block** is regenerated by `dev sync` and at session start. Never edit inside it.
- The **Tasks block** is generated from the work items. Change tasks with `dev task`, never in the note.
- The **sections** are kept up to date by the agents with the devkit `handoff` skill, and by you.
- The **size budget** is about 150 lines of authored text. `dev doctor` excludes complete generated auto and Tasks
blocks only when their exact standard markers occupy separate lines. Malformed, unclosed, or nested blocks still
count. Shorten the authored sections or move long material into linked plans; keep generated blocks intact.
- **Session lines** go to `sessions/<project id>/YYYY-MM.md`: one line per session that changed something, with the
start time, `user@host`, the agent, the branch, the commits made, uncommitted files, and the status. A hidden key
(`<!-- s:… -->`) makes later refreshes of the same session replace their line. Notes created before 26.11.0 keep
Expand Down
39 changes: 39 additions & 0 deletions docs/crew.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ comes back to you with a notice, the member is told to stop and report, and it m
one member at once, before Codex records which agent each started, take no step, and you are told. Launch in the
order `dev crew next` shows to avoid that (see [Agents › Hooks](agents.md#hooks)).

A genuine child tool hook can recover a missed Codex start only when the parent spawn call and result match the
child's metadata, task, and role. Incomplete or conflicting proof leaves it read-only without a step or scope until
a later valid hook retries; see [Codex identity failures](agents.md#codex-identity-failures). The native `task_name`
selects the step. Existing lanes recheck the current run, role, and recorded owner; reassignment revokes old write
access before the replacement starts, even when the old lane had no restricted scope. A blocked reviewer must
record its own evidence after recovery; the parent cannot supply that approval in its place.

## Leading the crew

The main session leads when work needs more than one kind of expertise. The `crew` skill is the full manual; the
Expand Down Expand Up @@ -679,6 +686,38 @@ now? (choosing “A: release” runs release v26.11.4)`, and the option that per
it. Any other answer (`no`, another option, free text) records your decision and opens nothing; the refusal is
audited as `crew.grant-refused` with the decision and the option you chose, never the text you typed.

### Approving work in another repository

A session can work in another repository without moving its approval scope. Name the intended repository when
recording an irreversible decision:

```bash
dev crew ask --decision "Merge feat/website-pages in acme/web?" \
--irreversible merge --target feat/website-pages --repo acme/web \
--options "A: merge | B: wait" --recommend A
```

New irreversible decisions show their repository scope in both the exact question and the performing option.
The developer can instead type a scoped grant as a normal chat message:

```text
grant merge feat/website-pages --repo acme/web
```

The qualifier is a literal `owner/repository`, not a path, URL, or wildcard. The same branch name in another
repository is a different target. A scope mismatch names the recorded and requested scopes, leaves the approval
unused, and gives the scoped form to use. Changing the command's working directory never rewrites an approval.

In auto mode, a pre-approval must match the action, target, and repository, remain unexpired, and have a use left.
An expired, exhausted, or mismatched approval does not authorize the action. A repository mismatch does not consume
its remaining use. Type grants in ordinary chat; text entered in an asynchronous question widget is not recognized
as a typed grant.

Without `--repo`, grants and decisions retain the session's original repository scope. Existing saved decisions
keep that scope too. Transcript verification, expiration, and one-use consumption still apply. For a global GitHub
API operation, the repository is its **approval scope**, not a claim that the endpoint belongs to that repository;
use the scope reported for the command. A scoped grant is not a repository-independent API authorization.

### How the tech lead asks you

`dev crew decisions --ask` prints the pending decisions as question dialog calls, ready to send: at most four
Expand Down
6 changes: 6 additions & 0 deletions docs/delivery.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ Release by the recorded policy (see [The delivery policy](#the-delivery-policy))
previous tag are still open: close the shipped ones (`dev task reconcile --apply`), or give `--why "<reason>"`.
`dev calver` gives the next CalVer version.

Python metadata may omit zero padding in the three numeric version components: `26.11.8` in `pyproject.toml`
matches a requested `26.11.08`. The tag retains the requested spelling; other version files still match exactly.
The release CI check excludes only authenticated GitHub Dependabot update automation. Repository workflows,
including Dependabot pull request CI, and runs whose updater identity cannot be verified still count. See
[Release checks](git-and-github.md#releases) for the verification rules.

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
Expand Down
Loading
Loading