Delivery policy
Set project budgets, initial proposal review and what a client approval deploys.
Configure how a project spends, starts delivery and responds to client approval. A new project starts by itself, except one a client creates in the portal, which waits for your approval unless you turn initial proposal review off. Otherwise hlix plans, builds and reviews autonomously, and posts a message in the project chat when the whole plan is ready to read. You can turn on initial proposal review for a project, and then hlix waits for your approval before the first build. Your team retains the final merge into the repository’s default branch.
| Control | Question it answers |
|---|---|
| Budgets | How much may this project spend, how often may it re-plan, and how much work may it open? |
| Initial proposal review | Must an agency member approve the SDD/SOW scope and estimate before the first build agent starts? Off by default. |
| Client deployment | Does a customer’s sign-off ship the code? |
With initial proposal review off, which is the default for every project except those a client creates in the portal, nothing waits. The proposal is still written from the accepted cycles and tasks, you can read and change it in the Proposal tab, and work continues while you do.
For a delivery project with initial proposal review enabled, environment setup and planning proceed while the SDD/SOW proposal is prepared. An agency member then approves the exact ready scope, task estimates and document revision before the first build agent starts. Client review does not replace the agency decision.
Enable this with initialProposalRequired: true when you create or update the project, or with the project’s proposal-review control. It defaults to false; a project a client creates in the portal starts with it true. See Approvals for scope approval and final merge.
Prerequisites
Section titled “Prerequisites”- A project in your Workspace.
- An agency role with
manageaccess on the project.
Budgets
Section titled “Budgets”Set these three limits on the project. A project has no budget until you set one. The other two limits have the defaults below. The API expresses budget amounts as integer micros: 1000000 corresponds to H$1 (US$1), so 25000000 corresponds to H$25.
| Field | Range | Default | What it bounds |
|---|---|---|---|
costCapMicros |
Whole number above 0, up to 1000000000000 |
None | Total spend for the project, in micros. At the cap the project pauses; raising the cap resumes it |
maxRevisions |
2 to 100 |
5 |
How many re-plans may pass without a newly completed cycle before the plan agent changes strategy |
cycleCap |
1 to 500 |
30 |
How many open cycles a re-plan may add |
curl -sS -X PATCH "$HLIX_BASE_URL/v1/api/projects/$PROJECT_ID" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -H 'content-type: application/json' \ -d '{"costCapMicros":250000000,"maxRevisions":4,"cycleCap":20}'Expected result: 200 and the updated project. Send null for any field to return it to the default; for costCapMicros that removes the budget.
At the cost cap, the project pauses until you raise it. The other two limits shape planning. Updated limits apply on the next planning pass.
Budgets apply to one project. They are separate from the Workspace’s own spend limits, which apply across every project.
Client deployment
Section titled “Client deployment”Client deployment is off by default. Enable it to deploy when a customer approves a deliverable in the client portal. Otherwise, approval records the customer’s sign-off and your agency handles deployment.
curl -sS -X PUT "$HLIX_BASE_URL/v1/api/projects/$PROJECT_ID/delivery-policy" \ -H "x-api-key: $HLIX_API_KEY" \ -H "X-Organization-Id: $HLIX_WORKSPACE_ID" \ -H 'content-type: application/json' \ -d '{"deployOnClientApproval":true}'Expected result: 200 and the stored policy.
Read it back with GET /v1/api/projects/{projectId}/delivery-policy. A project that never configured one answers {"projectId": …, "deployOnClientApproval": false}.
Changing deployment policy requires agency manage access and is recorded in the audit log.
If a policy does not behave as expected
Section titled “If a policy does not behave as expected”{"error":"Project not found"}with404. The project is not in the Workspace named byX-Organization-Id.{"error":"Failed to save the delivery policy"}with500. The write did not persist. Read it back before assuming it took effect.- A
400onmaxRevisions. The minimum is2. - The project paused. It reached
costCapMicros. Work already running finishes; raise the cap to continue. - A customer approved and nothing deployed.
deployOnClientApprovalis off, which is the default. The approval is recorded; the deployment is the agency’s to make. - A
403on any of these. They needmanageaccess on the project.