Install

Works with Drupal: ^11.1 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 12.21 MB
MD5: 2157c01755f67d0732f965c5c012f7ae
SHA-1: f97c2041c36bf7245004ff31bd4dc745ab3202db
SHA-256: 914e00cbac1d184295b8e19cd8e27e0c8b8acd22370e017fbc01fd8666a2e4e0
Download zip 12.59 MB
MD5: 56cb983f338aaa0a69dabf42d53aeeeb
SHA-1: 4d5ac026d1dee9c89ac0b147670d928ed97635d9
SHA-256: ec10e4bc0e829e73fc085eb7a7538f3e4bd0cab9645e910064e5d99cf23475bc

Release notes

# Droost 2.0.0-alpha5

104 commits since alpha4. This is the release where droost stops being one
monolith with a fixed opinion about rigor: verification becomes a dial you
set, legacy debt gets somewhere honest to live, and other modules can extend
the workflow instead of forking it.

**Upgrading?** Read the bulletin — `bulletins/2.0.0-alpha5.md`, or
`/droost:upgrade`. Nothing here breaks an existing site, but two defaults
moved and one submodule left, and the bulletin is the list of what to do.

---

## The effort dial

`preset:` in `droost.workflow.yml` is now a graded scale rather than a
three-way choice:

| Level | What it verifies |
|---|---|
| `low` | basic static checks, no tests, the browser check, no wiki |
| `medium` | the mandatory trio with phpstan 2, the rendered check |
| `high` | solid static + unit tests (phpstan 6), no slow tiers |
| `xhigh` | + coverage/mutation at 60, the front-end trio, phpstan 8 |
| `max` | everything strict, and tests *required to exist* |

Two things never scale: a spec is always written, and the brain is always
used. The dial moves what gets **verified**, never what the agent must
**know**.

`factory` and `light` still load, as aliases of `max` and `medium`, recorded
under the canonical name with a notice — no existing lever file breaks.

Move it in one line, and see the bill first:

```bash
drush droost:workflow:effort high --preview # what the move changes, read-only
drush droost:workflow:effort high # rewrites preset:, operator terminal only
```

A gate a level turns off reports `off — by preset ` — never `passed`.
Nothing is measured and nothing claims it was.

**Default change:** a project with no lever file, or a file with no `preset:`
line, used to resolve to `factory` and now resolves to `max` — which requires
test suites to exist. A phpunit run executing zero tests is a *failure* at
`max` where it used to pass labelled. A file written by
`droost:workflow:install` is unaffected; it says `preset: custom`.

## The adoption baseline

A project whose gates fail on findings the current change never touched can
now record that debt instead of drowning in it:

```bash
drush droost:workflow:baseline --measure # the bill, per gate
drush droost:workflow:baseline # writes droost/baseline/ — commit it
```

From then on the static gates fail only on **new** findings, and every line
reads `0 new, N inherited`. The baseline only shrinks; `--refresh` drops
paid-off debt, and growth is refused unless you say
`--refresh --grow --reason="…"`, which the manifest records permanently.

Writing it is the **operator's act** — the agent's shell is refused, and so is
the agent's editor on the directory. A run freezes the baseline's hash; a
baseline that changes mid-run fails every gate that consults it.

## Extension seams: modules can contribute gates

A module declares a gate the way it declares a tool — a `#[DroostGate]`
plugin under `src/Plugin/DroostGate/` naming its command, its phases, its
default mode, and a required sentence saying what its verdict *means*. It
joins every run as `module:` while the module is enabled. The lever file
sets `on` and `mode` for it and nothing else; moving the effort dial never
moves a contributed gate.

**`droost_snyk` is the reference implementation** — a Snyk dependency scan at
code and test, in report mode by default, scanning every manifest rather than
the first one found. The site decides whether it blocks.

Every surface sees the same set: drush and the MCP tools read the site's
catalog, and the standalone `vendor/bin/droost-workflow` asks the new
read-only `drush droost:workflow:catalog` before resolving a lever. A run
begun where the site could not be reached **catches up** — the first surface
that sees the catalog weaves the missing gates into the run record, and they
run from that phase on.

## Gates have a mode

`block` (the default, what you had) or `report`. A `report` gate runs, records
a failure as **REPORTED** — findings in the report, the seeker reads them, the
phase advances — and never reads as a pass. The mandatory trio cannot be put
in report mode; the attempt is noticed and superseded, like `on: false`.

## Front-end lint as first-class gates

`eslint`, `stylelint` and `prettier` now run at code and complete. Off at
`custom`, `low`, `medium` and `high`; on from `xhigh` up. They find their own
config and run from `node_modules/.bin`, so a PHP-only site reports
tool-missing rather than passing silently. Each takes a `config:` lever —
pin it, or on a Drupal docroot eslint walks up to core's scaffolded config,
whose plugins only core's yarn install provides, and crashes.

A tool that **crashes** is now `ERROR — tool could not run`, with the tool's
own line and the lever to set. It still blocks, but it is never counted as
lint findings, and `baseline --measure` reports it as not measurable rather
than as zero.

