Skip to content
1 viewer
View

Budget reference

2 pages, 14 routes, 14 connections and 0 CLI commands, generated from the declarations of Budget without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Dashboardbudget.dashboarddashboard/view/budget0in navigation
Plan a categorybudget.planeditor/view/budget/plan70Budgetin navigation
Budgetbudget.itemdetail/view/budget/{id}110budget.dashboardBudgethidden
Project budgetbudget.projectdetail/view/budget/project/{project_id}120budget.dashboardBudgethidden
4 rows

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.

Calls and output
  • Output keybudget.result
  • Classificationreal
  • POST /budget/commitHTTP route

Budget.Get

Fetch one budget vertex by id.

Calls and output
  • Output keybudget.result
  • Classificationroute_handler
  • GET /budgetHTTP route

Budget.Headroom

Headroom (max - used, min across tree chain) for (scope, asset, category).

Calls and output
  • Output keybudget.result
  • Classificationroute_handler
  • GET /budget/headroomHTTP route

Budget.List

List all budgets, optionally filtered by scope + asset.

Calls and output
  • 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.

Budget.PlanSet input
FieldTypeRequiredDescriptionAllowed
categoryoptional
amountoptional
2 rows
Calls and output
  • 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.

Budget.PlanView input
FieldTypeRequiredDescriptionAllowed
monthoptional
1 row
Calls and output
  • 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.

Budget.ProjectDecide input
FieldTypeRequiredDescriptionAllowed
project_idrequired
decisionrequired
expires_in_daysoptional
3 rows
Calls and output
  • 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.

Budget.ProjectPropose input
FieldTypeRequiredDescriptionAllowed
project_idrequired
categoryrequired
assetrequired
max_unitsrequired
descriptionoptional
expires_in_daysoptional
6 rows
Calls and output
  • 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.

Calls and output
  • 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.

Calls and output
  • 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.

Calls and output
  • 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.

Calls and output
  • 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.

Calls and output
  • Output keybudget.result
  • Classificationreal
  • POST /budgetHTTP route

Budget.Status

Full leaf detail (used / realized / commitments / headroom) for (scope, asset, category).

Calls and output
  • Output keybudget.result
  • Classificationroute_handler
  • GET /budget/statusHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerBudget
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Structure review · 1

Warnings · 1