Budget reference
2 pages, 14 routes, 14 connections and 0 CLI commands, generated from the declarations of Budget without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 4
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Dashboard | budget.dashboard | dashboard | /view/budget | 0 | in navigation | ||
| Plan a category | budget.plan | editor | /view/budget/plan | 70 | Budget | in navigation | |
| Budget | budget.item | detail | /view/budget/{id} | 110 | budget.dashboard | Budget | hidden |
| Project budget | budget.project | detail | /view/budget/project/{project_id} | 120 | budget.dashboard | Budget | hidden |
Connections · 14
Budget.Commit
Reserve-before-spend: pre-flight check + commit projected units against the leaf matching (scope, asset, category) and every ancestor, keyed by ref_id. Returns a machine-readable status (committed / exists / no_coverage / insufficient) so orchestrators gate paid work without parsing error strings.
- Output keybudget.result
- Classificationreal
- POST /budget/commitHTTP route
Budget.Get
Fetch one budget vertex by id.
- Output keybudget.result
- Classificationroute_handler
- GET /budgetHTTP route
Budget.Headroom
Headroom (max - used, min across tree chain) for (scope, asset, category).
- Output keybudget.result
- Classificationroute_handler
- GET /budget/headroomHTTP route
Budget.List
List all budgets, optionally filtered by scope + asset.
- Output keybudget.result
- Classificationroute_handler
- GET /budget/listHTTP route
Budget.PlanSet
Set the caller's money plan for one category, or the total, in a currency's minor units by the month or week. Written only for the caller. A plan that would promise the categories more than the total holds is refused.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| category | optional | |||
| amount | optional |
- Output keybudget.result
- Classificationreal
- POST /budget/planHTTP route
Budget.PlanView
The caller's money plan for a month: planned per category beside actuals read from the Tax app's books by connection id. Actuals are absent, never zero, when the books cannot be read.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| month | optional |
- Output keybudget.result
- Classificationroute_handler
- GET /budget/planHTTP route
Budget.ProjectDecide
Open a vote on a yes-or-no question for a project's members. Passing it records the answer and changes nothing else.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| project_id | required | |||
| decision | required | |||
| expires_in_days | optional |
- Output keybudget.result
- Classificationreal
- POST /budget/project/decideHTTP route
Budget.ProjectPropose
Open a vote on a lifetime budget for a project. Only a member can open one, and the project's governance sets how many yes votes it needs.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| project_id | required | |||
| category | required | |||
| asset | required | |||
| max_units | required | |||
| description | optional | |||
| expires_in_days | optional |
- Output keybudget.result
- Classificationreal
- POST /budget/project/proposeHTTP route
Budget.Propose
Wrap a BudgetVertex mutation in a Proposal. Doesn't mutate the budget store — only creates the proposal. A budget scoped to a project is held to that project's vote: its own scope, one member one vote, and the project's bar for the quorum.
- Output keybudget.result
- Classificationreal
- POST /budget/proposeHTTP route
Budget.Ratify
Ratify a passing budget proposal and apply the mutation. Calls proposal::ratify (which checks tally), then SetTree with the returned payload. A project's budget is checked again first: the vote is still open and enough of today's members voted yes. A lifetime budget at the top of the project's tree also sets the project's spending cap for that asset.
- Output keybudget.result
- Classificationreal
- POST /budget/ratifyHTTP route
Budget.Realize
Bind actual spend to a prior Budget.Commit, delta-adjusting used_units (releasing the over-commit when actual < projected) and moving actual into realized_units. Missing commitment surfaces as status: no_commitment.
- Output keybudget.result
- Classificationreal
- POST /budget/realizeHTTP route
Budget.Release
Return a commitment's projected units to headroom without recording spend. The cancel / failure path when paid work never ran. Idempotent.
- Output keybudget.result
- Classificationreal
- POST /budget/releaseHTTP route
Budget.SetTree
Upsert a budget vertex. Preserves used_units / realized_units / commitments from any existing vertex at the same id, so callers can retune caps without resetting in-flight commitments. A budget cannot move to another scope under its id, and one scoped to a project is refused: it takes a vote of the members.
- Output keybudget.result
- Classificationreal
- POST /budgetHTTP route
Budget.Status
Full leaf detail (used / realized / commitments / headroom) for (scope, asset, category).
- Output keybudget.result
- Classificationroute_handler
- GET /budget/statusHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerBudget
- SQL projectionnone · DDL declarations: 0
- Budget
- Project
- Proposal
- None declared.
- None declared.
- None declared.
- No model warnings were reported.