taskflow

Trusted Effects

0.3.0-beta.1.2 — beta channel candidate, not GA. This page describes the Trusted Effects MVP prepared for the beta release; npm publication is still a release gate.

Trusted Effects makes a phase's side effects explicit. The model may propose content, but for an admitted declared filesystem target, the resources transaction is the only finalizer.

The vertical slice

The checked-in examples/trusted-effects-write.json declares one fs.write effect for out/report.md. The no-LLM fixture exercises the same resource-controlled path:

pnpm exec node --conditions=development --experimental-strip-types --test \
  packages/taskflow-core/test/effects-e2e-fixture.test.ts

The contract

ConceptMeaning
EffectIRClosed effect vocabulary carried by the flow/phase contract
PathRefTyped workspace-relative target; no bare string authority
SecretRef / ServiceRefTyped handles that fail closed until a real backend is bound
LabelsFixed confidentiality/integrity checks across the phase DAG
Resource transactionDurable snapshot → lease → intent/permit → stage → commit or restore/reject
why-effectRead-only, ledger-backed explanation of authorization and lifecycle

What this does not claim

  • It is not a FileBroker or a full OS sandbox.
  • Resolve-only hosts cannot prevent every write to an undeclared path.
  • SecretRef has no vault backend in this cut.
  • ServiceRef has no live network adapter in this cut.
  • ControlHost is currently a scaffold; stores, approvals, receipts, and WebUI belong to later 0.3-C stages. None is proof that 0.3 is released or GA.

Last updated on

Was this helpful?

Help us improve the docs or ask a question in the community.

On this page