Home / The cost ABP

Every ABP so far bounds what. This one bounds how much

Four steps, twelve prompts, and one honest ending. For anybody who has watched an agent write forty files nobody asked for, push twelve commits where one would do, research a question that was already answered, and hand three people something to review. You are paying for all of it, and nothing in the grant says a word about any of it.

Start here if you only do one thing. Open the agent you are paying for, in the session you are worried about, and paste the first prompt. It counts what it can count and tells you what it cannot see, which is usually the bill.

Cost is not a capability

A capability is in the grant or it is not. Cost is a property of every call the agent makes, whichever capability the call instances. The grammar has one primitive for money, write.budget.tenant, and 2 of 16 published shapes grant it, because it names spending against an account the agent holds, and an agent's own inference is billed to the deployer by the platform, not spent by the agent. There is no primitive for a count of anything.

What an agent may do, and how much of itthe four objects sit before the action; every count sits after it, in a universe this site has no node inBefore the action: the ABP (u2 to u6)Mandatewhat was askedGrantwhat it can doDeltathe differenceBarrierwhat is in the wayevery call is one instance of a capabilityAfter the action: the runtime (u11), where quantity livesCallshow many, in which intervalTokensthe bill, seen by the platformFiles, commits, fetcheswhat the repository seesA person's hourwhat nobody billsA cost clause is a prohibition over a count. The grammar has one primitive for money and none for a count,so the clause carries what the grant cannot, and only a log held outside the agent can say whether it was kept.
The four objects describe what an agent may do before it acts. Every count is a fact about what it did, which is the runtime universe, owned by whoever holds the logs and never by this site.

So a cost ABP is the first ABP written over the runtime rather than over the grant. Its four objects are the same. Its mandate is a set of budgets in your words. Its grant is everything the agent can spend, which is everything it can do. Its delta is what it spent that you did not ask for. And its barrier, on nearly every row, is a sentence, because almost nothing in a deployment caps a count.

Five things it spends, and one of them is never on a bill

Five things an agent spends, and who pays for eachonly the first one is on a bill, and it is the one the agent cannot seeWhat is spentWho paysWho can see the numberTokensthe account holder, on the platform's billthe platform; the agent usually cannot see itsown countFiles written and changedthe repository, and whoever reads it nextthe agent, exactly; the repository, in itshistoryCommits and pushesthe pipeline, in minutes and money, per pushthe agent; the code host; the pipeline's ownlogFetches, searches, researchtokens, time, and one send.endpoint.world eachthe agent; the proxy, if there is oneAnother person's houra reviewer, an answerer, a reader of what itproducednobody's bill; only the person, afterwardsThe fifth line is dashed because it never appears on any bill. It is the one an accountant agent exists to count.
Five lines, and a person's hour is the one nothing meters. An agent that produces a document for somebody to read, asks a question, or opens something for review has spent that hour, and no ledger records it unless the clause asks for it.

The fifth line is the one this walkthrough exists for. An agent that asks a question, produces a document for a person to read, opens something for review or delegates to another agent that then does the same has spent an hour that no meter records. Organisations are starting to notice it as overhead without a source. The accountant on step three is the pattern that gives it one.

Why this is an ABP and not another skill

A skillA behaviour policy
What it sayshow to do one task wellwhat may not be done, and how much the doing may cost
Scopeone task, whenever it comes upone agent in one deployment, across every task
Who writes itwhoever knows the taskwhoever pays: the deployer, in their own words
How they relateruns under the ABPis what every skill has to fit inside

A deployer watching the bill does not need another skill. They need the clauses that every skill has to run within, and a ledger at the end of every turn that says what the turn cost in the units they can check.

The four steps

Step 1: What it has already spent

Ask the agent to count what it can count in this session, and to say which numbers it cannot see at all.

about five minutes

Step 2: What you actually paid for

Sort what it did into what you asked for, what it decided was needed, and what it would now call waste. Then say what waste means for you.

about five minutes

Step 3: Write the cost policy

Limits per turn, batching, research only when blocked, and a ledger at the end of every turn. Plus the accountant: a second agent whose only job is to read the ledger.

about five minutes

Step 4: What a clause over a count cannot do

A limit the agent cannot measure is an expectation twice over. What a turn cap, a spend limit and a pipeline budget actually are, and who can turn each one off.

about five minutes

What you will have at the end

Nothing on this page is measured by this site. There are no runtime logs here and there will not be; the runtime is universe u11, owned by whoever holds the logs and never by this site. Every number an agent gives back is a self report, which counts as a claim rather than a measurement, and the bill is the only log.
Nothing on this site is an assessment, an audit, a certification or a security review of any named product. No adjective on these pages attaches to one.

Your mailbox, the first walkthrough · The runtime universe · write.budget.tenant · The four barriers