RepoOps
Open the app
06 / Cost

Cost receipts and approvals

A case's cost is the receipts it carries, and each receipt says where its amount came from. Measured charges and estimates are shown apart and never added, a receipt with no known rate is counted and never priced, and a fix is built only under an approval whose scope is exactly the one it was given for.

Last updated

Watch it

1

How to

A case on the desktop app or on repoops.ai, opened on its Cost section.

  1. Read the kind of each receipt.

    A receipt is an actual (a metered charge or a provider's bill), an estimate (a modeled amount) or a refund.

  2. Read its basis.

    The basis says how the amount was reached: metered-llm from a model call's usage at a known rate, member-rate from a person's time at an hourly rate, modeled from a formula, or provider-bill from an invoice line. Measured charges, refunds, estimates and other currencies are separate rows, and an amount in another currency is never converted.

  3. Add an estimate for work no meter saw.

    Under Add an estimate, choose the method (member rate or modeled), enter a rate per hour, the hours and a currency (USD, EUR or GBP), and press Record estimate. The amount must equal the rate times the hours. On the desktop you can also say whether the work completed or was a failed attempt.

  4. Read a share of a shared bill as a share.

    A charge several cases share lands on each as a fraction between zero and one, with the parent record it belongs to and the parent's amount. A case never carries more than its part, and a case that already carries the parent does not add the share again.

  5. Check the approval's scope before a build.

    An approval is a fingerprint over the action, the brief's files, the brief's content, the target and the policy version. Change a file, the brief, the target or the policy and the fingerprint changes, the build refuses the old approval, and the fix waits for a new one.

  6. On repoops.ai, approve against the digest you reviewed.

    An owner or admin presses Approve the build at this digest on the case, with the digest they reviewed. An approval naming any other digest is refused.

2

Use cases

Counting an engineer's afternoon on an incident

Situation
Three hours of an on-call engineer's time went into a case, and no meter recorded it.
You do
Add an estimate with member rate, the hourly rate, 3 hours and USD.
You see
The estimate row appears under Estimates, apart from measured charges, and never counts toward the measured figure or the monthly LLM budget. It stays an estimate however much time passes.

A brief that changed after it was approved

Situation
A fix was approved, then the scoper added a file to the brief before the build ran.
You do
Press Build it.
You see
The build refuses: the approval's fingerprint no longer matches the brief's scope. Approve again against the brief as it stands.
3

Expected outcome

WorkedMeasured charges, Refunds, Other currencies and Estimates as separate rows on the case's Cost section.
WorkedA receipt at an unknown rate counted as unpriced with no amount, and a case with no receipts saying in words that no cost is recorded.
WorkedA build that runs only under an approval whose scope matches the brief.
Did not workAn estimate is refused.

Next step: The amount must equal the rate times the hours. Check both fields.

Did not workA build is refused for its approval.

Next step: The brief, its files, the target or the policy changed after the approval. Approve again.

Did not workThe hosted approval is refused.

Next step: It named a digest other than the one the desktop verified. Approve the digest shown on the case.

Did not workThe fix says Waiting for approval service.

Next step: Your team is connected to promptcompute and RepoOps could not reach it (or repoops.ai). The message names the last error and the next retry time. Nothing runs in the meantime, and the retry asks for the same request rather than a second one. To stop waiting on purpose, an owner or admin disconnects promptcompute on Team settings.

Did not workThe fix says Waiting for approval on promptcompute.

Next step: The request is open on promptcompute. Follow the link to decide it there or in Slack, then press Approve on the case again (the auto-merge loop asks again on its next pass).

Did not workThe fix says Waiting for a person: the limit is reached.

Next step: A cumulative limit on your promptcompute environment, such as merges per repository per day, held the request. The message names the limit and its totals (for example 20 of 20 in 24h for acme/api). A person decides it on promptcompute like any other request.

Did not workThe fix says Base branch moved, sent back for approval.

Next step: The base branch head changed while the merge waited, so nothing merged and a linked request with both values went to a person. Approve the linked request; RepoOps merges only once the base it was approved against is the one it finds. After three rechecks the fix stops with recheck_limit.

Did not workThe fix says Stopped: agent version revoked.

Next step: An admin revoked the RepoOps agent version that asked while the fix waited. Nothing from that version runs. Start the fix again on a release whose version is accepted.

Did not workThe message says Sent without an agent signature.

Next step: The request went out, but not as a registered RepoOps agent version: the team connected before agent signing (an owner or admin connects again), or this install runs a build whose prompts or tools differ from a published release. An environment that requires agent identity holds such a request for a person.

4

What else to consider

Where receipts come from

The desktop records the scope and build runs its remediation loop measured, a validation run lands its own, Billing Guard attaches a provider bill, and a person adds an estimate. Each carries its actor and time. Receipts are keyed by source record, so reading the same meter again replaces that source's row rather than adding a second one.

The checks behind an approval

A built fix is verified against builds, tests, regression, guard replay, the pull request's CI, reproduction, deployment and the observation window. Verified recovery explains each.

Approvals on promptcompute

An owner or admin can connect the team to promptcompute Approvals from the promptcompute card on Team settings (/team/settings). After that, agent merges, production deploy rollbacks and fix applies are sent to promptcompute as code.pr.merge, code.deploy.production and fix.apply instead of the built-in queue. A person decides in Slack or on the web, and may edit the fields promptcompute allows, such as the merge method. Memory writes go the same way. A connected team asks before the lessons or team lessons block of CLAUDE.md or AGENTS.md is rewritten (memory.agentmd.publish), before a lesson is sent to other repositories or to the product family (memory.lesson.promote), and before a lesson is retired by Deactivate, Retract, Delete, a not useful verdict or a contest (memory.lesson.retire). Nothing is written until the grant is claimed, and what lands is the text the grant names. A team that has not connected keeps the review queue and the direct write. Merge and production deploy requests also carry the change risk card. A bad outcome promptcompute reports on a code action comes back as a label on the cases that named the change, and as a lesson card to review.

RepoOps runs only the arguments in promptcompute's signed grant, after checking the grant's signature, its expiry, and that it covers exactly those arguments. A grant runs once across every install of the team. A merge is bound to the pull request's head commit, so a push after the approval asks for a new one. Each run gets a fix.approval receipt that links the grant and the change record, checkable against /.well-known/receipt-keys.json. The card's outcome window sets how many days a merge must hold before RepoOps tells promptcompute it held; a revert or a linked incident is reported as soon as RepoOps sees it.

Agent versions and the enforcement point

For a team connected after agent signing, each RepoOps agent (the built-fix agent, the incident recipe agent, the deploy rollback agent and the action runner) is a registered agent in your promptcompute environment, and each RepoOps release is one version of it, built from a manifest CI publishes. Its key is made and kept on repoops.ai, rotates every 90 days, and never reaches a desktop or a browser. Every request names the version that asked, and a waiting fix shows that release and its digest.

Right before a merge, a production deploy or a fix apply, the desktop checks a version 2 grant itself: the signature, that the grant is for https://repoops.ai and this action, the hash of the exact arguments it is about to run, a proof signed by the agent key the grant is bound to, and then it uses the grant up on promptcompute. Refusals (for example args_mismatch, key_mismatch, agent_version_mismatch or consumed) are reported to promptcompute with the arguments' hash, never the arguments. In observe mode the desktop only reports what it would refuse, and the earlier grant check still decides; an owner or admin switches the promptcompute card to enforce after reviewing those reports.

What the agent read goes with the request

A merge request carries the pull request body and its comments as provenance, and a recipe fix carries the scanner finding it acted on: each as an excerpt of at most 1,000 characters and the SHA-256 of the full text. promptcompute shows the excerpt to the approver as text, and outside input can raise the request's risk. That text is never part of the arguments RepoOps runs. With inventory asks turned on in the card, every other agent action RepoOps takes is sent too, under a repoops.<action> key, so a listen-mode environment can list them.

Lesson receipts

A lesson changes what agents in a repository do next, so repoops.ai signs a receipt when one starts and when one stops. A lesson.record receipt is signed when a lesson is promoted: a proposal folded into errors.md, or a lesson written active or activated on the Lessons tab. A lesson.retire receipt is signed when one is retired: deactivated, invalidated, folded into a duplicate or ruled against in a contest. A lesson.record holds the lesson id, its scope, the SHA-256 of the rule, the evidence it rests on as a reference and a hash, the checks that enforce it, and who promoted it, with a person named only by a hash. A lesson.retire holds the reason (replaced, wrong, stale, duplicate or other), the lesson that replaced it, and a link to the record it retires. The rule's text never enters a receipt and is never sent to repoops.ai. When the promotion or retirement went through a PromptCompute approval, the receipt names the grant, and repoops.ai refuses a grant that is not one of the team's.

The desktop app sends each event with its device token while it is signed in to a team, and only for a repository the team authorized; repoops.ai checks both again. A machine that is not signed in sends nothing. An event that could not be sent waits on the machine and goes out with the next one, oldest first, so a lesson's record reaches repoops.ai before its retire. Receipts need a hosted plan: a team without one, the free Solo plan included, gets none. A lesson promoted before receipts existed gets one record, marked as back-filled with its original promotion time, from a nightly pass or on its first retire.

repoops.ai signs lesson receipts with the same key as change records, in the receipt format PromptCompute, RepoOps and ContextFile share, and the daily anchor puts them in the same tree. On the desktop app's Memory page, the Lessons tab shows each lesson's Signed receipt: its record and, once retired, its retire receipt, each a link to the receipt on repoops.ai. A lesson with none says why: the machine is signed out, the receipt is still queued, repoops.ai refused it, or the lesson has not been back-filled yet. Anyone can check a receipt offline with pc-ledger lesson or PromptCompute's verify page, against the keys at https://repoops.ai/.well-known/receipt-keys.json.

Transcript

The walkthrough is silent. These are its captions, in order. Every value it shows is illustrative.

  1. 0:00Promote a lesson and repoops.ai signs a lesson.record
  2. 0:06It holds ids and hashes; the rule's text never leaves the machine
  3. 0:12Retire it and a lesson.retire links back to the record
  4. 0:18A lesson with no receipt says why
  5. 0:24Anyone can check a receipt offline against the published keys

Unknown is not zero

No figure on either app turns a missing price into $0.00. The Cost page counts unknown-rate receipts on their own, and the page that lists cases with a cost leaves out a case with no receipt rather than showing it at zero.