Install

Works with Drupal: ^11.3

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 8.9 MB
MD5: bf2592195b6efc25e0b0e794412b8b67
SHA-1: cdba2e173ac4581f427d6e74f4313e6f31eaca9c
SHA-256: ca8fb1f1c33d5c7c1422e530651faabc423b5ff69a7bbdeedf42c57f9a15fb26
Download zip 10.39 MB
MD5: be0f82e46dc62ab369d326f69f8c8b75
SHA-1: 6c195c24c70d0a130bbce42372558ff117f5264c
SHA-256: 6e1a708b61847678055ecbf08bf715103a6c59db9f49e67c357d0b899949d1b3

Release notes

[2.6.0-alpha3] - 2026-09-20

The last alpha before 2.6.0: four small operator-facing fixes and the
housekeeping a stable tag needs. A workflow with a mistyped edgeType is now
refused when it is saved instead of silently running as an ordering edge; the
memory value ceiling is a setting; the interrupt inbox search reaches the node
id; the interrupt and pipeline API doors publish an error_code; and two
bookkeeping gaps that left finished runs pointing at interrupts, or interrupts
at finished runs, are closed. Database updates: one post-update in
flowdrop (the withdrawn slim retention mode) and one in flowdrop_pipeline
(clearing stale interrupt pointers on finished runs) — run drush updatedb,
then clear caches.
Read the 2.6.0-alpha2 to 2.6.0-alpha3 section of
UPGRADE.md before upgrading a site that set slim.