## Lifecycle events

Per-phase begin/end hooks broadcast from every surface — the drush surface
included, which previously had no listener at all. **`droost_eca`** bridges
them to ECA, so a site can model workflow reactions in BPMN without writing
a module.

## `rendered_check` renders in a fresh process

The gate used to render inside the process running the gates. It now shells
out to `drush droost:workflow:render-probe ` and reads the result
back. The gate therefore needs `vendor/bin/drush` at the project root, and a
run driven through the MCP server no longer renders inside that long-lived
process — which is the bug that prompted the change: an hours-old server
threw on a page every fresh process rendered fine.

## Specs name their tests

The full spec's acceptance-criteria table gained a **`Verified By`** column.
The test phase fills it with the PHPUnit method, the Playwright spec, or
`manual — `, and `complete` refuses to gate while any cell is empty,
naming the rows. Manual prints as manual, never as passed. A quasi-spec at
`medium`/`low` has no table and is not held to one.

## droost_ui_patterns is its own project

The UI Patterns 2 integration — `droost_display_sources` and the gated
`droost_display_compose` — left droost's `modules/` for
[drupal.org/project/droost_ui_patterns](https://www.drupal.org/project/droost_ui_patterns).
A `droost_` integration is a consumer of droost's seams, not part of
its core, and it moves at UI Patterns' pace. Nothing about the module changed:
same machine name, tool ids, configuration and gate. `droost_display_get` and
`droost_sdc_components` stay in droost core.

**If the submodule is enabled, require its new home in the same composer
operation** or the module leaves the disk while still recorded as installed.
See the bulletin.

## Also in this release

- **Write gates moved from config to `$settings`.** `droost.settings`
stopped carrying them in alpha3; `drush droost:gate` is the only truth, and
tool descriptions now say so. `drush en` warns when armed gates would ride
along in a `config:export`.
- **`droost:doctor` gained a `split` row** — a droost module sitting outside
the site's config split is caught before the deploy, not after
`config:import` refuses it in an environment that has no split.
- **`droost_tool_api`** bridges the Tool API to MCP for mcp_server 2.x.
- **`droost_ai`** — the reciprocal AI-tools bridge: droost tools reachable
from Drupal's AI module, and its agents reachable from droost.
- **Tool discovery by intent tag**, and `droost_tools` now reveals full-only
tools from any profile so a standard-profile session can still find them.
- **Wiki provenance:** an author names a page's `sources` explicitly, recorded
in order and uncapped, and every surface reports the inventory files it
omitted. The previous six-source cap left SDC files unguarded by
`wiki_fresh`.
- **Run state lives in a visible `droost/droost-workflow/`** rather than a
hidden dot-directory — specs are things people read. Existing runs keep
working; the resolver checks the new location and falls back.
- **The pack installer is drift-aware** — a pack file you edited is kept and
reported, not overwritten.
- **Custom gates can attach to several phases** — `phase: "code,test"`.
- **A spent retry budget is recoverable** —
`drush droost:workflow:gate-waive ""` reopens the phase when
it covers every gate that killed it, recorded as **waived**, never passed.
The mandatory trio cannot be waived.
- **Modules can append to the AGENTS.md workflow block** via
`hook_droost_workflow_agents_block_alter()`, without editing a file droost
owns.
- **`work_item:` is now the bridge's project config** — `cloud_id`,
`eligible_types`, `branch`, `transitions`, and `fields`, so a bridge module
never hardcodes another team's custom field ids.
- **The entry verbs are skills**; `/droost:workflow:*` are thin pointers at
them, so every host reads the same procedure.

## Fixes

- `droost_decide`'s `build-surface` and `config-change` probes asked
`droost.settings` whether a write gate was armed — which has not carried the
gates since alpha3 — so every armed gate read as off and the walk told an
operator to arm what they had already armed. The probes now read the same
switch `drush droost:gate` writes.
- The drush surface never broadcast the lifecycle hooks; it does now.
- The wiki detected installed modules from a stale kernel rather than fresh
config.
- `droost_tools` read arrays where `getDefinitions()` returns
`ToolDefinition` objects.
- `reset`, `bypass` and `status` now resolve the run-state directory the way
the engine does.
- Two pre-existing phpstan level-max failures cleared.

## Requirements

```
php ^8.3
drupal/core ^11.1 || ^12
drupal/mcp_server ^2.0.0-beta2
droost/engine ~0.6.5 (raised — wiki sources/omitted)
droost/workflow ^0.6.14 (raised — contributed gates, the baseline,
GateStatus::Reported, the grown facade)
```

Droost is a **local development toolkit**, the same class as devel. Install it
with `--dev`; do not deploy a production site with droost enabled.

Created by: chadmandoo
Created on: 12 Sep 2026 at 18:09 UTC
Last updated: 12 Sep 2026 at 18:09 UTC
Bug fixes
New features
Unsupported

Other releases