Skip to content

feat: roles and harnesses for alert notifiers, maintenance actions and command plugins; release 0.12.0 - #27

Merged
fas89 merged 6 commits into
mainfrom
feat/roles-alerts-maintenance-commands
Nov 22, 2026
Merged

fas89 merged 6 commits into
mainfrom
feat/roles-alerts-maintenance-commands

Conversation

@fas89

@fas89 fas89 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

forge-cli 0.38.0 loads three new plugin groups: fluid_build.alert_notifiers, fluid_build.alert_defaults and fluid_build.maintenance_actions. fluid_build.commands has been there since 0.8.3, but until now the SDK had nothing for it. This adds typed roles and conformance harnesses for all four, and cuts 0.12.0.

  • Roles in fluid_sdk.roles. Each uses forge's own attribute names, defaults and signatures, and none imports forge:
    • AlertNotifier, plus alert_route() / check_alert_route() for an alert_defaults entry point;
    • MaintenanceAction, plus sql_literal, statement_problem and checked_statements;
    • CommandPlugin.
  • Harnesses in fluid_sdk.testing: AlertNotifierTestHarness, MaintenanceActionTestHarness and CommandPluginTestHarness. They check the rules forge applies when it loads a plugin. Negative tests show that each harness fails on a plugin forge would refuse.
  • Examples: acme-chat-alerts, acme-erasure-action and acme-hello-command. Each has its entry point and a harness test.
  • Docs:
    • a new docs/reference/plugin-groups.md;
    • updates to the README role table, the role taxonomy, the architecture page and the conformance-testing page.
  • Release: version 0.12.0 and the CHANGELOG section. The SDK still has no runtime dependencies. sqlglot is used only when it is installed.

Checked:

  • ruff, black and pytest on 3.10, 3.12 and 3.14;
  • each example's tests;
  • python -m build and twine check.

Also checked end to end against forge-cli's main branch (0.38.0) in a fresh venv:

  • fluid plugins lists all three examples.
  • A contract whose alert route names the example kind validates, and fluid generate schedule writes its notifier into the DAG, along with the default route from alert_defaults.
  • A maintenance action naming the example kind validates and plans. forge compiles its statement through the real entry point.
  • fluid acme-hello runs.

… actions and command plugins

Also adds unit tests for the three roles and for the harnesses themselves (each must fail on
a plugin forge-cli would refuse), pins the new exports, and registers the three entry-point
groups the docs gate knows.
One package per new role, each with its entry point and a test that runs the conformance
harness. Also tells mypy that sqlglot, which the SDK only imports when installed, may be absent.
Finalizes the CHANGELOG [Unreleased] section as [0.12.0] and bumps both version constants
(pyproject and fluid_sdk.version.SDK_VERSION) from 0.11.0 to 0.12.0, as the 0.11.0 release did.

SDK_PROTOCOL_VERSION stays 1 (the BasePlugin interface is unchanged). MIN_CLI_VERSION is
unchanged (0.7.0).
@fas89
fas89 merged commit 1a4bc8a into main Nov 22, 2026
9 checks passed
fas89 added a commit that referenced this pull request Nov 22, 2026
…red statement target, harnesses that match forge (#28)

Brings in the review fixes that missed #27: forge-cli's option-key and option-value secret rules (from forge-cli PR #1063, in 0.38.0), a maintenance statement target anchored after its keyword, and harnesses that build, skip and report as forge-cli does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant