Skip to content

Cost Profiles ​

Gira uses fixed workflow cost profiles to reason about expected GitHub API budget usage. These profiles are conservative planning data, not dynamic measurements.

gira ops limit --workflow NAME uses the conservative profile by default and computes safe remaining runs as floor((remaining primary bucket * 80%) / conservative profile cost). The lowest measurable bucket becomes the limiting bucket. Write/content cost is reported, but secondary budget is not directly measurable.

Buckets ​

BucketMeaning
REST coreExpected GitHub REST core requests.
GraphQLExpected GitHub GraphQL primary points.
SearchExpected GitHub search bucket requests.
Write/contentExpected issue, PR, label, comment, merge, close, or similar secondary-limit pressure.

Modes ​

conservative is the default. It includes normal fallback, linked PR/check inspection, and bounded retry or polling pressure. optimistic models a clean path with no repeated polling or fallback reads.

GitHub App authentication remains a future/blocking decision. Current profiles assume the gh user-token operating path.

Static Profiles ​

ProfileConservative RESTConservative GraphQLConservative SearchConservative write/contentOptimistic RESTOptimistic GraphQLOptimistic SearchOptimistic write/content
status62003100
workspace-status4080015300
queue-next2441010210
queue-take3561318312
ticket-status-view184008200
ticket-lifecycle11024112601207
goal-status-next4581018400

Boundaries ​

The model does not use dynamic measurement, rolling averages, SQLite, local projection storage, provider adapters, or GitHub App budgets.

Mutating commands still require fresh provider verification at --apply.

GitHub remains the source of truth.