Pascal

One business rule. Every caller aligned.

Forge. Package shared logic as typed functions. Test the cases that matter, review a version, and make it available to the people, agents, and workflows that need it.

Illustrative workflow with synthetic data.

Forge. Business logic your team can reuse.

Define the contract

Name each function, define its inputs and outputs, and declare its effects and supported surfaces.

Review the source

Work with Codex in a Code Task. Inspect Files and Changes before applying reviewed source to the package.

Inspect the build

Follow validation, tests, and packaging. Inspect the result before choosing which version to release.

Choose an activation

Select the functions, versions, callers, and surfaces. High-risk functions require an explicit risk acknowledgement.

Run calculations and transformations

Use declared functions for operational calculations, row mappings, table transformations, and business-object actions.

Follow the result

Inspect function runs and redacted output. Follow a consequential action through review and confirmation from the system it changes.

One guard. Every caller gets the same rule.

Inspect evaluateTenderReadiness, its three expected outcomes, and the reviewed activation of version 0.4.0 for two draft consumers.

The function accepts a shipment, telemetry, and Compliance evidence. It returns a readiness decision with reason codes; missing approval produces a hold.

Make the contract explicit. Native product view with illustrative data.

In practice

The Workflow draft and the Shipment action preview need the same tendering rule. Both use evaluateTenderReadiness 0.4.0 after its three behavior checks and activation review. A passing missing-approval test confirms the expected hold. The function supplies the decision; it does not book a carrier or tender a shipment.

Example operation.Explore the solution

Give a shared business rule one implementation.

Choose a calculation or decision several callers need. Define its inputs, outputs, expected failures, and who can approve its use.