Added

  • The memory value ceiling is a site setting, not a hard-coded 1 MiB
    constant (#3592436).
    MemoryManager::set() refused any JSON-serialised
    value over MAX_VALUE_BYTES and there was no way to raise it short of
    patching the module. It is reachable in ordinary use: a ReAct agent's
    conversation_buffer crosses 1 MB on a single large document, and the
    pipeline dies appending to a buffer nothing was going to read again — after
    the reasoning node had already returned status: success and 38,306
    characters of correct final output. One measured run cost 3 model calls,
    503,925 input tokens, 593 seconds and ~$1.91 for zero delivered output, on a
    value 1.5 % over the cap. flowdrop_memory.settings:max_value_bytes now
    holds the flat limit, defaulting to 1048576 so no existing site changes
    behaviour, and backend_config.<backendId>.max_value_bytes overrides it per
    backend — the backends never had the same real ceiling, since entity is
    bounded by its column type and static only by PHP memory. New public
    MemoryManager::getMaxValueBytes(?string $backendId = NULL) resolves the
    effective number, so a caller can trim or roll a value before the write
    instead of discovering the ceiling by exception; MAX_VALUE_BYTES stays as
    the published default. The setting is editable on the memory settings form;
    no update hook is needed, because an absent key already falls back to the
    constant. The ceiling is resolved on each read rather than memoised on the
    service — ConfigFactory already caches the read, and a second cache here
    would need a config-save subscriber to invalidate it, which is a pattern this
    codebase uses nowhere else. A present-but-unusable value is no longer discarded in silence: a
    numeric value is accepted, including the numeric string an unvalidated
    settings.php override produces, and anything else is logged once and falls
    back rather than quietly restoring the old cap. It does not throw — this is
    the write path that already throws for a genuinely oversized value, and
    killing a pipeline over a misconfigured integer would be worse than the bug
    it guards.

  • Two more API doors publish a stable error_code (#3592420). API-8's
    migration reaches InterruptApiController (20 refusals) and
    PipelineApiController (11) — the two doors an agent's run_status tool
    polls. Most reasons resolve to the shared vocabulary (NOT_FOUND,
    ACCESS_DENIED, INVALID_REQUEST_BODY, INTERNAL_ERROR); the interrupt
    door publishes three codes of its own, CALLBACK_WRONG_TYPE,
    CALLBACK_WRONG_DIRECTION and NOT_CANCELLABLE, because a caller debugging
    a failing callback URL needs to know whether it aimed at the wrong interrupt
    type or at an inward signal, and the two have different remedies. Additive on
    the wire: the key is new, nothing that existed changed, and no consumer needs
    to move. Two 409s stay deliberately uncoded —
    InterruptManager::resolveInterrupt() throws one exception type for lock
    contention, "not pending" and "expired" alike, told apart only by its message,
    and a code that cannot discriminate is worse than no code; typed exceptions on
    the manager are the prerequisite. Each door's payload-contract test now pins
    the exact refusal key set, three keys where a code is published and two where
    it is not.

Changed

  • A workflow that declares an unrecognised edgeType is refused at save
    (#3592406).
    A non-empty data.edgeType string that EdgeType::isKnown()
    does not accept fell through silently to handle-based classification, so a
    typo like loopbak became an ordering edge in the compiled graph — and if it
    was meant as a loopback, it hard-errored later as a forward cycle with no
    hint of the real cause. New validator rule R14
    (R14_EDGE_TYPE_UNKNOWN, locator edge.{index}) makes it a save-time error,
    and the Workflow Doctor reports it on an already-stored workflow. Absent,
    empty and non-string declarations are deliberately untouched: they are not
    typos, and the handle fallback they trigger is the intended default. The
    read path is unchanged
    — EdgePortClassifier::edgeType() keeps its
    fallback unconditionally, so a workflow already stored with a bad value still
    loads, compiles and runs; only a write refuses it. That holds at launch too,
    and by construction rather than by luck: WorkflowLauncher re-validates every
    stored definition before running it — deliberately, since a definition can
    reach storage unvalidated through the entity API or config import — and R14 is
    excluded from that gate through the new
    WorkflowValidatorInterface::SAVE_ONLY_CODES, which names the class of rule
    that guards a write boundary and nothing else. Bundle import and workflow
    migration do enforce it; they are writes. See UPGRADE.md.

Fixed

  • flowdrop_runtime's status-report entry no longer triggers a core
    deprecation.
    It was a hook_requirements() with a phase switch, which
    drupal 11.3 deprecates unless it carries #[LegacyRequirementsHook]; every
    kernel test that booted the module logged the notice. The check only ever
    ran in the runtime phase, so it is now hook_runtime_requirements(), the
    same shape flowdrop_trigger already uses. No output changes.

  • Static analysis keeps up with phpstan-drupal 2.2.2. drupal.org CI
    moved to it on 2026-09-18 and its stricter t() argument type flagged 60
    placeholder values that could be NULL or were untyped — mostly entity
    labels — across 22 forms and controllers; each now passes a string. The
    strings shown to the user are unchanged. Two ArrayObject fixtures in the
    node-runtime unit test gained the type they always had.

  • The interrupt inbox's text filter reached only the Message column
    (#3592412).
    It was applied as a single CONTAINS condition on message,
    while the table also renders Workflow, Node, Session and Pipeline — so
    searching a node id such as choice_input.1, visible two columns over,
    returned nothing, which reads as no such interrupt rather than that column
    is not searched
    . The Workflow column has its own select, so the gap that
    actually bit was Node: there was no way to narrow the inbox to one node's
    interrupts. InterruptInboxForm::baseQuery() now applies the term as an OR
    condition group over message and node_id, both plain string columns on
    the base table, so it still composes with the status and workflow scoping and
    the pager without forcing a join. node_id is matched exactly, not by
    substring: a node id is a canvas-assigned <type-slug>.<instance> identifier
    like choice_input.1 that an operator looks up whole, and an exact match is
    indexable where a leading-wildcard LIKE '%…%' can never be. message stays
    a CONTAINS scan because free text has no indexable shape; its cost is
    bounded by the rows the other filters have already narrowed to, not by an
    index. The widget is relabelled from Message to
    Search. The filtering stays in the entity query rather than moving to PHP
    the way the config-entity listings do — that is correct for a content entity
    with a pager. workflow_id is excluded (it has its own exact-match select),
    session_id is an entity reference, and pipeline_id is an opaque id an
    operator looks up exactly, where substring matching would mostly return
    noise.

  • A finished run left its outward interrupts pending forever. Only the
    in-loop signal cancel path cleaned them up. Every out-of-band route to a
    terminal status — the interaction form, trigger overlap policies, session
    stop, account cancellation, the expired-interrupt reaper — left them
    pending against a dead pipeline, and nothing could ever remove them: the
    cron sweep's predicate is status <> 'pending', and an interrupt carries no
    expiry by default, so the overdue sweep never saw them either. They also kept
    reporting a live pendingInterrupt for a run that ended, and a retention
    sweep that deleted the finished pipeline would have left them pointing at
    nothing. TerminalPipelineSignalReaper now reaps both directions, and the
    shared OutwardInterruptCanceller gives each owning node its cancel() hook
    before the status flips — the behaviour the in-loop path always had.
    paused is untouched, in both directions: there the interrupt is the
    resume key, and reaping it would strand the run exactly as an expired one
    does. Sub-workflow completion sentinels are untouched too: a
    pipeline_completion interrupt carries the finished pipeline's id but belongs
    to the parent waiting on it, and is the row that hands the outcome over.
    Existing stranded rows are not repaired — that is a backfill, gated with the
    rest of the data-removal work.

  • A finished pipeline kept pointing at an interrupt that no longer exists.
    pending_interrupt_id had no owner: exactly one path cleared it — the session
    interrupt-resolved subscriber — while the only two others are a session reset
    and a stuck-session cron recovery, neither of which fires on a normal finish.
    So a run that completed, failed or was cancelled by any other route kept the
    pointer, its interrupt reached resolved, and the interrupt cleanup deleted it
    as it is entitled to. GET /flowdrop/api/pipelines/{id}/status then reported a
    finished run as carrying a live pendingInterrupt a client could try to
    resolve. Measured on one site: 56 pipelines.

    • FlowDropPipeline::preSave() now clears the slot on any terminal status, so
      which route ended the run stops mattering. A paused or running pipeline
      keeps its slot — that is live state, not debris.
    • flowdrop_pipeline_post_update_clear_finished_pending_interrupts() repairs
      the rows already stored, restoring changed so a repair does not make a
      finished run look freshly changed to a retention policy.
    • Unfinished pipelines are deliberately not repaired. Clearing a paused
      run's slot would destroy the only record of what the run was waiting for,
      and it is not the pointer that decides resumability: the interrupt is found
      by pipeline id, so a run whose slot dangles may still hold a perfectly live
      pending interrupt. Verified on one site — every unfinished row there did.
      The update names them and asks you to resume or cancel each one. Those rows
      come from
      flowdrop_pipeline_post_update_backfill_session_and_pending_interrupt(),
      which copied ids out of session metadata without checking the interrupt still
      existed; that guard is not retrofitted, because the update has already run
      everywhere it was going to.

Removed

  • The retention mode slim is withdrawn (#3592455). 2.6.0-alpha2 accepted
    three retention modes; there are now two, off and delete. Slimming — null
    the payload columns, keep the row — is out of the plan entirely: it is a
    write to a row that stays live and readable, so it needed a marker field to
    be expressible at all, a setChangedTime() restore on every save so a swept
    row did not become young again, and a UI string saying payload removed by
    retention
    rather than rendering an empty output as though the node produced
    nothing. Three pieces of machinery, each silent when wrong, to recover a
    fraction of what deleting the row recovers.
    • slim is gone from the mode enum in flowdrop.retention_policy and
      flowdrop.retention_policy_age_only. Leaving it would have been worse than
      never shipping it: an operator sets slim, config validation passes, and
      nothing whatsoever happens — data they believe is governed by a retention
      policy is kept forever, silently.
    • flowdrop_post_update_drop_slim_retention_mode() rewrites a stored slim
      to off on both policy types. off is the honest translation, because
      off is exactly what slim did.
    • No behaviour changes. Nothing swept before this release and nothing sweeps
      after it; delete is still accepted only so a later release can honour it
      without a config migration.
Created by: d34dman
Created on: 20 Sep 2026 at 23:45 UTC
Last updated: 20 Sep 2026 at 23:46 UTC
Bug fixes
New features

Other releases